function $AdfEditingAgent$$() {
  this.Init();
}
$goog$exportSymbol$$("AdfEditingAgent", $AdfEditingAgent$$);
$AdfObject$$.$createSubclass$($AdfEditingAgent$$);
$AdfEditingAgent$$.$getInstance$ = function $$AdfEditingAgent$$$$getInstance$$() {
  if (void 0 == $AdfEditingAgent$$.$_instance$) {
    if ($AdfPage$$.$PAGE$.$isAttachmentMode$()) {
      $AdfEditingAgent$$.$_instance$ = new $AdfGeckoEditingAgent$$;
    } else {
      switch($AdfAgent$$.$AGENT$.$getPlatform$()) {
        case $AdfAgent$$.$GECKO_PLATFORM$:
          $AdfEditingAgent$$.$_instance$ = new $AdfGeckoEditingAgent$$;
          break;
        case $AdfAgent$$.$IE_PLATFORM$:
          11 <= $AdfAgent$$.$AGENT$.$getVersion$() ? $AdfEditingAgent$$.$_instance$ = new $AdfIE11EditingAgent$$ : $AdfEditingAgent$$.$_instance$ = new $AdfIEEditingAgent$$;
          break;
        case $AdfAgent$$.$WEBKIT_PLATFORM$:
          $AdfEditingAgent$$.$_instance$ = new $AdfSafariEditingAgent$$;
          break;
        case $AdfAgent$$.$EDGE_PLATFORM$:
          $AdfEditingAgent$$.$_instance$ = new $AdfEdgeEditingAgent$$;
          break;
        default:
          $AdfLogger$$.$LOGGER$.warning("Rich Text Editing is not officially supported on this platform"), $AdfEditingAgent$$.$_instance$ = new $AdfEditingAgent$$;
      }
    }
  }
  return $AdfEditingAgent$$.$_instance$;
};
$goog$exportSymbol$$("AdfEditingAgent.getInstance", $AdfEditingAgent$$.$getInstance$);
$AdfEditingAgent$$.prototype.$toBrowserSpecificCommand$ = function $$AdfEditingAgent$$$$$toBrowserSpecificCommand$$($command$$) {
  return $command$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.toBrowserSpecificCommand", {$toBrowserSpecificCommand$:$AdfEditingAgent$$.prototype.$toBrowserSpecificCommand$});
$AdfEditingAgent$$.prototype.$getContentWindow$ = function $$AdfEditingAgent$$$$$getContentWindow$$($inlineFrame$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$, "IFRAME");
  $AdfAssert$$.assert($inlineFrame$$.contentWindow, "Unexpected null contentWindow.");
  return $inlineFrame$$.contentWindow;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getContentWindow", {$getContentWindow$:$AdfEditingAgent$$.prototype.$getContentWindow$});
$AdfEditingAgent$$.prototype.$getColor$ = function $$AdfEditingAgent$$$$$getColor$$($value$$133$$) {
  var $converter$$1$$ = null, $converter$$1$$ = $value$$133$$.indexOf && 0 === $value$$133$$.indexOf("#") ? new TrColorConverter(["#RRGGBB"], !1) : new TrColorConverter(["'rgb'(r, g, b)", "'rgb'(r,g,b)"], !1);
  try {
    $value$$133$$ = $converter$$1$$.getAsObject($value$$133$$);
  } catch ($e$$34$$) {
    $value$$133$$ = null;
  }
  return $value$$133$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getColor", {$getColor$:$AdfEditingAgent$$.prototype.$getColor$});
$AdfEditingAgent$$.prototype.$getInlineFrameDocument$ = function $$AdfEditingAgent$$$$$getInlineFrameDocument$$($contentWindow_inlineFrame$$1$$) {
  $AdfAssert$$.$assertDomElement$($contentWindow_inlineFrame$$1$$, "IFRAME");
  $contentWindow_inlineFrame$$1$$ = this.$getContentWindow$($contentWindow_inlineFrame$$1$$);
  $AdfAssert$$.assert($contentWindow_inlineFrame$$1$$, "Unexpected null contentWindow.");
  $AdfAssert$$.assert($contentWindow_inlineFrame$$1$$.document, "Unexpected null contentWindow document.");
  return $contentWindow_inlineFrame$$1$$.document;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getInlineFrameDocument", {$getInlineFrameDocument$:$AdfEditingAgent$$.prototype.$getInlineFrameDocument$});
$AdfEditingAgent$$.prototype.execCommand = function $$AdfEditingAgent$$$$execCommand$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$, $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$, $command$$1_editingAgent$$inline_396$$, $currentLinkURL_htmlFragment_value$$134$$) {
  var $contNode$$inline_397_doc$$7$$;
  "insert" != $command$$1_editingAgent$$inline_396$$ && ($AdfAssert$$.$assertDomElement$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$, "IFRAME"), $contNode$$inline_397_doc$$7$$ = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$));
  if (null == $currentLinkURL_htmlFragment_value$$134$$) {
    switch($command$$1_editingAgent$$inline_396$$) {
      case "createlink":
        $currentLinkURL_htmlFragment_value$$134$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$$(this, $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$, $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$);
        if ("popup" === $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.getToolbarDisplay()) {
          $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.$getPeer$();
          $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.$getComponent$();
          $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$ = $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.$_lastSelectionRange$;
          $command$$1_editingAgent$$inline_396$$ = $AdfEditingAgent$$.$getInstance$();
          if (!$JSCompiler_StaticMethods__emptySelection$$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$)) {
            if ($contNode$$inline_397_doc$$7$$ = $JSCompiler_StaticMethods__getToolbarPopupInputContainer$$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$), $AdfDomUtils$$.$isVisible$($contNode$$inline_397_doc$$7$$)) {
              $AdfDomUtils$$.setVisible($contNode$$inline_397_doc$$7$$, !1);
            } else {
              var $dtComp$$inline_398_label$$10$$ = $JSCompiler_StaticMethods__getToolbarPopupDisplayedTextComp$$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$);
              $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$ = $JSCompiler_StaticMethods__getToolbarPopupURLComp$$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$);
              $dtComp$$inline_398_label$$10$$.setValue($command$$1_editingAgent$$inline_396$$.$getSelectionRangeString$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$));
              $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$.setValue($currentLinkURL_htmlFragment_value$$134$$);
              $AdfDomUtils$$.setVisible($contNode$$inline_397_doc$$7$$, !0);
            }
          }
          return;
        }
        $dtComp$$inline_398_label$$10$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().$getTranslatedString$("af_richTextEditor.LABEL_SPECIFY_THE_URL");
        $currentLinkURL_htmlFragment_value$$134$$ = prompt($dtComp$$inline_398_label$$10$$, $currentLinkURL_htmlFragment_value$$134$$);
        if (null == $currentLinkURL_htmlFragment_value$$134$$ || "" == $currentLinkURL_htmlFragment_value$$134$$) {
          return;
        }
      ;
    }
  }
  switch($command$$1_editingAgent$$inline_396$$) {
    case "insert":
      null == $currentLinkURL_htmlFragment_value$$134$$ && ($currentLinkURL_htmlFragment_value$$134$$ = "");
      this.$insertHtmlAtSelection$($component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$, $currentLinkURL_htmlFragment_value$$134$$);
      break;
    case "moderichtext":
      $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.$getPeer$().$setCodeEditingMode$(!1);
      break;
    case "modecode":
      $JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$.$getPeer$().$setCodeEditingMode$(!0);
      break;
    case "undo":
      this.$ExecuteUndo$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$, $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$, $contNode$$inline_397_doc$$7$$);
      break;
    case "redo":
      this.$ExecuteRedo$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$, $component$$inline_394_inlineFrame$$2_inputComp$$inline_399$$, $contNode$$inline_397_doc$$7$$);
      break;
    case "createlink":
      this.$CreateLink$($JSCompiler_StaticMethods__processToolbarPopupAddLinkCmd$self$$inline_392_component$$187_selRange$$inline_395$$, $contNode$$inline_397_doc$$7$$, $currentLinkURL_htmlFragment_value$$134$$);
      break;
    default:
      $JSCompiler_StaticMethods__executeCommand$$(this, $contNode$$inline_397_doc$$7$$, $command$$1_editingAgent$$inline_396$$, $currentLinkURL_htmlFragment_value$$134$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.execCommand", {execCommand:$AdfEditingAgent$$.prototype.execCommand});
$AdfEditingAgent$$.prototype.$isEmptySelection$ = function $$AdfEditingAgent$$$$$isEmptySelection$$($inlineFrame$$3$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$3$$, "IFRAME");
  doc = $AdfEditingAgent$$.$getInstance$().$getInlineFrameDocument$($inlineFrame$$3$$);
  return doc.getSelection && "" == doc.getSelection() ? !0 : !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isEmptySelection", {$isEmptySelection$:$AdfEditingAgent$$.prototype.$isEmptySelection$});
$AdfEditingAgent$$.prototype.queryCommandEnabled = function $$AdfEditingAgent$$$$queryCommandEnabled$($component$$188$$, $inlineFrame$$4$$, $command$$2$$) {
  $AdfAssert$$.$assertString$($command$$2$$);
  var $result$$5$$ = !1;
  switch($command$$2$$) {
    case "insert":
    ;
    case "moderichtext":
    ;
    case "modecode":
      $result$$5$$ = !0;
      break;
    case "undo":
      $result$$5$$ = this.$QueryUndoEnabled$($component$$188$$, $inlineFrame$$4$$);
      break;
    case "redo":
      $result$$5$$ = this.$QueryRedoEnabled$($component$$188$$, $inlineFrame$$4$$);
      break;
    default:
      $result$$5$$ = $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$4$$, $command$$2$$);
  }
  return $result$$5$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandEnabled", {queryCommandEnabled:$AdfEditingAgent$$.prototype.queryCommandEnabled});
$AdfEditingAgent$$.prototype.$setInlineFrameContentEditable$ = function $$AdfEditingAgent$$$$$setInlineFrameContentEditable$$($doc$$8_inlineFrame$$5$$) {
  $AdfAssert$$.$assertDomElement$($doc$$8_inlineFrame$$5$$, "IFRAME");
  $doc$$8_inlineFrame$$5$$ = this.$getInlineFrameDocument$($doc$$8_inlineFrame$$5$$);
  this.$useContentEditable$() ? $doc$$8_inlineFrame$$5$$.body.contentEditable = !0 : $doc$$8_inlineFrame$$5$$.designMode = "on";
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setInlineFrameContentEditable", {$setInlineFrameContentEditable$:$AdfEditingAgent$$.prototype.$setInlineFrameContentEditable$});
$AdfEditingAgent$$.prototype.$useContentEditable$ = function $$AdfEditingAgent$$$$$useContentEditable$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.useContentEditable", {$useContentEditable$:$AdfEditingAgent$$.prototype.$useContentEditable$});
$AdfEditingAgent$$.prototype.$isDesignMode$ = function $$AdfEditingAgent$$$$$isDesignMode$$($doc$$9_inlineFrame$$6_mode$$10$$) {
  $doc$$9_inlineFrame$$6_mode$$10$$ = this.$getInlineFrameDocument$($doc$$9_inlineFrame$$6_mode$$10$$);
  if (this.$useContentEditable$()) {
    return "true" == $doc$$9_inlineFrame$$6_mode$$10$$.body.contentEditable;
  }
  ($doc$$9_inlineFrame$$6_mode$$10$$ = $doc$$9_inlineFrame$$6_mode$$10$$.designMode) && ($doc$$9_inlineFrame$$6_mode$$10$$ = $doc$$9_inlineFrame$$6_mode$$10$$.toLowerCase());
  return "on" == $doc$$9_inlineFrame$$6_mode$$10$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isDesignMode", {$isDesignMode$:$AdfEditingAgent$$.prototype.$isDesignMode$});
$AdfEditingAgent$$.prototype.$isDesignModeReloadingFrame$ = function $$AdfEditingAgent$$$$$isDesignModeReloadingFrame$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.isDesignModeReloadingFrame", {$isDesignModeReloadingFrame$:$AdfEditingAgent$$.prototype.$isDesignModeReloadingFrame$});
$AdfEditingAgent$$.prototype.queryCommandValue = function $$AdfEditingAgent$$$$queryCommandValue$($inlineFrame$$7$$, $commandIdentifier$$) {
  $commandIdentifier$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$);
  var $result$$6$$ = !1;
  try {
    $result$$6$$ = this.$getInlineFrameDocument$($inlineFrame$$7$$).queryCommandValue($commandIdentifier$$);
  } catch ($e$$35$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandValue: command not supported (", $commandIdentifier$$, ").", $e$$35$$);
  }
  return $result$$6$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandValue", {queryCommandValue:$AdfEditingAgent$$.prototype.queryCommandValue});
$AdfEditingAgent$$.prototype.queryCommandState = function $$AdfEditingAgent$$$$queryCommandState$($inlineFrame$$8$$, $commandIdentifier$$1$$) {
  $AdfAssert$$.$assertString$($commandIdentifier$$1$$);
  if ("indent" != $commandIdentifier$$1$$ && "outdent" != $commandIdentifier$$1$$) {
    if ("forecolor" == $commandIdentifier$$1$$ || "backcolor" == $commandIdentifier$$1$$ || "fontsize" == $commandIdentifier$$1$$ || "fontname" == $commandIdentifier$$1$$) {
      return this.queryCommandValue($inlineFrame$$8$$, $commandIdentifier$$1$$);
    }
    var $result$$7$$ = !1;
    $commandIdentifier$$1$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$1$$);
    try {
      $result$$7$$ = this.$getInlineFrameDocument$($inlineFrame$$8$$).queryCommandState($commandIdentifier$$1$$);
    } catch ($e$$36$$) {
      $AdfLogger$$.$LOGGER$.severe("queryCommandState: command not supported (", $commandIdentifier$$1$$, ").", $e$$36$$);
    }
    return $result$$7$$;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandState", {queryCommandState:$AdfEditingAgent$$.prototype.queryCommandState});
$AdfEditingAgent$$.prototype.$setRTL$ = function $$AdfEditingAgent$$$$$setRTL$$($bodyNode_doc$$10$$) {
  $AdfAssert$$.assert($bodyNode_doc$$10$$);
  $bodyNode_doc$$10$$ = $bodyNode_doc$$10$$.body;
  $AdfAssert$$.$assertDomElement$($bodyNode_doc$$10$$, "BODY");
  $bodyNode_doc$$10$$.setAttribute("dir", $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$() ? "rtl" : "ltr");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setRTL", {$setRTL$:$AdfEditingAgent$$.prototype.$setRTL$});
$AdfEditingAgent$$.prototype.$queryCommandIndeterminate$ = function $$AdfEditingAgent$$$$$queryCommandIndeterminate$$($inlineFrame$$9$$, $commandIdentifier$$2$$) {
  $commandIdentifier$$2$$ = this.$toBrowserSpecificCommand$($commandIdentifier$$2$$);
  var $result$$8$$ = !1;
  try {
    $result$$8$$ = this.$getInlineFrameDocument$($inlineFrame$$9$$).queryCommandIndeterm($commandIdentifier$$2$$);
  } catch ($e$$37$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandIndeterminate: command not supported (", $commandIdentifier$$2$$, ").", $e$$37$$);
  }
  return $result$$8$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.queryCommandIndeterminate", {$queryCommandIndeterminate$:$AdfEditingAgent$$.prototype.$queryCommandIndeterminate$});
$AdfEditingAgent$$.prototype.$getFocusBlurElement$ = function $$AdfEditingAgent$$$$$getFocusBlurElement$$($inlineFrame$$10$$) {
  return $inlineFrame$$10$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getFocusBlurElement", {$getFocusBlurElement$:$AdfEditingAgent$$.prototype.$getFocusBlurElement$});
$AdfEditingAgent$$.prototype.$getSelectionRange$ = function $$AdfEditingAgent$$$$$getSelectionRange$$($inlineFrame$$11$$) {
  return this.$getInlineFrameDocument$($inlineFrame$$11$$).selection.createRange();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getSelectionRange", {$getSelectionRange$:$AdfEditingAgent$$.prototype.$getSelectionRange$});
$AdfEditingAgent$$.prototype.$getInlineFrameContent$ = function $$AdfEditingAgent$$$$$getInlineFrameContent$$($inlineFrame$$12$$) {
  return this.$getInlineFrameDocument$($inlineFrame$$12$$).body.innerHTML;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getInlineFrameContent", {$getInlineFrameContent$:$AdfEditingAgent$$.prototype.$getInlineFrameContent$});
$AdfEditingAgent$$.prototype.$setInlineFrameContent$ = function $$AdfEditingAgent$$$$$setInlineFrameContent$$($inlineFrame$$13$$, $newContent$$) {
  this.$getInlineFrameDocument$($inlineFrame$$13$$).body.innerHTML = $newContent$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setInlineFrameContent", {$setInlineFrameContent$:$AdfEditingAgent$$.prototype.$setInlineFrameContent$});
$AdfEditingAgent$$.prototype.$getDefaultContent$ = function $$AdfEditingAgent$$$$$getDefaultContent$$() {
  return "";
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getDefaultContent", {$getDefaultContent$:$AdfEditingAgent$$.prototype.$getDefaultContent$});
$AdfEditingAgent$$.prototype.setSelectionRange = function $$AdfEditingAgent$$$$setSelectionRange$($inlineFrame$$14$$, $range$$5$$) {
  $range$$5$$.select();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.setSelectionRange", {setSelectionRange:$AdfEditingAgent$$.prototype.setSelectionRange});
$AdfEditingAgent$$.prototype.$insertHtmlAtSelection$ = function $$AdfEditingAgent$$$$$insertHtmlAtSelection$$($inlineFrame$$15$$, $htmlFragment$$1$$) {
  if ("TEXTAREA" == $inlineFrame$$15$$.nodeName || "INPUT" == $inlineFrame$$15$$.nodeName) {
    var $newStart_selectionRange$$ = $inlineFrame$$15$$.selectionStart + $htmlFragment$$1$$.length;
    $inlineFrame$$15$$.value = $inlineFrame$$15$$.value.substr(0, $inlineFrame$$15$$.selectionStart) + $htmlFragment$$1$$ + $inlineFrame$$15$$.value.substr($inlineFrame$$15$$.selectionEnd);
    $inlineFrame$$15$$.selectionStart = $newStart_selectionRange$$;
    $inlineFrame$$15$$.selectionEnd = $newStart_selectionRange$$;
  } else {
    if ($newStart_selectionRange$$ = this.$getSelectionRange$($inlineFrame$$15$$), null == $newStart_selectionRange$$) {
      $AdfLogger$$.$LOGGER$.severe("Unexpected null selection for insert command.");
    } else {
      0 < $newStart_selectionRange$$.toString().length && $newStart_selectionRange$$.deleteContents();
      $newStart_selectionRange$$.cloneRange();
      var $div_nodes$$1$$ = document.createElement("div");
      $div_nodes$$1$$.innerHTML = $htmlFragment$$1$$;
      for (var $div_nodes$$1$$ = $div_nodes$$1$$.childNodes, $lastNode$$ = null, $i$$68$$ = $div_nodes$$1$$.length - 1;0 <= $i$$68$$;$i$$68$$--) {
        var $newNode$$1$$ = $div_nodes$$1$$[$i$$68$$];
        null == $lastNode$$ && ($lastNode$$ = $newNode$$1$$);
        $newStart_selectionRange$$.insertNode($newNode$$1$$);
      }
      null != $lastNode$$ && ($newStart_selectionRange$$.selectNode($lastNode$$), $newStart_selectionRange$$.setStartAfter($lastNode$$));
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.insertHtmlAtSelection", {$insertHtmlAtSelection$:$AdfEditingAgent$$.prototype.$insertHtmlAtSelection$});
$AdfEditingAgent$$.prototype.$handleTab$ = function $$AdfEditingAgent$$$$$handleTab$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.handleTab", {$handleTab$:$AdfEditingAgent$$.prototype.$handleTab$});
$AdfEditingAgent$$.prototype.$updateValueHistory$ = function $$AdfEditingAgent$$$$$updateValueHistory$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.updateValueHistory", {$updateValueHistory$:$AdfEditingAgent$$.prototype.$updateValueHistory$});
$AdfEditingAgent$$.prototype.$ExecuteUndo$ = function $$AdfEditingAgent$$$$$ExecuteUndo$$($component$$190$$, $inlineFrame$$18$$, $doc$$11$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$11$$, "undo", null);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.ExecuteUndo", {$ExecuteUndo$:$AdfEditingAgent$$.prototype.$ExecuteUndo$});
$AdfEditingAgent$$.prototype.$ExecuteRedo$ = function $$AdfEditingAgent$$$$$ExecuteRedo$$($component$$191$$, $inlineFrame$$19$$, $doc$$12$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$12$$, "redo", null);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.ExecuteRedo", {$ExecuteRedo$:$AdfEditingAgent$$.prototype.$ExecuteRedo$});
$AdfEditingAgent$$.prototype.$CreateLink$ = function $$AdfEditingAgent$$$$$CreateLink$$($component$$192$$, $doc$$13$$, $value$$135$$) {
  $JSCompiler_StaticMethods__executeCommand$$(this, $doc$$13$$, "createlink", $value$$135$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.CreateLink", {$CreateLink$:$AdfEditingAgent$$.prototype.$CreateLink$});
$AdfEditingAgent$$.prototype.$QueryUndoEnabled$ = function $$AdfEditingAgent$$$$$QueryUndoEnabled$$($component$$193$$, $inlineFrame$$20$$) {
  return $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$20$$, "undo");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.QueryUndoEnabled", {$QueryUndoEnabled$:$AdfEditingAgent$$.prototype.$QueryUndoEnabled$});
$AdfEditingAgent$$.prototype.$QueryRedoEnabled$ = function $$AdfEditingAgent$$$$$QueryRedoEnabled$$($component$$194$$, $inlineFrame$$21$$) {
  return $JSCompiler_StaticMethods__queryCommandEnabled$$(this, $inlineFrame$$21$$, "redo");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.QueryRedoEnabled", {$QueryRedoEnabled$:$AdfEditingAgent$$.prototype.$QueryRedoEnabled$});
$AdfEditingAgent$$.prototype.$IsNodeWrappingRange$ = function $$AdfEditingAgent$$$$$IsNodeWrappingRange$$($range$$6$$, $node$$21$$) {
  var $isNodeEndSameOrAfterRange_nodeRange$$ = $node$$21$$.ownerDocument.createRange();
  try {
    $isNodeEndSameOrAfterRange_nodeRange$$.selectNode($node$$21$$);
  } catch ($e$$38$$) {
    return $AdfLogger$$.$LOGGER$.$logErrorAsInfo$($e$$38$$, "Unable to select node in range"), !1;
  }
  var $isNodeStartSameOrBeforeRange$$ = -1 != $range$$6$$.compareBoundaryPoints(Range.START_TO_START, $isNodeEndSameOrAfterRange_nodeRange$$), $isNodeEndSameOrAfterRange_nodeRange$$ = 1 != $range$$6$$.compareBoundaryPoints(Range.END_TO_END, $isNodeEndSameOrAfterRange_nodeRange$$);
  return $isNodeStartSameOrBeforeRange$$ && $isNodeEndSameOrAfterRange_nodeRange$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.IsNodeWrappingRange", {$IsNodeWrappingRange$:$AdfEditingAgent$$.prototype.$IsNodeWrappingRange$});
function $JSCompiler_StaticMethods__executeCommand$$($JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$, $doc$$14$$, $command$$3$$, $value$$136$$) {
  $JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$ = $JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$.$toBrowserSpecificCommand$($command$$3$$);
  try {
    $doc$$14$$.execCommand($JSCompiler_StaticMethods__executeCommand$self_browserSpecificCommand$$, null, $value$$136$$);
  } catch ($e$$39$$) {
    $AdfLogger$$.$LOGGER$.severe("execCommand[", $command$$3$$, ",", $value$$136$$, "] failed with the following exception: ", $e$$39$$);
  }
}
function $JSCompiler_StaticMethods__queryCommandEnabled$$($JSCompiler_StaticMethods__queryCommandEnabled$self$$, $doc$$15_inlineFrame$$22$$, $command$$4$$) {
  var $result$$9$$ = !1;
  $doc$$15_inlineFrame$$22$$ = $JSCompiler_StaticMethods__queryCommandEnabled$self$$.$getInlineFrameDocument$($doc$$15_inlineFrame$$22$$);
  $command$$4$$ = $JSCompiler_StaticMethods__queryCommandEnabled$self$$.$toBrowserSpecificCommand$($command$$4$$);
  try {
    $result$$9$$ = $doc$$15_inlineFrame$$22$$.queryCommandEnabled($command$$4$$);
  } catch ($e$$40$$) {
    $AdfLogger$$.$LOGGER$.severe("queryCommandEnabled failed with the following exception: [", $command$$4$$, "]: ", $e$$40$$);
  }
  return $result$$9$$;
}
function $JSCompiler_StaticMethods__getLinkURLForSelection$$($JSCompiler_StaticMethods__getLinkURLForSelection$self$$, $component$$197_selectionRange$$1$$, $inlineFrame$$23_links$$) {
  $AdfAssert$$.$assertDomElement$($inlineFrame$$23_links$$, "IFRAME");
  $inlineFrame$$23_links$$ = $JSCompiler_StaticMethods__getLinkURLForSelection$self$$.$getInlineFrameDocument$($inlineFrame$$23_links$$).getElementsByTagName("a");
  $component$$197_selectionRange$$1$$ = $component$$197_selectionRange$$1$$.$getPeer$().$getSelectionRange$($component$$197_selectionRange$$1$$);
  for (var $linkURLForSelection$$ = "about:blank", $i$$69$$ = 0;$i$$69$$ < $inlineFrame$$23_links$$.length;$i$$69$$++) {
    if ($JSCompiler_StaticMethods__getLinkURLForSelection$self$$.$IsNodeWrappingRange$($component$$197_selectionRange$$1$$, $inlineFrame$$23_links$$[$i$$69$$])) {
      $linkURLForSelection$$ = $inlineFrame$$23_links$$[$i$$69$$].href;
      break;
    }
  }
  return $linkURLForSelection$$;
}
$AdfEditingAgent$$.prototype.$getSelectionRangeString$ = function $$AdfEditingAgent$$$$$getSelectionRangeString$$($selectionRange$$2$$) {
  return $selectionRange$$2$$ ? $selectionRange$$2$$.toString() : "";
};
$AdfObject$$.$exportPrototypeSymbol$("AdfEditingAgent.prototype.getSelectionRangeString", {$getSelectionRangeString$:$AdfEditingAgent$$.prototype.$getSelectionRangeString$});
