/* Copyright 2008 Google. */ (function() { var aa=" and communicationType=",ba=" and hash=",ca=" checked",da=' checked="checked"',fa=" goog-inline-block",ha=" picker-navpaneitem-not-clickable",ia=" selected",ja=' style="ime-mode:disabled"',ka="!goog.soy.data.SanitizedContent|string",la='" aria-label="',ma='" class="',na='" data-tooltip-unhoverable="true"',oa='" dir="',pa='" is not registered',ra='" with value "',sa='"/><div class="',ta='"/><p style="color: gray">',ua='">',va='">&nbsp;</span>',wa='"></div>',xa='"></div><div class="',ya='"></iframe>',
za='"><a target="keyboard_shortcuts_help_window" href="',Aa='"><div class="',Ba='"><span id="',Ca='"><table cellpadding="0" class="',Da='"><tr><td class="',Ea="&&&START&&&",Fa="' of type ",Ga="-10000px",Ha="-caption",Ia="-content",Ja="-default",Ka="-disabled",La="-dropdown",Ma="-inner-box",Na="-menu-selected",Oa="-nextMonth",Pa="-none-btn",Qa="-outer-box",Ra="-previousMonth",Sa="-today-btn",Ta="//ssl.gstatic.com/docs/picker/images/search-black.png",Ua="//www.google-analytics.com/analytics.js",Va=
'/<strong><span jotId="pageURLScrubbed">',Wa="/config/pagetemplates/",Xa="/resources/rpc_relay.html",Ya="/system/app/components/adsense",Za="/system/app/components/min-countdown",$a="/system/app/components/min-navigation",ab="/system/app/components/min-recentchanges",bb="/system/app/components/min-recentchanges-mylinksonly",cb="/system/app/components/min-textbox",db="/system/app/images/spinner.gif",eb="/system/app/pages/admin/adsense",fb="/system/app/pages/admin/pagetemplates",gb="/system/app/tiles/plusbadge",
hb="/system/app/tiles/plusone",ib="/system/app/tiles/recentauthors",jb="/system/app/tiles/siteadmins",kb="100%",lb="</div>",mb="</div><br/>",nb="</h3></th></tr>",ob="</span>",pb="</span></strong></p></p>",qb="</table>",rb="</td></tr>",sb='</td><td class="',tb='</td><td><div class="',ub='<a href="',vb='<div class="',wb='<div class="goog-ws-element-section"><table><tr><td class="goog-ws-element-icon"><img src="',xb='<div class="sites-page-settings-error">',yb='<div id="',zb='<div jotId="treeDiv"></div>',
Ab='<span aria-label="',Bb='<span class="',Cb='<table class="',Db='<tr><td class="',Eb='<tr><th colspan="2"><h3 class="',Fb="?pageReverted=",Gb="?smartPreview=true",Hb="AdSensePromo",Ib="Add",Jb="An error occurred while saving template changes.",Kb="An image type (.jpg, .jpeg, .gif, .png) is required.",Lb="Application",Mb="BUTTON",Nb="BackgroundImageCache",Ob="Bad server config: ",Pb="COMP_",Qb="COMP_page-comments",Rb="COMP_page-subpages",Sb="CSS_APP_TABLE",Tb="CSS_SHORTCUTS_HELP_POPUP_CONTENT_ELEMENT",
Ub="CSS_SHORTCUTS_HELP_POPUP_CONTENT_HEADER",Vb="CSS_SHORTCUTS_HELP_POPUP_HEADER_TABLE_ELEMENT",Wb="CSS_SHORTCUTS_HELP_POPUP_TEAROFF_LINK",Xb="Can't combine significant digits and minimum fraction digits",Yb="Cancel",Zb='Cannot override "',$b="Change page template",bc="Close",cc="Component already rendered",dc="Components should not be created yet.",ec="Could not set focus",fc="Create Page",gc="Create a new page from this template",hc="Create new page",ic="Create page error",d="DIV",jc="Data spy excepton",
kc="Deferred has already been called",lc="Dogfood Confidential",mc="ERROR: Template settings not saved.",nc="ERROR: There is a newer version of the page. Please refresh the page.",oc="ERROR: Unable to copy the template, please try again later.",pc="ERROR: Unable to create the template, please try again later.",qc="ERROR: Unable to save the template, please try again later.",rc="EVERYTHING",sc="Edge",tc="Edit page",uc="Edit page template",vc="Edit site layout",wc="Email as attachment...",xc="Email collaborators...",
yc="Embedded in IFRAME",zc="Event listener threw exception.",Ac="EventTarget.dispatchDataNodeEvent",Bc="EventTarget.dispatchPropertyEvent",Cc="Expected block type.",Dc="GetPageTemplates",Ec="HTML_FORM",Fc="IFRAME",Gc="IMG",Hc="INHERIT",Jc="INPUT",Kc="Inconsistent use of percent/permill characters",Lc="Initiating module load: ",Mc="Invalid file type selected.",Nc="Invalid response from server.",Oc="JOT_FEEDBACK_displayFeedbackForm",Pc="JOT_setupSiteToolbarMenus",Qc="Learn more",Rc="Loading editor...",
Sc="Loading...",Tc="MSXML2.DOMDocument",Uc="More menu",Vc="Must be lower case",Wc="Not available",Xc="OPTION",Yc="Or, if you prefer...",Zc="POST",$c="Page",ad="Please wait ...",bd="Popular keyboard shortcuts",cd="Progress Started",dd="RenderSidebarWidget",ed="SCRIPT",fd="SELECT",gd="SPAN",hd="Save",id="SaveAsTemplate",jd="SaveUserSettings",kd="Saving settings...",ld="Saving...",md="Search all shortcuts",nd="Site",od="Smart preview",pd="Soy template may not be null.",qd="Start and end points must be 2D",
rd="Storage mechanism: Invalid value was encountered",sd="Storage mechanism: Quota exceeded",td="Storage: Invalid value was encountered",ud="Subscribe to site changes",vd="TABLE",wd="TBODY",xd="TD",yd="TEXTAREA",zd="TR",Ad="Template Settings",Bd="The DOM element for the container cannot be null.",Cd="The access removal was unsuccessful.",Dd="The element passed as a first parameter cannot be null.",Ed="The label input element cannot be null.",Fd="The menu button DOM element cannot be null.",Gd="The progress bar DOM element cannot be null.",
Hd="This folder is read-only",Id="This is not a folder",Jd="Too many percent/permill",Kd="ToolBar",Ld="Top level",Md="Unable to set parent component",Nd="Undefined parameter - ",Od="Uneven number of arguments",Pd="Upload server error, please try again later.",Qd="User initiated module already loading: ",Rd="User initiated module load: ",Sd="WARNING: Undo delete failed",Td="You will no longer be notified when changes are made to this site.",Ud="You will no longer be notified when this page is changed.",
Vd="Zero is invalid.",Wd="[goog.net.IframeIo] Unable to send, already active.",Xd="_blank",Yd="abort",Zd="about:blank",$d="about:invalid#zClosurez",ae="about:invalid#zSoyz",be="absolute",ce="aclInfoUpdated",k="action",de="active",ee="activedescendant",fe="advanced",ge="afterLoad",he="afterhide",ie="aftershow",je="album",ke="all",le="allPersonalCircles",ne="allfilesadded",oe="allowedItemTypes",pe="animate",qe="announcements",re="application/octet-stream",se="application/pdf",te="application/vnd.google-apps.document",
ue="application/vnd.google-apps.folder",ve="application/vnd.google-apps.form",we="application/vnd.google-apps.freebird",xe="application/vnd.google-apps.kix",ye="application/vnd.google-apps.presentation",ze="application/vnd.google-apps.punch",Ae="application/vnd.google-apps.ritz",Be="application/vnd.google-apps.rollupphotoalbum",Ce="application/vnd.google-apps.spreadsheet",De="application/x-shockwave-flash",Ee="apps-actiondatawidget-key-focused",Fe="apps-actiondatawidget-override-info-icon",Ge="apps-share-sprite",
He="apps-shortcutshelppopup-content",Ie="apps-shortcutshelppopup-content-element",Je="apps-shortcutshelppopup-content-wrapper",Ke="apps-shortcutshelppopup-dialog-title",Le="apps-shortcutshelppopup-empty-search",Me="apps-shortcutshelppopup-header-element",Ne="apps-shortcutshelppopup-help-center-link",Oe="apps-shortcutshelppopup-input",Pe="apps-shortcutshelppopup-input-button",Qe="apps-shortcutshelppopup-pref-component",Re="apps-shortcutshelppopup-reset-search-button",Se="apps-shortcutshelppopup-search-label",
Te="aria-label",Ue='aria-label="',Ve="array",We="assertive",Xe="atomic",Ye="attachment-undo-",Ze="audience",$e="authuser",af="auto",bf="autocomplete",cf="backgroundColor",df="backoff",ef="beforehide",ff="beforeshow",gf="black",hf="blur",jf="boolean",kf="border-box",lf="bottom",mf="button",nf="calendar",of="calendars",pf="camerasync",qf="cancel",rf="category",sf="center",tf="change",uf="changeDrivePermissions",vf="changeTemplateButton",wf="character",xf="checkbox",yf="checked",zf="circle",Af="circles",
Bf="click",Cf="close",Df="closed",Ef="collapsed",Ff="combobox",Gf="complete",Hf="completeEdit",If="completeEditRender",Jf="component/",Kf="component/navbar/showRecents",Lf="component/navbar/showSiteMap",Mf="component/navbar/tabType",Nf="computers",Of="config/bodyId",Pf="config/footerContent",Qf="config/footerType",Rf="config/headerHeight",Sf="config/headerHorizontalAlignment",Tf="config/headerVerticalAlignment",Uf="config/logoPath",Vf="config/logoRevision",Wf="config/navbarEnabled",Xf="config/sidebarRef",
Yf="config/sidebarWidth",Zf="config/siteWidth",$f="config/systemFooterHideDesktopLink",ag="config/systemFooterHidePrintPageLink",bg="config/systemFooterHideRecentChangesLink",cg="config/systemFooterHideSignInLink",dg="configChange",eg="consumer",fg="contacts",gg="containingCosmoId",hg="contentId",ig="contextmenu",jg="continue",kg="create-new-btn",lg="createPageButton",mg="createTemplateButton",ng="crop",og="cultural",pg="custom",qg="data-tooltip",rg="data-tooltip-align",sg="data-tooltip-class",tg=
"data-tooltip-contained",ug="data-tooltip-offset",vg="dblclick",wg="deactivate",xg="default",yg="defaultdomain",zg="describedby",Ag="description",Bg="dialog",Cg="dialogselect",Dg="disabled",Eg="dismiss",Fg="div",Gg="docTypesDropDown",Hg="docs",Ig="docs-images",Jg="docs-images-and-videos",Kg="docs-videos",Lg="document",Mg="documents",Ng="domainPublic",Og="domaindefault",Pg="downloadUrl",Qg="dragout",Rg="dragover",Sg="dragstart",Tg="drawings",Ug="drive-select",Vg="drivepreopen",Wg="driveshare",Xg="edit-start-btn",
Yg="editSiteLayout",Zg="email",$g="emailAttach",ah="embedUrl",bh="enableSizeEstimation",ch="enableWhiteCallout",dh="enabled",eh="end",fh="enter",gh="error",hh="error_querying",ih="event",jh="exception",kh="expand",lh="expanded",mh="expander",nh="extendedCircles",oh="false",ph="fancywindow.sel.",qh="featured",rh="file",sh="filecabinet",th="filedownsamplingcompleted",uh="filedownsamplingstarted",vh="filesscanfinished",wh="filesscanstarted",xh="filesselected",yh="fixed",zh="focus",Ah="focusin",Bh="focusout",
Ch="folders",Dh='font-family: "',Eh="fontSubset",Fh="fonts",Gh="force-ctrl-key",Hh="forms",Ih="function",Jh="gadgets",Kh="gapi.iframes.getContext",Lh="gapi.iframes.makeWhiteListIframesFilter",Mh="gapi.iframes:gapi.iframes.style.common",Nh="getty",Oh="gmail",Ph="gmailDelegatorId",Qh="goog-button",Rh="goog-button-base-content",Sh="goog-color-menu-button",Th="goog-control",Uh="goog-custom-button",Vh="goog-flat-button",Wh="goog-flat-menu-button",Xh="goog-inline-block",Yh="goog-inline-block ",Zh="goog-link-button",
$h="goog-menu",ai="goog-menu-button",bi="goog-menu-noicon",ci="goog-menuheader",di="goog-menuseparator",ei="goog-option",fi="goog-option-selected",gi="goog-selectionmenubutton-checkbox",hi="goog-submenu",ii="goog-submenu-arrow",ji="goog-submenu-arrow-rtl",ki="goog-tabpane-tab",li="goog-toolbar-button",mi="goog-toolbar-color-menu-button",ni="goog-toolbar-menu-button",oi="goog-toolbar-separator",pi="goog-tree-collapsed-folder-icon",qi="goog-tree-expanded-folder-icon",ri="goog-zippy-expanded",si="goog.i18n.DateTimeSymbols or explicit symbols must be defined",
ti="grid",ui="gridcell",vi="guidedhelpid",wi="haspopup",xi="height",yi="hidden",zi="hide",Ai="highlight",Bi="highlights",Ci="horizontal",Di="horizontalNavigation",Ei="hostId",Fi="hosted",Gi="https",Hi="https:",Ii="https://about:blank",Ji="https://apis.google.com/js/api.js",Ki="https://apis.google.com/js/platform.js",Li="ids",Mi="image",Ni="image-search",Oi="imgcolor",Pi="imgtype",Qi="includeFolders",Ri="independent",Si="inherits",Ti="init",Ui="inline",Vi="input",Wi="inqueue",Xi="isLocalProfilePhoto",
Yi="isShared",Zi="istdr",$i="itemIndex",aj="itemadded",bj='javascript:""',cj="jfk-activityIndicator-circle",dj="jfk-activityIndicator-mask",ej="jfk-butterBar-shown",fj="jfk-button",gj="jfk-button-action",hj="jfk-button-primary",ij="jfk-button-standard",jj="jfk-checkbox",kj="jfk-checkbox-checkmark",lj="jfk-radiobutton",mj="jfk-tooltip",nj="jfk-tooltip-hide",oj="jot-ui-asciifiedURL",pj="jot-ui-createForm",qj="jot-ui-pageLocText",rj="jot-ui-pageName",sj="jot-ui-previewPageCustomPath",tj="jot-ui-previewPageURL",
uj="jot-ui-searchInput",vj="jot.xtok",wj="jot_viewer",xj="kansasVersionInfo",yj="key",zj="keydown",Aj="keypress",Bj="keyup",Cj="label",Dj="labelledby",Ej="lastEditedUtc",Fj="lastModifiedByMeUtc",Gj="lastViewedByMeUtc",Hj="latitude",Ij="left",Jj="license",Kj="list",Lj="listbox",Mj="live",Nj="load",Oj="loadError",Pj="load_acl_fixer_data",Qj="loaded",Rj="localalbum",Sj="longitude",Tj="ltr",Uj="lv",Vj="main/openNewWin",Wj="main/title",Xj="maps",Yj="maps-pro",Zj="markedForRemoval",ak="maybe_show_acl_fixer",
bk="mediaKey",ck="mediacollection",dk="mediacollections",ek="menuUpdated",fk="menuitemcheckbox",gk="message",hk="middle",ik="mimeType",jk="mimeTypes",kk="minimal",lk="mode",mk="more-actions-btn",nk="mousedown",ok="mousemove",pk="mouseout",qk="mouseover",rk="mouseup",sk="mousewheel",tk="move_offscreen",uk="multipart/form-data",vk="multiselectEnabled",wk="must provide justification",xk="must provide non-empty justification",yk="myrecentchanges",zk="native",Ak="navDynamicDepth",Bk="navigation",Ck="navigationTree",
Dk="networkerror",Ek="none",Fk="noside",Gk="null",Hk="numChildren",Ik="number",Jk="object",Kk="offset",Lk="ok",Mk="on the <strong>left</strong>",Nk="on the <strong>right</strong>",Ok="onCompleteData",Pk="onPreviewReady",Qk="onSecurityError",Rk="onclick",Sk="opacity 1s linear",Tk="openChangePageTemplate",Uk="openCreatePage",Vk="openManageSite",Wk="openRevisionHistory",Xk="openSiteLayout",Yk="opp",Zk="oppe",$k="oppu",al="opt_onFulfilled should be a function.",bl="opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?",
cl="option",dl="options",el="organizeIntoTeamDrive",fl="orientationchange",gl="other",hl="overflow-y",il="overflow:hidden;width:",jl="overlayElement must be defined",kl="ownedByMe",ll="ownerOnly",ml="owns",nl="padding-",ol="pageEdit",pl="pageFinderIncludeCurrent",ql="pageLocSelectedPath",m="parent",rl="partial-error",sl="pdfs",tl="people",ul="photo",vl="photo-albums",wl="photo-caption",xl="photo-curation",yl="photo-upload",zl="photos",Al="picasa",Bl="picked",Cl="picker",Dl="picker-actionpane-float-item",
El="picker-actionpane-frame",Fl="picker-actionpane-notice-error",Gl="picker-actionpane-notice-warning",Hl="picker-attributionbar-line",Il="picker-dropdown-menu",Jl="picker-fontbar-menu-container",Kl="picker-header-close",Ll="picker-header-icon",Ml="picker-header-text",Nl="picker-horizontal-navpane-more-selected",Ol="picker-list-control-tablerow",Pl="picker-min-bottom",Ql="picker-min-top",Rl="picker-minew",Sl="picker-navpane",Tl="picker-pplnavpane-more goog-inline-block",Ul="picker-pplnavpane-text",
Vl="picker-promo-text",Wl="picker-searchbar-input-logo",Xl="picker-searchbarimagefilter-colorbox",Yl="picker-searchbarimagefilter-colorbox-inner",Zl="picker-select-control-enabled",$l="picker-selnavitem-count",am="picker-selnavitem-count-slide",bm="picker-spr-arrow-dk-grey-down",cm="picker-spr-circle",dm="picker-spr-circle-active",em="picker-spr-circle-hover",fm="picker-sspr-close-tab",gm="picker-url-input-box-selected",hm="picker-urlview-error-icon goog-inline-block",im="picker-urlview-loading-icon goog-inline-block",
jm="picker-white-callout",km="picker.api.DocsView",lm="picker.api.ExternalCodeLoader.onMapsApiLoaded",mm="picker.api.NativeMinimalPicker",nm="picker.api.NativePicker",om="picker.api.PhotosView.Type",pm="picker:ap:",qm="plusbadge",rm="polite",sm="posinset",tm="position",um="preload_share",vm="presentation",wm="presentations",xm="previewAsViewer",ym="profile",zm="profilePhoto",Am="progress",Bm="progress-bar-thumb",Cm="protocol",Dm="public",n="px",Em="px;height:",Fm="query",Gm="ready",Hm="readystatechange",
Im="received",Jm="recently-picked",Km="recovery",Lm="refresh",Mm="relative",Nm="reset",Om="resize",Pm="right",Qm="role",Rm="rollupAlbum",Sm="root",Tm="rtl",Um="saveAsPageTemplate",Vm="scb-icon",Wm="scb-tooltip-contents",Ym="scb-tooltip-icon-container",Zm="scb-tooltip-text",$m="scb-tooltip-title",an="scripts",bn="scroll",cn="sdv",dn="search",en="select",fn="select-multiple",gn="selectButtonLabel",hn="selected",jn="semicolon",kn="separator",ln="serverinvalidresponse",mn="serverrejected",nn="service",
on="set-drive-options",pn="set-max-items",qn="set-max-size-bytes",rn="set-title",sn="set-upload-album-id",tn="set-view",un="set-view-options",vn="settings",wn="shadeDialog",xn="share-butter-link",yn="sharedWithMe",zn="shortcut-dialog-category-selected",An="shortcut-dialog-user-scroll",Bn="should not reach default case",Cn="show",Dn="show-delete-page-disabled",En="showChangePageLocationDialog",Fn="showDeletePage",Gn="showMovePage",Hn="showPageSettings",In="showShareClient",Jn="showTemplateSettings",
Kn="sidebar-widget-drag-over",Ln="sidebar-widget-drag-start",Mn="sidebarWidget",Nn="siets-debug-log-output",On="simpleUploadEnabled",Pn="site",Qn="sitemap-tree",Rn="sites",Sn="sites-admin-settings-cancel",Tn="sites-app-title",Un="sites-attachments",Vn="sites-attachments-update-div",Wn="sites-button-container",Xn="sites-canvas-wrapper",Yn="sites-chrome-adminfooter-container",Zn="sites-chrome-dialog-launcher",$n="sites-chrome-everything",ao="sites-chrome-footer",bo="sites-chrome-header",co="sites-chrome-header-horizontal-nav-container",
eo="sites-chrome-navigationdialog-icon-left",fo="sites-chrome-navigationdialog-icon-right",go="sites-chrome-sidebar-left",ho="sites-chrome-sidebar-right",io="sites-chrome-userheader",jo="sites-chrome-userheader-logo",ko="sites-close",lo="sites-collaborator-bar",mo="sites-edit-in-progress",no="sites-gears-button",oo="sites-header-nav-dropdown-menu",po="sites-header-nav-dropdown-menuitem",qo="sites-layout-sidebar-left",ro="sites-page-title-header",so="sites-searchbox-form",to="sites-sitelayout-overlay",
uo="sites-sitelayout-overlay-container",vo="sites-sitelayouteditor-toolbar-button-custom-footer",wo="sites-sitelayouteditor-toolbar-button-header",xo="sites-sitelayouteditor-toolbar-button-horizontal-nav",yo="sites-sitelayouteditor-toolbar-button-sidebar",zo="sites-system-page-cancel-button",Ao="sites-tree-dragged-item",Bo="sites-tree-drop-hover",Co="sites-tree-root-icon",Do="sites.gvizloader.handleGvizLoaded_",Eo="smart-preview-btn",Fo="sortKey",Go="sortOrder",Ho="sourceTeamDriveId",Io="sourceTeamDriveName",
Jo="span",Ko="spinnerWait",Lo="spreadsheets",Mo="standard",No="starred",Oo="start",Po="startsuccess",Qo="stats",Ro="status",So="string",To="style",Uo="submit",Vo="success",Wo="suggestionsupdate",Xo="tables",Yo="teamDriveId",Zo="teamDrivesFolder",$o="text",ap="text/javascript",bp="textBoxContent",cp="textarea",dp="themedefault",ep="thumbnails",fp="tick",gp="timeout",hp="timestamp",ip="title",jp="toggle",kp="toggle-selected-on-fire",lp="togglePageSubscription",mp="toggleSiteSubscription",np="toggle_display",
op="top",pp="touchstart",qp="transfer",rp="transparent",sp="true",tp="type",up="uiContainerCancelLoad",vp="uiContainerClose",wp="undoAttachmentDelete",xp="unhighlight",yp="unknown type name",zp="upload",Ap="upload-status-progress-",Bp="upload-status-text-",Cp="uploadProgress",Dp="uploadScheduled",Ep="uploadStateChange",Fp="uploaded",Gp="uploader-overlay-visible",Hp="uploaderinstalling",Ip="uploaderready",Jp="uploaderuninstalling",Kp="uploadprogress",Lp="uploadstatechanged",Mp="url",Np="urlInputVisible",
Op="urlPreviewAnchorId",Pp="use buildMinimal to build minimal picker",Qp="username",Rp="value",Sp="valuenow",Tp="version",Up="vertical",Vp="video",Wp="video-search",Xp="videos",Yp="videos-camerasync",Zp="videos-uploaded",$p="viewChanged",aq="viewContentRendered",bq="viewToken",cq="viewUpdated",dq="visibility",eq="visibilityFilter",fq="visible",gq="web",hq="webcam",iq="webkitvisibilitychange",jq="white",kq="width",lq="www.facebook.com",mq="www.metacafe.com",nq="www.youtube.com",oq="youtu.be",pq="youtube",
rq="youtube-banner-preview",sq="youtube.com",q,tq=typeof Object.defineProperties==Ih?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},uq="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,vq=function(a,b){if(b){var c=uq;a=a.split(".");for(var e=0;e<a.length-1;e++){var f=a[e];f in c||(c[f]={});c=c[f]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&tq(c,a,{configurable:!0,writable:!0,value:b})}},wq=function(){wq=
function(){};uq.Symbol||(uq.Symbol=xq)},xq=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),zq=function(){wq();var a=uq.Symbol.iterator;a||(a=uq.Symbol.iterator=uq.Symbol("iterator"));typeof Array.prototype[a]!=Ih&&tq(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return yq(this)}});zq=function(){}},yq=function(a){var b=0;return Aq(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},Aq=function(a){zq();a={next:a};a[uq.Symbol.iterator]=function(){return this};
return a},Bq=function(a,b){zq();a instanceof String&&(a+="");var c=0,e={next:function(){if(c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}e.next=function(){return{done:!0,value:void 0}};return e.next()}};e[Symbol.iterator]=function(){return e};return e};vq("Array.prototype.keys",function(a){return a?a:function(){return Bq(this,function(a){return a})}},"es6","es3");
vq("Object.values",function(a){return a?a:function(a){var b=[],e;for(e in a)Object.prototype.hasOwnProperty.call(a,e)&&b.push(a[e]);return b}},"es8","es3");if(window.jstiming){window.jstiming.aT={};window.jstiming.Pwa=1;var Cq=function(a,b,c){var e=a.t[b],f=a.t.start;if(e&&(f||c))return e=a.t[b][0],f=void 0!=c?c:f[0],Math.round(e-f)},Dq=function(a,b,c){var e="";window.jstiming.srt&&(e+="&srt="+window.jstiming.srt,delete window.jstiming.srt);window.jstiming.pt&&(e+="&tbsrt="+window.jstiming.pt,delete window.jstiming.pt);try{window.external&&window.external.tran?e+="&tran="+window.external.tran:window.gtbExternal&&window.gtbExternal.tran?e+="&tran="+window.gtbExternal.tran():
window.chrome&&window.chrome.csi&&(e+="&tran="+window.chrome.csi().tran)}catch(O){}var f=window.chrome;if(f&&(f=f.loadTimes)){f().wasFetchedViaSpdy&&(e+="&p=s");if(f().wasNpnNegotiated){e+="&npn=1";var g=f().npnNegotiatedProtocol;g&&(e+="&npnv="+(encodeURIComponent||escape)(g))}f().wasAlternateProtocolAvailable&&(e+="&apa=1")}var h=a.t,l=h.start;f=[];g=[];for(var p in h)if(p!=Oo&&0!=p.indexOf("_")){var r=h[p][1];r?h[r]&&g.push(p+"."+Cq(a,p,h[r][0])):l&&f.push(p+"."+Cq(a,p))}delete h.start;if(b)for(var z in b)e+=
"&"+z+"="+b[z];(b=c)||(b=Hi==document.location.protocol?"https://csi.gstatic.com/csi":"http://csi.gstatic.com/csi");return[b,"?v=3","&s="+(window.jstiming.sn||"jotspot")+"&action=",a.name,g.length?"&it="+g.join(","):"",e,"&rt=",f.join(",")].join("")},Eq=function(a,b,c){a=Dq(a,b,c);if(!a)return"";b=new Image;var e=window.jstiming.Pwa++;window.jstiming.aT[e]=b;b.onload=b.onerror=function(){window.jstiming&&delete window.jstiming.aT[e]};b.src=a;b=null;return a};window.jstiming.report=function(a,b,c){if("prerender"==
document.webkitVisibilityState){var e=!1,f=function(){if(!e){b?b.prerender="1":b={prerender:"1"};if("prerender"==document.webkitVisibilityState)var g=!1;else Eq(a,b,c),g=!0;g&&(e=!0,document.removeEventListener(iq,f,!1))}};document.addEventListener(iq,f,!1);return""}return Eq(a,b,c)}};var Fq=Fq||{},t=this,u=function(a){return void 0!==a},v=function(a){return typeof a==So},Gq=function(a){return typeof a==jf},Hq=function(a){return typeof a==Ik},w=function(a,b,c){a=a.split(".");c=c||t;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&u(b)?c[e]=b:c=c[e]&&c[e]!==Object.prototype[e]?c[e]:c[e]={}},Iq=function(a,b){a=a.split(".");b=b||t;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},Jq=function(){},Kq=function(a){a.EK=
void 0;a.H=function(){return a.EK?a.EK:a.EK=new a}},Lq=function(a){var b=typeof a;if(b==Jk)if(a){if(a instanceof Array)return Ve;if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return Jk;if("[object Array]"==c||typeof a.length==Ik&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return Ve;if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return Ih}else return Gk;
else if(b==Ih&&"undefined"==typeof a.call)return Jk;return b},x=function(a){return Lq(a)==Ve},Mq=function(a){var b=Lq(a);return b==Ve||b==Jk&&typeof a.length==Ik},Nq=function(a){return Lq(a)==Ih},Oq=function(a){var b=typeof a;return b==Jk&&null!=a||b==Ih},Rq=function(a){return a[Pq]||(a[Pq]=++Qq)},Sq=function(a){null!==a&&"removeAttribute"in a&&a.removeAttribute(Pq);try{delete a[Pq]}catch(b){}},Pq="closure_uid_"+(1E9*Math.random()>>>0),Qq=0,Tq=function(a){var b=Lq(a);if(b==Jk||b==Ve){if(a.clone)return a.clone();
b=b==Ve?[]:{};for(var c in a)b[c]=Tq(a[c]);return b}return a},Uq=function(a,b,c){return a.call.apply(a.bind,arguments)},Vq=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,e);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},y=function(a,b,c){y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
Uq:Vq;return y.apply(null,arguments)},Wq=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},A=Date.now||function(){return+new Date},Xq=function(a,b,c){w(a,b,c)},B=function(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.mNa=function(a,c,g){for(var e=Array(arguments.length-2),f=2;f<arguments.length;f++)e[f-2]=arguments[f];return b.prototype[c].apply(a,
e)}};var Yq=function(a,b){return 0==a.lastIndexOf(b,0)},Zq=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},$q=function(a,b){for(var c=a.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)e+=c.shift()+f.shift();return e+c.join("%s")},ar=function(a){return/^[\s\xa0]*$/.test(a)},br=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},cr=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,
"")},dr=function(a,b,c){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var e=a.toLowerCase().match(c),f=b.toLowerCase().match(c),g=Math.min(e.length,f.length),h=0;h<g;h++){c=e[h];var l=f[h];if(c!=l)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(l,10),!isNaN(b)&&a-b)?a-b:c<l?-1:1}return e.length!=f.length?e.length-f.length:a<b?-1:1},er=function(a){return decodeURIComponent(a.replace(/\+/g," "))},fr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")},qr=function(a,b){if(b)a=a.replace(gr,
"&amp;").replace(hr,"&lt;").replace(ir,"&gt;").replace(jr,"&quot;").replace(nr,"&#39;").replace(or,"&#0;");else{if(!pr.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(gr,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(hr,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(ir,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(jr,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(nr,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(or,"&#0;"))}return a},gr=/&/g,hr=/</g,ir=/>/g,jr=/"/g,nr=/'/g,or=/\x00/g,pr=/[\x00&<>"']/,ur=function(a){return rr(a,
"&")?Lg in t?sr(a):tr(a):a},sr=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var e=b?b.createElement(Fg):t.document.createElement(Fg);return a.replace(vr,function(a,b){var f=c[a];if(f)return f;"#"==b.charAt(0)&&(b=Number("0"+b.substr(1)),isNaN(b)||(f=String.fromCharCode(b)));f||(e.innerHTML=a+" ",f=e.firstChild.nodeValue.slice(0,-1));return c[a]=f})},tr=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";
case "quot":return'"';default:return"#"!=c.charAt(0)||(c=Number("0"+c.substr(1)),isNaN(c))?a:String.fromCharCode(c)}})},vr=/&([^;\s<&]+);?/g,rr=function(a,b){return-1!=a.indexOf(b)},wr=function(a,b,c){var e=a;0<=b&&b<a.length&&0<c&&(e=a.substr(0,b)+a.substr(b+c,a.length-b-c));return e},xr=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},yr=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},zr=function(a,
b,c){a=u(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return yr("0",Math.max(0,b-c))+a},Ar=function(a){return null==a?"":String(a)},Br=function(a){return Array.prototype.join.call(arguments,"")},Cr=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^A()).toString(36)},Er=function(a,b){var c=0;a=cr(String(a)).split(".");b=cr(String(b)).split(".");for(var e=Math.max(a.length,b.length),f=0;0==c&&f<e;f++){var g=a[f]||"",h=
b[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;c=Dr(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||Dr(0==g[2].length,0==h[2].length)||Dr(g[2],h[2]);g=g[3];h=h[3]}while(0==c)}return c},Dr=function(a,b){return a<b?-1:a>b?1:0},Fr=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},Gr=function(a,b){b=v(b)?xr(b):"\\s";return a.replace(new RegExp("(^"+(b?
"|["+b+"]+":"")+")([a-z])","g"),function(a,b,f){return b+f.toUpperCase()})};var Hr=function(a){this.Qb=a||{cookie:""}};q=Hr.prototype;q.isEnabled=function(){return navigator.cookieEnabled};q.kra=function(a){return!/[;=\s]/.test(a)};q.lra=function(a){return!/[;\r\n]/.test(a)};
q.set=function(a,b,c,e,f,g){if(!this.kra(a))throw Error('Invalid cookie name "'+a+'"');if(!this.lra(b))throw Error('Invalid cookie value "'+b+'"');u(c)||(c=-1);f=f?";domain="+f:"";e=e?";path="+e:"";g=g?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(A()+1E3*c)).toUTCString();this.xD(a+"="+b+f+e+c+g)};q.get=function(a,b){for(var c=a+"=",e=this.iJ(),f=0,g;f<e.length;f++){g=cr(e[f]);if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};
q.remove=function(a,b,c){var e=this.Xb(a);this.set(a,"",0,b,c);return e};q.bb=function(){return this.Mz().keys};q.nb=function(){return this.Mz().values};q.Sb=function(){return!this.Vt()};q.sa=function(){return this.Vt()?this.iJ().length:0};q.Xb=function(a){return u(this.get(a))};q.nj=function(a){for(var b=this.Mz().values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};q.clear=function(){for(var a=this.Mz().keys,b=a.length-1;0<=b;b--)this.remove(a[b])};q.xD=function(a){this.Qb.cookie=a};q.Vt=function(){return this.Qb.cookie};
q.iJ=function(){return(this.Vt()||"").split(";")};q.Mz=function(){for(var a=this.iJ(),b=[],c=[],e,f,g=0;g<a.length;g++)f=cr(a[g]),e=f.indexOf("="),-1==e?(b.push(""),c.push(f)):(b.push(f.substring(0,e)),c.push(f.substring(e+1)));return{keys:b,values:c}};var Ir=new Hr("undefined"==typeof document?null:document);Ir.PIa=3950;var Jr={},Kr=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Kr);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};B(Kr,Error);Kr.prototype.name="CustomError";var Lr;var Mr=function(a,b){b.unshift(a);Kr.call(this,$q.apply(null,b));b.shift()};B(Mr,Kr);Mr.prototype.name="AssertionError";
var Nr=function(a,b,c,e){var f="Assertion failed";if(c){f+=": "+c;var g=e}else a&&(f+=": "+a,g=b);throw new Mr(""+f,g||[]);},C=function(a,b,c){a||Nr("",null,b,Array.prototype.slice.call(arguments,2));return a},Or=function(a,b){throw new Mr("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Pr=function(a,b,c){Hq(a)||Nr("Expected number but got %s: %s.",[Lq(a),a],b,Array.prototype.slice.call(arguments,2));return a},Qr=function(a,b,c){v(a)||Nr("Expected string but got %s: %s.",[Lq(a),
a],b,Array.prototype.slice.call(arguments,2));return a},Rr=function(a,b,c){Nq(a)||Nr("Expected function but got %s: %s.",[Lq(a),a],b,Array.prototype.slice.call(arguments,2));return a},Sr=function(a,b,c){Oq(a)||Nr("Expected object but got %s: %s.",[Lq(a),a],b,Array.prototype.slice.call(arguments,2));return a},Tr=function(a,b,c){x(a)||Nr("Expected array but got %s: %s.",[Lq(a),a],b,Array.prototype.slice.call(arguments,2));return a},Ur=function(a,b,c){Oq(a)&&1==a.nodeType||Nr("Expected Element but got %s: %s.",
[Lq(a),a],b,Array.prototype.slice.call(arguments,2));return a},Wr=function(a,b,c,e){a instanceof b||Nr("Expected instanceof %s but got %s.",[Vr(b),Vr(a)],c,Array.prototype.slice.call(arguments,3));return a},Vr=function(a){return a instanceof Function?a.displayName||a.name||yp:a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):null===a?Gk:typeof a};var Xr=Array.prototype.indexOf?function(a,b,c){C(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(v(a))return v(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Yr=Array.prototype.lastIndexOf?function(a,b,c){C(null!=a.length);return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(v(a))return v(b)&&1==
b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},D=Array.prototype.forEach?function(a,b,c){C(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=v(a)?a.split(""):a,g=0;g<e;g++)g in f&&b.call(c,f[g],g,a)},Zr=function(a,b,c){for(var e=v(a)?a.split(""):a,f=a.length-1;0<=f;--f)f in e&&b.call(c,e[f],f,a)},$r=Array.prototype.filter?function(a,b,c){C(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var e=
a.length,f=[],g=0,h=v(a)?a.split(""):a,l=0;l<e;l++)if(l in h){var p=h[l];b.call(c,p,l,a)&&(f[g++]=p)}return f},as=Array.prototype.map?function(a,b,c){C(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=Array(e),g=v(a)?a.split(""):a,h=0;h<e;h++)h in g&&(f[h]=b.call(c,g[h],h,a));return f},bs=Array.prototype.reduce?function(a,b,c,e){C(null!=a.length);e&&(b=y(b,e));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,e){var f=c;D(a,function(c,h){f=b.call(e,
f,c,h,a)});return f},cs=Array.prototype.some?function(a,b,c){C(null!=a.length);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=v(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1},ds=Array.prototype.every?function(a,b,c){C(null!=a.length);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var e=a.length,f=v(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&!b.call(c,f[g],g,a))return!1;return!0},es=function(a,b,c){var e=0;D(a,function(a,g,h){b.call(c,
a,g,h)&&++e},c);return e},gs=function(a,b,c){b=fs(a,b,c);return 0>b?null:v(a)?a.charAt(b):a[b]},fs=function(a,b,c){for(var e=a.length,f=v(a)?a.split(""):a,g=0;g<e;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1},hs=function(a,b,c){for(var e=v(a)?a.split(""):a,f=a.length-1;0<=f;f--)if(f in e&&b.call(c,e[f],f,a))return f;return-1},is=function(a,b){return 0<=Xr(a,b)},ks=function(a){return 0==a.length},ls=function(a){if(!x(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},ms=function(a,b){is(a,
b)||a.push(b)},os=function(a,b){b=Xr(a,b);var c;(c=0<=b)&&ns(a,b);return c},ns=function(a,b){C(null!=a.length);return 1==Array.prototype.splice.call(a,b,1).length},ps=function(a,b,c){b=fs(a,b,c);return 0<=b?(ns(a,b),!0):!1},qs=function(a){return Array.prototype.concat.apply([],arguments)},rs=function(a){var b=a.length;if(0<b){for(var c=Array(b),e=0;e<b;e++)c[e]=a[e];return c}return[]},ss=function(a,b){for(var c=1;c<arguments.length;c++){var e=arguments[c];if(Mq(e)){var f=a.length||0,g=e.length||0;
a.length=f+g;for(var h=0;h<g;h++)a[f+h]=e[h]}else a.push(e)}},us=function(a,b,c,e){C(null!=a.length);return Array.prototype.splice.apply(a,ts(arguments,1))},ts=function(a,b,c){C(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},vs=function(a,b,c){b=b||a;var e=function(a){return Oq(a)?"o"+Rq(a):(typeof a).charAt(0)+a};c=c||e;e={};for(var f=0,g=0;g<a.length;){var h=a[g++],l=c(h);Object.prototype.hasOwnProperty.call(e,l)||(e[l]=!0,b[f++]=h)}b.length=
f},xs=function(a,b){a.sort(b||ws)},ys=function(a,b){for(var c=Array(a.length),e=0;e<a.length;e++)c[e]={index:e,value:a[e]};var f=b||ws;xs(c,function(a,b){return f(a.value,b.value)||a.index-b.index});for(e=0;e<a.length;e++)a[e]=c[e].value},ws=function(a,b){return a>b?1:a<b?-1:0};var zs=function(a,b,c){this.yra=c;this.pj=a;this.Ll=b;this.$B=0;this.Jb=null};zs.prototype.get=function(){if(0<this.$B){this.$B--;var a=this.Jb;this.Jb=a.next;a.next=null}else a=this.pj();return a};zs.prototype.put=function(a){this.Ll(a);this.$B<this.yra&&(this.$B++,a.next=this.Jb,this.Jb=a)};var As=function(a){return function(){return a}},Bs=As(!0),Cs=As(null),Ds=function(a){return a},Es=function(a){return function(){throw Error(a);}};var Fs;a:{var Gs=t.navigator;if(Gs){var Hs=Gs.userAgent;if(Hs){Fs=Hs;break a}}Fs=""}var Is=function(a){return rr(Fs,a)};var Js=function(a,b,c){for(var e in a)b.call(c,a[e],e,a)},Ks=function(a,b,c){var e={},f;for(f in a)b.call(c,a[f],f,a)&&(e[f]=a[f]);return e},Ls=function(a,b,c){var e={},f;for(f in a)e[f]=b.call(c,a[f],f,a);return e},Ms=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return!0;return!1},Ns=function(a,b,c){for(var e in a)if(!b.call(c,a[e],e,a))return!1;return!0},Os=function(a){var b=0,c;for(c in a)b++;return b},Ps=function(a){var b=[],c=0,e;for(e in a)b[c++]=a[e];return b},Qs=function(a){var b=
[],c=0,e;for(e in a)b[c++]=e;return b},Rs=function(a,b){return null!==a&&b in a},Ss=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Ts=function(a,b,c){for(var e in a)if(b.call(c,a[e],e,a))return e},Us=function(a){for(var b in a)return!1;return!0},Vs=function(a,b){var c;(c=b in a)&&delete a[b];return c},Ws=function(a,b,c){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c},Xs=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ys=function(a){var b=Lq(a);
if(b==Jk||b==Ve){if(Nq(a.clone))return a.clone();b=b==Ve?[]:{};for(var c in a)b[c]=Ys(a[c]);return b}return a},Zs=function(a){var b={},c;for(c in a)b[a[c]]=c;return b},$s="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),at=function(a,b){for(var c,e,f=1;f<arguments.length;f++){e=arguments[f];for(c in e)a[c]=e[c];for(var g=0;g<$s.length;g++)c=$s[g],Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}},bt=function(a){var b=arguments.length;
if(1==b&&x(arguments[0]))return bt.apply(null,arguments[0]);if(b%2)throw Error(Od);for(var c={},e=0;e<b;e+=2)c[arguments[e]]=arguments[e+1];return c},ct=function(a){var b=arguments.length;if(1==b&&x(arguments[0]))return ct.apply(null,arguments[0]);for(var c={},e=0;e<b;e++)c[arguments[e]]=!0;return c};var dt=function(){return(Is("Chrome")||Is("CriOS"))&&!Is(sc)};var et=function(a){t.setTimeout(function(){throw a;},0)},ft,gt=function(){var a=t.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Is("Presto")&&(a=function(){var a=document.createElement(Fc);a.style.display=Ek;a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),e="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;
a=y(function(a){if(("*"==e||a.origin==e)&&a.data==c)this.port1.onmessage()},this);b.addEventListener(gk,a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,e)}}});if("undefined"!==typeof a&&!Is("Trident")&&!Is("MSIE")){var b=new a,c={},e=c;b.port1.onmessage=function(){if(u(c.next)){c=c.next;var a=c.zT;c.zT=null;a()}};return function(a){e.next={zT:a};e=e.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement(ed)?function(a){var b=
document.createElement(ed);b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){t.setTimeout(a,0)}};var ht=function(){this.YE=this.Ko=null},jt=new zs(function(){return new it},function(a){a.reset()},100);ht.prototype.add=function(a,b){var c=this.Tka();c.set(a,b);this.YE?this.YE.next=c:(C(!this.Ko),this.Ko=c);this.YE=c};ht.prototype.remove=function(){var a=null;this.Ko&&(a=this.Ko,this.Ko=this.Ko.next,this.Ko||(this.YE=null),a.next=null);return a};ht.prototype.hxa=function(a){jt.put(a)};ht.prototype.Tka=function(){return jt.get()};var it=function(){this.next=this.scope=this.zj=null};
it.prototype.set=function(a,b){this.zj=a;this.scope=b;this.next=null};it.prototype.reset=function(){this.next=this.scope=this.zj=null};var ot=function(a,b){kt||lt();mt||(kt(),mt=!0);nt.add(a,b)},kt,lt=function(){if(-1!=String(t.Promise).indexOf("[native code]")){var a=t.Promise.resolve(void 0);kt=function(){a.then(pt)}}else kt=function(){var a=pt;!Nq(t.setImmediate)||t.Window&&t.Window.prototype&&!Is(sc)&&t.Window.prototype.setImmediate==t.setImmediate?(ft||(ft=gt()),ft(a)):t.setImmediate(a)}},mt=!1,nt=new ht,pt=function(){for(var a;a=nt.remove();){try{a.zj.call(a.scope)}catch(b){et(b)}nt.hxa(a)}mt=!1};var qt=function(){return Is("iPhone")&&!Is("iPod")&&!Is("iPad")},rt=function(){return qt()||Is("iPad")||Is("iPod")};var st=function(a){st[" "](a);return a};st[" "]=Jq;var tt=function(a,b){try{return st(a[b]),!0}catch(c){}return!1},ut=function(a,b,c,e){e=e?e(b):b;return Object.prototype.hasOwnProperty.call(a,e)?a[e]:a[e]=c(b)};var vt=Is("Opera"),E=Is("Trident")||Is("MSIE"),wt=Is(sc),xt=wt||E,yt=Is("Gecko")&&!(rr(Fs.toLowerCase(),"webkit")&&!Is(sc))&&!(Is("Trident")||Is("MSIE"))&&!Is(sc),zt=rr(Fs.toLowerCase(),"webkit")&&!Is(sc),At=zt&&Is("Mobile"),Bt=Is("Macintosh"),Ct=Is("Windows"),Dt=Is("Linux")||Is("CrOS"),Et=Is("Android"),Ft=qt(),Gt=Is("iPad"),Ht=Is("iPod"),It=rt(),Jt=function(){var a=t.document;return a?a.documentMode:void 0},Kt;
a:{var Lt="",Mt=function(){var a=Fs;if(yt)return/rv\:([^\);]+)(\)|;)/.exec(a);if(wt)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(zt)return/WebKit\/(\S+)/.exec(a);if(vt)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Mt&&(Lt=Mt?Mt[1]:"");if(E){var Nt=Jt();if(null!=Nt&&Nt>parseFloat(Lt)){Kt=String(Nt);break a}}Kt=Lt}var Ot=Kt,Pt={},Qt=function(a){return ut(Pt,a,function(){return 0<=Er(Ot,a)})},St=function(a){return Number(Rt)>=a},Tt;var Ut=t.document;
Tt=Ut&&E?Jt()||("CSS1Compat"==Ut.compatMode?parseInt(Ot,10):5):void 0;var Rt=Tt;var Vt=function(a,b){var c=[],e=[],f={},g=function(a,l){var h=l+"  ";try{if(u(a))if(null===a)c.push("NULL");else if(v(a))c.push('"'+a.replace(/\n/g,"\n"+l)+'"');else if(Nq(a))c.push(String(a).replace(/\n/g,"\n"+l));else if(Oq(a)){a[Pq]||e.push(a);var r=Rq(a);if(f[r])c.push("*** reference loop detected (id="+r+") ***");else{f[r]=!0;c.push("{");for(var z in a)if(b||!Nq(a[z]))c.push("\n"),c.push(h),c.push(z+" = "),g(a[z],h);c.push("\n"+l+"}");delete f[r]}}else c.push(a);else c.push("undefined")}catch(O){c.push("*** "+
O+" ***")}};g(a,"");for(a=0;a<e.length;a++)Sq(e[a]);return c.join("")},Wt=function(a){var b=Error();if(Error.captureStackTrace)Error.captureStackTrace(b,a||Wt),b=String(b.stack);else{try{throw b;}catch(c){b=c}b=(b=b.stack)?String(b):null}b||(b=Xt(a||arguments.callee.caller,[]));return b},Xt=function(a,b){var c=[];if(is(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Yt(a)+"(");for(var e=a.arguments,f=0;e&&f<e.length;f++){0<f&&c.push(", ");var g=e[f];switch(typeof g){case Jk:g=
g?Jk:Gk;break;case So:break;case Ik:g=String(g);break;case jf:g=g?sp:oh;break;case Ih:g=(g=Yt(g))?g:"[fn]";break;default:g=typeof g}40<g.length&&(g=g.substr(0,40)+"...");c.push(g)}b.push(a);c.push(")\n");try{c.push(Xt(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},Yt=function(a){if(Zt[a])return Zt[a];a=String(a);if(!Zt[a]){var b=/function ([^\(]+)/.exec(a);Zt[a]=b?b[1]:"[Anonymous]"}return Zt[a]},Zt={},$t=
Object.freeze||function(a){return a};var au=function(a,b,c,e,f){this.reset(a,b,c,e,f)};au.prototype.az=null;var bu=0;q=au.prototype;q.reset=function(a,b,c,e,f){typeof f==Ik||bu++;this.K8=e||A();this.Nf=a;this.OB=b;this.n1=c;delete this.az};q.fza=function(a){this.az=a};q.no=function(a){this.Nf=a};q.getMessage=function(){return this.OB};q.GO=function(a){this.OB=a};var cu=function(a){this.Ab=a;this.Lj=this.Ja=this.Nf=this.ea=null},du=function(a,b){this.name=a;this.value=b};du.prototype.toString=function(){return this.name};
var eu=new du("SHOUT",1200),fu=new du("SEVERE",1E3),gu=new du("WARNING",900),hu=new du("INFO",800),iu=new du("CONFIG",700),ju=new du("FINE",500),ku=new du("FINER",400),lu=[new du("OFF",Infinity),eu,fu,gu,hu,iu,ju,ku,new du("FINEST",300),new du("ALL",0)],mu=null,nu=function(a){if(!mu){mu={};for(var b=0,c;c=lu[b];b++)mu[c.value]=c,mu[c.name]=c}return mu[a]||null},ou=function(a){var b=t.console;b&&b.timeStamp&&b.timeStamp(a);(b=t.msWriteProfilerMark)&&b(a)};q=cu.prototype;q.getName=function(){return this.Ab};
q.eS=function(a){this.Lj||(this.Lj=[]);this.Lj.push(a)};q.iwa=function(a){var b=this.Lj;return!!b&&os(b,a)};q.getParent=function(){return this.ea};q.Pc=function(){this.Ja||(this.Ja={});return this.Ja};q.no=function(a){this.Nf=a};q.DX=function(){if(this.Nf)return this.Nf;if(this.ea)return this.ea.DX();Or("Root logger has no level set.");return null};q.h0=function(a){return a.value>=this.DX().value};q.log=function(a,b,c){this.h0(a)&&(Nq(b)&&(b=b()),this.TV(this.XX(a,b,c)))};
q.XX=function(a,b,c){a=new au(a,String(b),this.Ab);c&&a.fza(c);return a};q.pP=function(a,b){this.log(fu,a,b)};q.e$=function(a,b){this.log(gu,a,b)};q.info=function(a,b){this.log(hu,a,b)};q.config=function(a,b){this.log(iu,a,b)};q.Uga=function(a,b){this.log(ju,a,b)};q.Rra=function(a){this.h0(a.Nf)&&this.TV(a)};q.TV=function(a){ou("log:"+a.getMessage());for(var b=this;b;)b.eda(a),b=b.getParent()};q.eda=function(a){if(this.Lj)for(var b=0,c;c=this.Lj[b];b++)c(a)};q.Cw=function(a){this.ea=a};
q.sba=function(a,b){this.Pc()[a]=b};var pu={},qu=null,ru=function(){qu||(qu=new cu(""),pu[""]=qu,qu.no(iu))},su=function(){ru();return qu},tu=function(a){ru();var b;if(!(b=pu[a])){b=new cu(a);var c=a.lastIndexOf("."),e=a.substr(c+1);c=tu(a.substr(0,c));c.sba(e,b);b.Cw(c);pu[a]=b}return b};var F=function(){this.ii=this.ii;this.Ln=this.Ln};q=F.prototype;q.ii=!1;q.isDisposed=function(){return this.ii};q.NI=F.prototype.isDisposed;q.dispose=function(){this.ii||(this.ii=!0,this.o())};q.Y=function(a){this.Oba(Wq(G,a))};q.Oba=function(a,b){this.ii?u(b)?a.call(b):a():(this.Ln||(this.Ln=[]),this.Ln.push(u(b)?y(a,b):a))};q.o=function(){if(this.Ln)for(;this.Ln.length;)this.Ln.shift()()};
var G=function(a){a&&typeof a.dispose==Ih&&a.dispose()},uu=function(a){for(var b=0,c=arguments.length;b<c;++b){var e=arguments[b];Mq(e)?uu.apply(null,e):G(e)}};var vu=!E||St(9),wu=!E||St(9),xu=E&&!Qt("9");!zt||Qt("528");yt&&Qt("1.9b")||E&&Qt("8")||vt&&Qt("9.5")||zt&&Qt("528");yt&&!Qt("8")||E&&Qt("9");var yu=function(){if(!t.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});t.addEventListener("test",Jq,b);t.removeEventListener("test",Jq,b);return a}();var H=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Xn=!1;this.uN=!0};H.prototype.stopPropagation=function(){this.Xn=!0};H.prototype.preventDefault=function(){this.defaultPrevented=!0;this.uN=!1};var zu=function(a){a.preventDefault()};var Au=E?Ah:"DOMFocusIn",Bu=E?Bh:"DOMFocusOut";var Cu=function(a,b){H.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.yC=!1;this.pointerId=0;this.pointerType="";this.bd=null;a&&this.init(a,b)};B(Cu,H);var Du=$t([1,4,2]),Eu=$t({2:"touch",3:"pen",4:"mouse"});q=Cu.prototype;
q.init=function(a,b){var c=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?yt&&(tt(b,"nodeName")||(b=null)):c==qk?b=a.fromElement:c==pk&&(b=a.toElement);this.relatedTarget=b;null===e?(this.offsetX=zt||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=zt||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||
0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c==Aj?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.yC=Bt?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=v(a.pointerType)?a.pointerType:Eu[a.pointerType]||
"";this.state=a.state;this.bd=a;a.defaultPrevented&&this.preventDefault()};q.gqa=function(a){return vu?this.bd.button==a:this.type==Bf?0==a:!!(this.bd.button&Du[a])};q.Yu=function(){return this.gqa(0)&&!(zt&&Bt&&this.ctrlKey)};q.stopPropagation=function(){Cu.c.stopPropagation.call(this);this.bd.stopPropagation?this.bd.stopPropagation():this.bd.cancelBubble=!0};
q.preventDefault=function(){Cu.c.preventDefault.call(this);var a=this.bd;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,xu)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Fu="closure_listenable_"+(1E6*Math.random()|0),Gu=function(a){return!(!a||!a[Fu])},Hu=0;var Iu=function(a,b,c,e,f,g){this.listener=a;this.IC=b;this.src=c;this.type=e;this.capture=!!f;this.rA=g;this.key=++Hu;this.gr=this.$x=!1};Iu.prototype.AB=function(){this.gr=!0;this.rA=this.src=this.IC=this.listener=null};var Ju=function(a){this.src=a;this.gd={};this.ex=0};q=Ju.prototype;q.add=function(a,b,c,e,f){var g=a.toString();a=this.gd[g];a||(a=this.gd[g]=[],this.ex++);var h=Ku(a,b,e,f);-1<h?(b=a[h],c||(b.$x=!1)):(b=new Iu(b,null,this.src,g,!!e,f),b.$x=c,a.push(b));return b};q.remove=function(a,b,c,e){a=a.toString();if(!(a in this.gd))return!1;var f=this.gd[a];b=Ku(f,b,c,e);return-1<b?(f[b].AB(),ns(f,b),0==f.length&&(delete this.gd[a],this.ex--),!0):!1};
q.K3=function(a){var b=a.type;if(!(b in this.gd))return!1;var c=os(this.gd[b],a);c&&(a.AB(),0==this.gd[b].length&&(delete this.gd[b],this.ex--));return c};q.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.gd)if(!a||c==a){for(var e=this.gd[c],f=0;f<e.length;f++)++b,e[f].AB();delete this.gd[c];this.ex--}return b};q.Pz=function(a,b){a=this.gd[a.toString()];var c=[];if(a)for(var e=0;e<a.length;++e){var f=a[e];f.capture==b&&c.push(f)}return c};
q.gu=function(a,b,c,e){a=this.gd[a.toString()];var f=-1;a&&(f=Ku(a,b,c,e));return-1<f?a[f]:null};q.hasListener=function(a,b){var c=u(a),e=c?a.toString():"",f=u(b);return Ms(this.gd,function(a){for(var g=0;g<a.length;++g)if(!(c&&a[g].type!=e||f&&a[g].capture!=b))return!0;return!1})};var Ku=function(a,b,c,e){for(var f=0;f<a.length;++f){var g=a[f];if(!g.gr&&g.listener==b&&g.capture==!!c&&g.rA==e)return f}return-1};var Lu="closure_lm_"+(1E6*Math.random()|0),Mu={},Nu=0,I=function(a,b,c,e,f){if(e&&e.once)return Ou(a,b,c,e,f);if(x(b)){for(var g=0;g<b.length;g++)I(a,b[g],c,e,f);return null}c=Pu(c);return Gu(a)?a.listen(b,c,Oq(e)?!!e.capture:!!e,f):Qu(a,b,c,!1,e,f)},Qu=function(a,b,c,e,f,g){if(!b)throw Error("Invalid event type");var h=Oq(f)?!!f.capture:!!f,l=Ru(a);l||(a[Lu]=l=new Ju(a));c=l.add(b,c,e,h,g);if(c.IC)return c;e=Su();c.IC=e;e.src=a;e.listener=c;if(a.addEventListener)yu||(f=h),void 0===f&&(f=!1),a.addEventListener(b.toString(),
e,f);else if(a.attachEvent)a.attachEvent(Tu(b.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");Nu++;return c},Su=function(){var a=Uu,b=wu?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Ou=function(a,b,c,e,f){if(x(b)){for(var g=0;g<b.length;g++)Ou(a,b[g],c,e,f);return null}c=Pu(c);return Gu(a)?a.Of(b,c,Oq(e)?!!e.capture:!!e,f):Qu(a,b,c,!0,e,f)},Vu=function(a,b,c,e,f){if(x(b)){for(var g=0;g<b.length;g++)Vu(a,
b[g],c,e,f);return null}e=Oq(e)?!!e.capture:!!e;c=Pu(c);if(Gu(a))return a.ta(b,c,e,f);if(!a)return!1;if(a=Ru(a))if(b=a.gu(b,c,e,f))return Wu(b);return!1},Wu=function(a){if(Hq(a)||!a||a.gr)return!1;var b=a.src;if(Gu(b))return b.k9(a);var c=a.type,e=a.IC;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent&&b.detachEvent(Tu(c),e);Nu--;(c=Ru(b))?(c.K3(a),0==c.ex&&(c.src=null,b[Lu]=null)):a.AB();return!0},Xu=function(a,b){if(!a)return 0;if(Gu(a))return a.removeAllListeners(b);a=Ru(a);
if(!a)return 0;var c=0;b=b&&b.toString();for(var e in a.gd)if(!b||e==b)for(var f=a.gd[e].concat(),g=0;g<f.length;++g)Wu(f[g])&&++c;return c},Yu=function(a,b,c){return Gu(a)?a.Pz(b,c):a?(a=Ru(a))?a.Pz(b,c):[]:[]},Tu=function(a){return a in Mu?Mu[a]:Mu[a]="on"+a},$u=function(a,b,c,e){return Gu(a)?a.Jt(b,c,e):Zu(a,b,c,e)},Zu=function(a,b,c,e){var f=!0;if(a=Ru(a))if(b=a.gd[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.capture==c&&!g.gr&&(g=av(g,e),f=f&&!1!==g)}return f},av=function(a,
b){var c=a.listener,e=a.rA||a.src;a.$x&&Wu(a);return c.call(e,b)},Uu=function(a,b){if(a.gr)return!0;if(!wu){var c=b||Iq("window.event");b=new Cu(c,this);var e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=b.currentTarget;f;f=f.parentNode)c.push(f);a=a.type;for(f=c.length-1;!b.Xn&&0<=f;f--){b.currentTarget=c[f];var g=Zu(c[f],a,!0,b);e=e&&g}for(f=0;!b.Xn&&f<c.length;f++)b.currentTarget=
c[f],g=Zu(c[f],a,!1,b),e=e&&g}return e}return av(a,new Cu(b,this))},Ru=function(a){a=a[Lu];return a instanceof Ju?a:null},bv="__closure_events_fn_"+(1E9*Math.random()>>>0),Pu=function(a){C(a,"Listener can not be null.");if(Nq(a))return a;C(a.handleEvent,"An object listener must have handleEvent method.");a[bv]||(a[bv]=function(b){return a.handleEvent(b)});return a[bv]};var J=function(){F.call(this);this.th=new Ju(this);this.lba=this;this.RM=null};B(J,F);J.prototype[Fu]=!0;q=J.prototype;q.Zp=function(){return this.RM};q.Sl=function(a){this.RM=a};q.addEventListener=function(a,b,c,e){I(this,a,b,c,e)};q.removeEventListener=function(a,b,c,e){Vu(this,a,b,c,e)};
q.dispatchEvent=function(a){this.GS();var b=this.Zp();if(b){var c=[];for(var e=1;b;b=b.Zp())c.push(b),C(1E3>++e,"infinite loop")}b=this.lba;e=a.type||a;if(v(a))a=new H(a,b);else if(a instanceof H)a.target=a.target||b;else{var f=a;a=new H(e,b);at(a,f)}f=!0;if(c)for(var g=c.length-1;!a.Xn&&0<=g;g--){var h=a.currentTarget=c[g];f=h.Jt(e,!0,a)&&f}a.Xn||(h=a.currentTarget=b,f=h.Jt(e,!0,a)&&f,a.Xn||(f=h.Jt(e,!1,a)&&f));if(c)for(g=0;!a.Xn&&g<c.length;g++)h=a.currentTarget=c[g],f=h.Jt(e,!1,a)&&f;return f};
q.o=function(){J.c.o.call(this);this.removeAllListeners();this.RM=null};q.listen=function(a,b,c,e){this.GS();return this.th.add(String(a),b,!1,c,e)};q.Of=function(a,b,c,e){return this.th.add(String(a),b,!0,c,e)};q.ta=function(a,b,c,e){return this.th.remove(String(a),b,c,e)};q.k9=function(a){return this.th.K3(a)};q.removeAllListeners=function(a){return this.th?this.th.removeAll(a):0};
q.Jt=function(a,b,c){a=this.th.gd[String(a)];if(!a)return!0;a=a.concat();for(var e=!0,f=0;f<a.length;++f){var g=a[f];if(g&&!g.gr&&g.capture==b){var h=g.listener,l=g.rA||g.src;g.$x&&this.k9(g);e=!1!==h.call(l,c)&&e}}return e&&0!=c.uN};q.Pz=function(a,b){return this.th.Pz(String(a),b)};q.gu=function(a,b,c,e){return this.th.gu(String(a),b,c,e)};q.hasListener=function(a,b){return this.th.hasListener(u(a)?String(a):void 0,b)};q.GS=function(){C(this.th,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var cv="StopIteration"in t?t.StopIteration:{message:"StopIteration",stack:""},dv=function(){};dv.prototype.next=function(){throw cv;};dv.prototype.ig=function(){return this};
var ev=function(a){if(a instanceof dv)return a;if(typeof a.ig==Ih)return a.ig(!1);if(Mq(a)){var b=0,c=new dv;c.next=function(){for(;;){if(b>=a.length)throw cv;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},fv=function(a,b,c){if(Mq(a))try{D(a,b,c)}catch(e){if(e!==cv)throw e;}else{a=ev(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==cv)throw e;}}},gv=function(a){if(Mq(a))return rs(a);a=ev(a);var b=[];fv(a,function(a){b.push(a)});return b},hv=function(a,b){try{return ev(a).next()}catch(c){if(c!=
cv)throw c;return b}};var iv=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},jv=function(a){a=String(a);if(iv(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},lv=function(a,b){return(new kv(b)).jk(a)},kv=function(a){this.PC=a};
kv.prototype.jk=function(a){var b=[];this.MN(a,b);return b.join("")};kv.prototype.MN=function(a,b){if(null==a)b.push(Gk);else{if(typeof a==Jk){if(x(a)){this.Zxa(a,b);return}if(a instanceof String||a instanceof Number||a instanceof Boolean)a=a.valueOf();else{this.aya(a,b);return}}switch(typeof a){case So:this.k5(a,b);break;case Ik:this.$xa(a,b);break;case jf:b.push(String(a));break;case Ih:b.push(Gk);break;default:throw Error("Unknown type: "+typeof a);}}};
var mv={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},nv=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;kv.prototype.k5=function(a,b){b.push('"',a.replace(nv,function(a){var b=mv[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),mv[a]=b);return b}),'"')};kv.prototype.$xa=function(a,b){b.push(isFinite(a)&&!isNaN(a)?String(a):Gk)};
kv.prototype.Zxa=function(a,b){var c=a.length;b.push("[");for(var e="",f=0;f<c;f++)b.push(e),e=a[f],this.MN(this.PC?this.PC.call(a,String(f),e):e,b),e=",";b.push("]")};kv.prototype.aya=function(a,b){b.push("{");var c="",e;for(e in a)if(Object.prototype.hasOwnProperty.call(a,e)){var f=a[e];typeof f!=Ih&&(b.push(c),this.k5(e,b),b.push(":"),this.MN(this.PC?this.PC.call(a,e,f):f,b),c=",")}b.push("}")};var ov=function(a,b){a=tu(a);b&&a&&a.no(b);return a},pv=function(a,b,c){a&&a.pP(b,c)},qv=function(a,b,c){a&&a.e$(b,c)},K=function(a,b,c){a&&a.info(b,c)},rv=function(a,b,c){a&&a.Uga(b,c)};var sv=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var tv=function(){};tv.prototype.kT=null;tv.prototype.getOptions=function(){return this.kT||(this.kT=this.$pa())};var uv,vv=function(){};B(vv,tv);vv.prototype.FG=function(){var a=this.iY();return a?new ActiveXObject(a):new XMLHttpRequest};vv.prototype.$pa=function(){var a={};this.iY()&&(a[0]=!0,a[1]=!0);return a};
vv.prototype.iY=function(){if(!this.k_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{return new ActiveXObject(c),this.k_=c}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return this.k_};uv=new vv;var L=function(a,b){this.sb={};this.wb=[];this.rx=this.ub=0;var c=arguments.length;if(1<c){if(c%2)throw Error(Od);for(var e=0;e<c;e+=2)this.set(arguments[e],arguments[e+1])}else a&&this.addAll(a)};q=L.prototype;q.sa=function(){return this.ub};q.nb=function(){this.kp();for(var a=[],b=0;b<this.wb.length;b++)a.push(this.sb[this.wb[b]]);return a};q.bb=function(){this.kp();return this.wb.concat()};q.Xb=function(a){return wv(this.sb,a)};
q.nj=function(a){for(var b=0;b<this.wb.length;b++){var c=this.wb[b];if(wv(this.sb,c)&&this.sb[c]==a)return!0}return!1};q.ad=function(a,b){if(this===a)return!0;if(this.ub!=a.sa())return!1;b=b||xv;this.kp();for(var c,e=0;c=this.wb[e];e++)if(!b(this.get(c),a.get(c)))return!1;return!0};var xv=function(a,b){return a===b};q=L.prototype;q.Sb=function(){return 0==this.ub};q.clear=function(){this.sb={};this.rx=this.ub=this.wb.length=0};
q.remove=function(a){return wv(this.sb,a)?(delete this.sb[a],this.ub--,this.rx++,this.wb.length>2*this.ub&&this.kp(),!0):!1};q.kp=function(){if(this.ub!=this.wb.length){for(var a=0,b=0;a<this.wb.length;){var c=this.wb[a];wv(this.sb,c)&&(this.wb[b++]=c);a++}this.wb.length=b}if(this.ub!=this.wb.length){var e={};for(b=a=0;a<this.wb.length;)c=this.wb[a],wv(e,c)||(this.wb[b++]=c,e[c]=1),a++;this.wb.length=b}};q.get=function(a,b){return wv(this.sb,a)?this.sb[a]:b};
q.set=function(a,b){wv(this.sb,a)||(this.ub++,this.wb.push(a),this.rx++);this.sb[a]=b};q.addAll=function(a){if(a instanceof L){var b=a.bb();a=a.nb()}else b=Qs(a),a=Ps(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};q.forEach=function(a,b){for(var c=this.bb(),e=0;e<c.length;e++){var f=c[e],g=this.get(f);a.call(b,g,f,this)}};q.clone=function(){return new L(this)};q.wo=function(){this.kp();for(var a={},b=0;b<this.wb.length;b++){var c=this.wb[b];a[c]=this.sb[c]}return a};
q.ig=function(a){this.kp();var b=0,c=this.rx,e=this,f=new dv;f.next=function(){if(c!=e.rx)throw Error("The map has changed since the iterator was created");if(b>=e.wb.length)throw cv;var f=e.wb[b++];return a?f:e.sb[f]};return f};var wv=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var yv=function(a){return a.sa&&typeof a.sa==Ih?a.sa():Mq(a)||v(a)?a.length:Os(a)},zv=function(a){if(a.nb&&typeof a.nb==Ih)return a.nb();if(v(a))return a.split("");if(Mq(a)){for(var b=[],c=a.length,e=0;e<c;e++)b.push(a[e]);return b}return Ps(a)},Av=function(a){if(a.bb&&typeof a.bb==Ih)return a.bb();if(!a.nb||typeof a.nb!=Ih){if(Mq(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Qs(a)}},Bv=function(a,b,c){if(a.forEach&&typeof a.forEach==Ih)a.forEach(b,c);else if(Mq(a)||
v(a))D(a,b,c);else for(var e=Av(a),f=zv(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],e&&e[h],a)},Cv=function(a,b,c){if(typeof a.every==Ih)return a.every(b,c);if(Mq(a)||v(a))return ds(a,b,c);for(var e=Av(a),f=zv(a),g=f.length,h=0;h<g;h++)if(!b.call(c,f[h],e&&e[h],a))return!1;return!0};var Dv=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},Ev=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Gv=function(a,b){this.oa=0;this.Ug=void 0;this.hp=this.ij=this.ea=null;this.fA=this.VH=!1;if(a!=Jq)try{var c=this;a.call(b,function(a){c.jr(2,a)},function(a){if(!(a instanceof Fv))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(f){}c.jr(3,a)})}catch(e){this.jr(3,e)}},Hv=function(){this.next=this.context=this.Pq=this.Mn=this.xm=null;this.Nx=!1};Hv.prototype.reset=function(){this.context=this.Pq=this.Mn=this.xm=null;this.Nx=!1};
var Iv=new zs(function(){return new Hv},function(a){a.reset()},100),Jv=function(a,b,c){var e=Iv.get();e.Mn=a;e.Pq=b;e.context=c;return e},Lv=function(a){return new Gv(function(b,c){a.length||b(void 0);for(var e=0,f;e<a.length;e++){f=a[e];var g=b;Kv(f,g,c,null)||ot(Wq(g,f))}})};Gv.prototype.then=function(a,b,c){null!=a&&Rr(a,al);null!=b&&Rr(b,bl);return this.rba(Nq(a)?a:null,Nq(b)?b:null,c)};Dv(Gv);q=Gv.prototype;q.mDa=function(a,b,c){null!=a&&Rr(a,al);null!=b&&Rr(b,bl);this.ZR(Jv(a||Jq,b||null,c))};
q.cancel=function(a){0==this.oa&&ot(function(){var b=new Fv(a);this.wT(b)},this)};q.wT=function(a){0==this.oa&&(this.ea?(this.ea.ida(this,a),this.ea=null):this.jr(3,a))};q.ida=function(a,b){if(this.ij){for(var c=0,e=null,f=null,g=this.ij;g&&(g.Nx||(c++,g.xm==a&&(e=g),!(e&&1<c)));g=g.next)e||(f=g);e&&(0==this.oa&&1==c?this.wT(b):(f?this.dwa(f):this.Y2(),this.vW(e,3,b)))}};q.ZR=function(a){this.Moa()||2!=this.oa&&3!=this.oa||this.L4();this.Eva(a)};
q.rba=function(a,b,c){var e=Jv(null,null,null);e.xm=new Gv(function(f,g){e.Mn=a?function(b){try{var e=a.call(c,b);f(e)}catch(p){g(p)}}:f;e.Pq=b?function(a){try{var e=b.call(c,a);!u(e)&&a instanceof Fv?g(a):f(e)}catch(p){g(p)}}:g});e.xm.ea=this;this.ZR(e);return e.xm};q.JDa=function(a){C(1==this.oa);this.oa=0;this.jr(2,a)};q.KDa=function(a){C(1==this.oa);this.oa=0;this.jr(3,a)};
q.jr=function(a,b){0==this.oa&&(this===b&&(a=3,b=new TypeError("Promise cannot resolve to itself")),this.oa=1,Kv(b,this.JDa,this.KDa,this)||(this.Ug=b,this.oa=a,this.ea=null,this.L4(),3!=a||b instanceof Fv||Mv(this,b)))};
var Kv=function(a,b,c,e){if(a instanceof Gv)return a.mDa(b,c,e),!0;if(Ev(a))return a.then(b,c,e),!0;if(Oq(a))try{var f=a.then;if(Nq(f))return Nv(a,f,b,c,e),!0}catch(g){return c.call(e,g),!0}return!1},Nv=function(a,b,c,e,f){var g=!1,h=function(a){g||(g=!0,c.call(f,a))},l=function(a){g||(g=!0,e.call(f,a))};try{b.call(a,h,l)}catch(p){l(p)}};q=Gv.prototype;q.L4=function(){this.VH||(this.VH=!0,ot(this.Nk,this))};q.Moa=function(){return!!this.ij};
q.Eva=function(a){C(null!=a.Mn);this.hp?this.hp.next=a:this.ij=a;this.hp=a};q.Y2=function(){var a=null;this.ij&&(a=this.ij,this.ij=a.next,a.next=null);this.ij||(this.hp=null);null!=a&&C(null!=a.Mn);return a};q.dwa=function(a){C(this.ij);C(null!=a);a.next==this.hp&&(this.hp=a);a.next=a.next.next};q.Nk=function(){for(var a;a=this.Y2();)this.vW(a,this.oa,this.Ug);this.VH=!1};
q.vW=function(a,b,c){3==b&&a.Pq&&!a.Nx&&this.ywa();if(a.xm)a.xm.ea=null,Ov(a,b,c);else try{a.Nx?a.Mn.call(a.context):Ov(a,b,c)}catch(e){Pv.call(null,e)}Iv.put(a)};var Ov=function(a,b,c){2==b?a.Mn.call(a.context,c):a.Pq&&a.Pq.call(a.context,c)};Gv.prototype.ywa=function(){var a;for(a=this;a&&a.fA;a=a.ea)a.fA=!1};var Mv=function(a,b){a.fA=!0;ot(function(){a.fA&&Pv.call(null,b)})},Pv=et,Fv=function(a){Kr.call(this,a)};B(Fv,Kr);Fv.prototype.name=qf;var Qv=function(a,b){J.call(this);this.Fe=a||1;this.Yr=b||t;this.RF=y(this.pDa,this);this.wL=A()};B(Qv,J);q=Qv.prototype;q.enabled=!1;q.wa=null;q.setInterval=function(a){this.Fe=a;this.wa&&this.enabled?(this.stop(),this.start()):this.wa&&this.stop()};q.pDa=function(){if(this.enabled){var a=A()-this.wL;0<a&&a<.8*this.Fe?this.wa=this.Yr.setTimeout(this.RF,this.Fe-a):(this.wa&&(this.Yr.clearTimeout(this.wa),this.wa=null),this.Dfa(),this.enabled&&(this.wa=this.Yr.setTimeout(this.RF,this.Fe),this.wL=A()))}};
q.Dfa=function(){this.dispatchEvent(fp)};q.start=function(){this.enabled=!0;this.wa||(this.wa=this.Yr.setTimeout(this.RF,this.Fe),this.wL=A())};q.stop=function(){this.enabled=!1;this.wa&&(this.Yr.clearTimeout(this.wa),this.wa=null)};q.o=function(){Qv.c.o.call(this);this.stop();delete this.Yr};var M=function(a,b,c){if(Nq(a))c&&(a=y(a,c));else if(a&&typeof a.handleEvent==Ih)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:t.setTimeout(a,b||0)},Rv=function(a){t.clearTimeout(a)};var Sv=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Tv=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a},Uv=function(a){var b=a.match(Sv);a=b[1];var c=b[2],e=b[3];b=b[4];var f="";a&&(f+=a+":");e&&(f+="//",c&&(f+=c+"@"),f+=e,b&&(f+=":"+b));return f},Vv=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var e=a[c].indexOf("="),f=null;if(0<=e){var g=a[c].substring(0,e);f=a[c].substring(e+1)}else g=a[c];
b(g,f?er(f):"")}}},Wv=function(a,b,c){c=null!=c?"="+encodeURIComponent(String(c)):"";if(b+=c){c=a.indexOf("#");0>c&&(c=a.length);var e=a.indexOf("?");if(0>e||e>c){e=c;var f=""}else f=a.substring(e+1,c);a=[a.substr(0,e),f,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;a=a[0]+(a[1]?"?"+a[1]:"")+a[2]}return a},Xv=function(a,b,c,e){for(var f=c.length;0<=(b=a.indexOf(c,b))&&b<e;){var g=a.charCodeAt(b-1);if(38==g||63==g)if(g=a.charCodeAt(b+f),!g||61==g||38==g||35==g)return b;b+=f+1}return-1},Yv=/#|$/,Zv=function(a,
b){var c=a.search(Yv),e=Xv(a,0,b,c);if(0>e)return null;var f=a.indexOf("&",e);if(0>f||f>c)f=c;e+=b.length+1;return er(a.substr(e,f-e))},$v=/[?&]($|#)/,aw=function(a,b){for(var c=a.search(Yv),e=0,f,g=[];0<=(f=Xv(a,e,b,c));)g.push(a.substring(e,f)),e=Math.min(a.indexOf("&",f)+1||c,c);g.push(a.substr(e));return g.join("").replace($v,"$1")};var bw=function(a){J.call(this);this.headers=new L;this.$E=a||null;this.Wa=!1;this.ZE=this.za=null;this.N0=this.df="";this.fc=0;this.pl="";this.vn=this.rK=this.BA=this.MH=!1;this.nk=0;this.uo=null;this.Xv="";this.TE=this.Ava=this.uk=!1};B(bw,J);bw.prototype.F=ov("goog.net.XhrIo");var cw=/^https?$/i,dw=[Zc,"PUT"],ew=[];q=bw.prototype;q.uda=function(){this.dispose();os(ew,this)};q.QD=function(a){this.nk=Math.max(0,a)};q.wAa=function(a){this.Xv=a};q.oP=function(a){this.uk=a};
q.send=function(a,b,c,e){if(this.za)throw Error("[goog.net.XhrIo] Object is active with another request="+this.df+"; newUri="+a);b=b?b.toUpperCase():"GET";this.df=a;this.pl="";this.fc=0;this.N0=b;this.MH=!1;this.Wa=!0;this.za=this.LG();this.ZE=this.$E?this.$E.getOptions():uv.getOptions();this.za.onreadystatechange=y(this.z2,this);this.Ava&&"onprogress"in this.za&&(this.za.onprogress=y(function(a){this.x2(a,!0)},this),this.za.upload&&(this.za.upload.onprogress=y(this.x2,this)));try{rv(this.F,this.Bj("Opening Xhr")),
this.rK=!0,this.za.open(b,String(a),!0),this.rK=!1}catch(g){rv(this.F,this.Bj("Error opening Xhr: "+g.message));this.Jp(5,g);return}a=c||"";var f=this.headers.clone();e&&Bv(e,function(a,b){f.set(b,a)});e=gs(f.bb(),fw);c=t.FormData&&a instanceof t.FormData;!is(dw,b)||e||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.za.setRequestHeader(b,a)},this);this.Xv&&(this.za.responseType=this.Xv);"withCredentials"in this.za&&this.za.withCredentials!==
this.uk&&(this.za.withCredentials=this.uk);try{this.NT(),0<this.nk&&(this.TE=gw(this.za),rv(this.F,this.Bj("Will abort after "+this.nk+"ms if incomplete, xhr2 "+this.TE)),this.TE?(this.za.timeout=this.nk,this.za.ontimeout=y(this.em,this)):this.uo=M(this.em,this.nk,this)),rv(this.F,this.Bj("Sending request")),this.BA=!0,this.za.send(a),this.BA=!1}catch(g){rv(this.F,this.Bj("Send error: "+g.message)),this.Jp(5,g)}};
var gw=function(a){return E&&Qt(9)&&Hq(a.timeout)&&u(a.ontimeout)},fw=function(a){return"content-type"==a.toLowerCase()};q=bw.prototype;q.LG=function(){return this.$E?this.$E.FG():uv.FG()};q.em=function(){"undefined"!=typeof Fq&&this.za&&(this.pl="Timed out after "+this.nk+"ms, aborting",this.fc=8,rv(this.F,this.Bj(this.pl)),this.dispatchEvent(gp),this.abort(8))};q.Jp=function(a,b){this.Wa=!1;this.za&&(this.vn=!0,this.za.abort(),this.vn=!1);this.pl=b;this.fc=a;this.HV();this.hy()};
q.HV=function(){this.MH||(this.MH=!0,this.dispatchEvent(Gf),this.dispatchEvent(gh))};q.abort=function(a){this.za&&this.Wa&&(rv(this.F,this.Bj("Aborting")),this.Wa=!1,this.vn=!0,this.za.abort(),this.vn=!1,this.fc=a||7,this.dispatchEvent(Gf),this.dispatchEvent(Yd),this.hy())};q.o=function(){this.za&&(this.Wa&&(this.Wa=!1,this.vn=!0,this.za.abort(),this.vn=!1),this.hy(!0));bw.c.o.call(this)};q.z2=function(){this.isDisposed()||(this.rK||this.BA||this.vn?this.y2():this.Wta())};q.Wta=function(){this.y2()};
q.y2=function(){if(this.Wa&&"undefined"!=typeof Fq)if(this.ZE[1]&&4==this.$m()&&2==this.Ij())rv(this.F,this.Bj("Local request error detected and ignored"));else if(this.BA&&4==this.$m())M(this.z2,0,this);else if(this.dispatchEvent(Hm),this.NA()){rv(this.F,this.Bj("Request complete"));this.Wa=!1;try{this.cL()?(this.dispatchEvent(Gf),this.dispatchEvent(Vo)):(this.fc=6,this.pl=this.xY()+" ["+this.Ij()+"]",this.HV())}finally{this.hy()}}};
q.x2=function(a,b){C(a.type===Am,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(hw(a,Am));this.dispatchEvent(hw(a,b?"downloadprogress":Kp))};var hw=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};q=bw.prototype;
q.hy=function(a){if(this.za){this.NT();var b=this.za,c=this.ZE[0]?Jq:null;this.ZE=this.za=null;a||this.dispatchEvent(Gm);try{b.onreadystatechange=c}catch(e){pv(this.F,"Problem encountered resetting onreadystatechange: "+e.message)}}};q.NT=function(){this.za&&this.TE&&(this.za.ontimeout=null);this.uo&&(Rv(this.uo),this.uo=null)};q.Rb=function(){return!!this.za};q.NA=function(){return 4==this.$m()};
q.cL=function(){var a=this.Ij();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}return b||0===a&&!this.Dqa()};q.Dqa=function(){var a=String(this.df).match(Sv)[1]||null;!a&&t.self&&t.self.location&&(a=t.self.location.protocol,a=a.substr(0,a.length-1));return cw.test(a?a.toLowerCase():"")};q.$m=function(){return this.za?this.za.readyState:0};q.Ij=function(){try{return 2<this.$m()?this.za.status:-1}catch(a){return-1}};
q.xY=function(){try{return 2<this.$m()?this.za.statusText:""}catch(a){return rv(this.F,"Can not get status: "+a.message),""}};q.Oz=function(){return String(this.df)};q.ae=function(){try{return this.za?this.za.responseText:""}catch(a){return rv(this.F,"Can not get responseText: "+a.message),""}};q.mu=function(){try{if(this.za&&"responseBody"in this.za)return this.za.responseBody}catch(a){rv(this.F,"Can not get responseBody: "+a.message)}return null};
q.Ba=function(a){if(this.za){var b=this.za.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));a:{a=b;if(t.JSON)try{var c=t.JSON.parse(a);C(typeof c==Jk);var e=c;break a}catch(f){}e=jv(a)}return e}};q.getResponseHeader=function(a){if(this.za&&this.NA())return a=this.za.getResponseHeader(a),null===a?void 0:a};q.getAllResponseHeaders=function(){return this.za&&this.NA()?this.za.getAllResponseHeaders():""};q.Nz=function(){return v(this.pl)?this.pl:String(this.pl)};
q.Bj=function(a){return a+" ["+this.N0+" "+this.df+" "+this.Ij()+"]"};var iw=function(){this.G3=A()},jw=null;iw.prototype.set=function(a){this.G3=a};iw.prototype.reset=function(){this.set(A())};iw.prototype.get=function(){return this.G3};var kw={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var mw=function(){this.kE="";this.Taa=lw};mw.prototype.xi=!0;mw.prototype.Jf=function(){return this.kE};mw.prototype.toString=function(){return"Const{"+this.kE+"}"};var nw=function(a){if(a instanceof mw&&a.constructor===mw&&a.Taa===lw)return a.kE;Or("expected object of type Const, got '"+a+"'");return"type_error:Const"},lw={},ow=function(a){var b=new mw;b.kE=a;return b};ow("");var pw=function(){var a=u(t.URL)&&u(t.URL.createObjectURL)?t.URL:u(t.webkitURL)&&u(t.webkitURL.createObjectURL)?t.webkitURL:u(t.createObjectURL)?t:null;if(null!=a)return a;throw Error("This browser doesn't seem to support blob URLs");};var qw=/<[^>]*>|&[^;]+;/g,rw=function(a,b){return b?a.replace(qw,""):a},sw=/[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,tw=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,uw=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]/,vw=/^http:\/\/.*/,ww=/[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff][^\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]*$/,
xw=/[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc][^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*$/,yw=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,zw=/\s+/,Aw=/[\d\u06f0-\u06f9]/,Bw=function(a,b){var c=0,e=0,f=!1;a=rw(a,b).split(zw);for(b=0;b<a.length;b++){var g=a[b];uw.test(rw(g,void 0))?(c++,e++):vw.test(g)?f=!0:tw.test(rw(g,void 0))?e++:Aw.test(g)&&
(f=!0)}return 0==e?f?1:0:.4<c/e?-1:1};var Dw=function(){this.GC="";this.Yaa=Cw};q=Dw.prototype;q.xi=!0;q.Jf=function(){return this.GC};q.qK=!0;q.Ej=function(){return 1};q.toString=function(){return"TrustedResourceUrl{"+this.GC+"}"};
var Ew=function(a){if(a instanceof Dw&&a.constructor===Dw&&a.Yaa===Cw)return a.GC;Or("expected object of type TrustedResourceUrl, got '"+a+Fa+Lq(a));return"type_error:TrustedResourceUrl"},Hw=function(a,b){var c=nw(a);if(!Fw.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);return c.replace(Gw,function(a,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));a=b[f];return a instanceof
mw?nw(a):encodeURIComponent(String(a))})},Gw=/%{(\w+)}/g,Fw=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank(#|$)/i,Jw=function(a){return Iw(nw(a))},Cw={},Iw=function(a){var b=new Dw;b.GC=a;return b};var Lw=function(){this.fk="";this.Caa=Kw};q=Lw.prototype;q.xi=!0;q.Jf=function(){return this.fk};q.qK=!0;q.Ej=function(){return 1};q.toString=function(){return"SafeUrl{"+this.fk+"}"};
var Mw=function(a){if(a instanceof Lw&&a.constructor===Lw&&a.Caa===Kw)return a.fk;Or("expected object of type SafeUrl, got '"+a+Fa+Lq(a));return"type_error:SafeUrl"},Nw=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Pw=function(a){if(a instanceof Lw)return a;a=a.xi?a.Jf():String(a);Nw.test(a)||(a=$d);return Ow(a)},Qw=function(a){if(a instanceof Lw)return a;a=a.xi?a.Jf():String(a);C(Nw.test(a))||(a=$d);return Ow(a)},Kw={},Ow=function(a){var b=new Lw;b.fk=a;return b};Ow(Zd);var Sw=function(){this.FC="";this.Baa=Rw};Sw.prototype.xi=!0;var Rw={};Sw.prototype.Jf=function(){return this.FC};Sw.prototype.toString=function(){return"SafeStyle{"+this.FC+"}"};var Tw=function(a){if(a instanceof Sw&&a.constructor===Sw&&a.Baa===Rw)return a.FC;Or("expected object of type SafeStyle, got '"+a+Fa+Lq(a));return"type_error:SafeStyle"};Sw.prototype.Rj=function(a){this.FC=a;return this};
var Uw=(new Sw).Rj(""),Ww=function(a){var b="",c;for(c in a){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var e=a[c];null!=e&&(e=x(e)?as(e,Vw).join(" "):Vw(e),b+=c+":"+e+";")}if(!b)return Uw;a=b;C(!/[<>]/.test(a),"Forbidden characters in style string: "+a);return(new Sw).Rj(b)},Vw=function(a){if(a instanceof Lw)return'url("'+Mw(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof mw)a=nw(a);else{a=String(a);var b=a.replace(Xw,"$1").replace(Yw,
Mp);if(Zw.test(b)){for(var c=b=!0,e=0;e<a.length;e++){var f=a.charAt(e);"'"==f&&c?b=!b:'"'==f&&b&&(c=!c)}b&&c?a=$w(a):(Or("String value requires balanced quotes, got: "+a),a="zClosurez")}else Or("String value allows only [-,.\"'%_!# a-zA-Z0-9] and simple functions, got: "+a),a="zClosurez"}C(!/[{;}]/.test(a),"Value does not allow [{;}].");return a},Zw=/^[-,."'%_!# a-zA-Z0-9]+$/,Yw=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,Xw=/\b(hsl|hsla|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-0-9a-z.%, ]+\)/g,
$w=function(a){return a.replace(Yw,function(a,c,e,f){var b="";e=e.replace(/^(['"])(.*)\1$/,function(a,c,e){b=c;return e});a=Pw(e).Jf();return c+b+a+b+f})};var bx=function(){this.EC="";this.Aaa=ax};bx.prototype.xi=!0;var ax={},dx=function(a){var b="",c=function(a){x(a)?D(a,c):b+=cx(a)};D(arguments,c);return(new bx).Rj(b)},fx=function(a){a=nw(a);if(0===a.length)return ex;C(!rr(a,"<"),"Forbidden '<' character in style sheet string: "+a);return(new bx).Rj(a)};bx.prototype.Jf=function(){return this.EC};bx.prototype.toString=function(){return"SafeStyleSheet{"+this.EC+"}"};
var cx=function(a){if(a instanceof bx&&a.constructor===bx&&a.Aaa===ax)return a.EC;Or("expected object of type SafeStyleSheet, got '"+a+Fa+Lq(a));return"type_error:SafeStyleSheet"};bx.prototype.Rj=function(a){this.EC=a;return this};var ex=(new bx).Rj("");var hx=function(){this.fk="";this.zaa=gx;this.nH=null};q=hx.prototype;q.qK=!0;q.Ej=function(){return this.nH};q.xi=!0;q.Jf=function(){return this.fk};q.toString=function(){return"SafeHtml{"+this.fk+"}"};
var ix=function(a){if(a instanceof hx&&a.constructor===hx&&a.zaa===gx)return a.fk;Or("expected object of type SafeHtml, got '"+a+Fa+Lq(a));return"type_error:SafeHtml"},kx=function(a){if(a instanceof hx)return a;var b=null;a.qK&&(b=a.Ej());return jx(qr(a.xi?a.Jf():String(a)),b)},lx=function(a){if(a instanceof hx)return a;a=kx(a);return jx(fr(ix(a)),a.Ej())},mx=function(a){if(a instanceof hx)return a;a=kx(a);var b=ix(a);b=fr(b.replace(/  /g," &#160;"),void 0);return jx(b,a.Ej())},nx=/^[a-zA-Z0-9-]+$/,
ox={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},px={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},sx=function(a,b,c){qx(String(a));return rx(String(a),b,c)},qx=function(a){if(!nx.test(a))throw Error("Invalid tag name <"+a+">.");if(a.toUpperCase()in px)throw Error("Tag name <"+a+"> is not allowed for SafeHtml.");},ux=function(a,b){b=tx({type:"text/css"},{},b);var c="";a=qs(a);for(var e=0;e<a.length;e++)c+=
cx(a[e]);a=jx(c,0);return rx(To,b,a)},vx=function(a){var b=0,c="",e=function(a){x(a)?D(a,e):(a=kx(a),c+=ix(a),a=a.Ej(),0==b?b=a:0!=a&&b!=a&&(b=null))};D(arguments,e);return jx(c,b)},wx=function(a,b){var c=vx(ts(arguments,1));c.nH=a;return c},gx={},jx=function(a,b){return(new hx).Rj(a,b)};hx.prototype.Rj=function(a,b){this.fk=a;this.nH=b;return this};
var rx=function(a,b,c){var e=null;var f="<"+a+xx(a,b);null!=c?x(c)||(c=[c]):c=[];!0===kw[a.toLowerCase()]?(C(!c.length,"Void tag <"+a+"> does not allow content."),f+=">"):(e=vx(c),f+=">"+ix(e)+"</"+a+">",e=e.Ej());(a=b&&b.dir)&&(e=/^(ltr|rtl|auto)$/i.test(a)?0:null);return jx(f,e)},xx=function(a,b){var c="";if(b)for(var e in b){if(!nx.test(e))throw Error('Invalid attribute name "'+e+'".');var f=b[e];if(null!=f){var g=a;var h=e;if(f instanceof mw)f=nw(f);else if(h.toLowerCase()==To){if(!Oq(f))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+
typeof f+" given: "+f);f instanceof Sw||(f=Ww(f));f=Tw(f)}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+f+'" given.');if(h.toLowerCase()in ox)if(f instanceof Dw)f=Ew(f);else if(f instanceof Lw)f=Mw(f);else if(v(f))f=Pw(f).Jf();else throw Error('Attribute "'+h+'" on tag "'+g+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+f+'" given.');}f.xi&&(f=f.Jf());C(v(f)||Hq(f),"String or number value expected, got "+typeof f+" with value: "+
f);h=h+'="'+qr(String(f))+'"';c+=" "+h}}return c},tx=function(a,b,c){var e={},f;for(f in a)C(f.toLowerCase()==f,Vc),e[f]=a[f];for(f in b)C(f.toLowerCase()==f,Vc),e[f]=b[f];for(f in c){var g=f.toLowerCase();if(g in a)throw Error(Zb+g+'" attribute, got "'+f+ra+c[f]+'"');g in b&&delete e[g];e[f]=c[f]}return e};jx("<!DOCTYPE html>",0);var yx=jx("",0),zx=jx("<br>",0);var Ax=function(a,b,c){Qr(nw(a),wk);C(!ar(nw(a)),xk);return jx(b,c||null)},Bx=function(a,b){Qr(nw(a),wk);C(!ar(nw(a)),xk);return Iw(b)};var Cx=function(a){this.Di=a||"";jw||(jw=new iw);this.GCa=jw};q=Cx.prototype;q.tca=!0;q.MBa=!0;q.dCa=!0;q.VBa=!0;q.v7=!1;q.gCa=!1;
var Ex=function(a){a=new Date(a.K8);return Dx(a.getFullYear()-2E3)+Dx(a.getMonth()+1)+Dx(a.getDate())+" "+Dx(a.getHours())+":"+Dx(a.getMinutes())+":"+Dx(a.getSeconds())+"."+Dx(Math.floor(a.getMilliseconds()/10))},Dx=function(a){return 10>a?"0"+a:String(a)},Fx=function(a,b){a=(a.K8-b)/1E3;b=a.toFixed(3);var c=0;if(1>a)c=2;else for(;100>a;)c++,a*=10;for(;0<c--;)b=" "+b;return b},Gx=function(a){Cx.call(this,a)};B(Gx,Cx);
var Hx=function(a,b){try{var c=Iq("window.location.href");if(v(a))var e={message:a,name:"Unknown error",lineNumber:Wc,fileName:c,stack:Wc};else{var f=!1;try{var g=a.lineNumber||a.line||Wc}catch(ea){g=Wc,f=!0}try{var h=a.fileName||a.filename||a.sourceURL||t.$googDebugFname||c}catch(ea){h=Wc,f=!0}e=!f&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name?a:{message:a.message||Wc,name:a.name||"UnknownError",lineNumber:g,fileName:h,stack:a.stack||Wc}}var l=e.fileName;null!=l||(l="");if(/^https?:\/\//i.test(l)){var p=
Pw(l),r=ow("view-source scheme plus HTTP/HTTPS URL"),z="view-source:"+Mw(p);Qr(nw(r),wk);C(!ar(nw(r)),xk);var O=Ow(z)}else O=Ow(nw(ow("sanitizedviewsrc")));return vx(mx("Message: "+e.message+"\nUrl: "),sx("a",{href:O,target:"_new"},e.fileName),mx("\nLine: "+e.lineNumber+"\n\nBrowser stack:\n"+e.stack+"-> [end]\n\nJS stack traversal:\n"+Wt(b)+"-> "))}catch(ea){return mx("Exception trying to expose exception! You win, we lose. "+ea)}};Gx.prototype.v7=!0;
Gx.prototype.wha=function(a){return a?this.dX(a).Jf():""};
Gx.prototype.dX=function(a){if(!a)return yx;switch(a.Nf.value){case eu.value:var b="dbg-sh";break;case fu.value:b="dbg-sev";break;case gu.value:b="dbg-w";break;case hu.value:b="dbg-i";break;default:b="dbg-f"}var c=[];c.push(this.Di," ");this.MBa&&c.push("[",Ex(a),"] ");this.dCa&&c.push("[",Fx(a,this.GCa.get()),"s] ");this.VBa&&c.push("[",a.n1,"] ");this.gCa&&c.push("[",a.Nf.name,"] ");c=mx(c.join(""));var e=yx;this.v7&&a.az&&(e=vx(zx,Hx(a.az)));a=mx(a.getMessage());b=sx(Jo,{"class":b},vx(a,e));return this.tca?
vx(c,b,zx):vx(c,b)};var Ix=function(a){return Oq(a)?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):void 0===a?"undefined":null===a?Gk:typeof a},Jx=function(a){return(a=a&&a.ownerDocument)&&(a.defaultView||a.parentWindow)||t};var Kx=!E||St(9),Lx=!yt&&!E||E&&St(9)||yt&&Qt("1.9.1"),Mx=E&&!Qt("9");var Nx={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ox=function(a,b){if(Nx[a.tagName.toUpperCase()])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+a.tagName+".");a.innerHTML=ix(b)},Px=function(a,b){var c=Jx(a);"undefined"!=typeof c.HTMLAnchorElement&&"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element&&C(a&&(a instanceof c.HTMLAnchorElement||!(a instanceof c.Location||a instanceof c.Element)),"Argument is not a HTMLAnchorElement (or a non-Element mock); got: %s",
Ix(a));b=b instanceof Lw?b:Qw(b);a.href=Mw(b)},Qx=function(a,b){var c=Jx(a);"undefined"!=typeof c.HTMLIFrameElement&&"undefined"!=typeof c.Element&&C(a&&(a instanceof c.HTMLIFrameElement||!(a instanceof c.Element)),"Argument is not a HTMLIFrameElement (or a non-Element mock); got: %s",Ix(a));a.src=Ew(b)},Rx=function(a,b){var c=Jx(a);"undefined"!=typeof c.HTMLScriptElement&&"undefined"!=typeof c.Element&&C(a&&(a instanceof c.HTMLScriptElement||!(a instanceof c.Element)),"Argument is not a HTMLScriptElement (or a non-Element mock); got: %s",
Ix(a));a.src=Ew(b)},Sx=function(a,b){var c=Jx(a);"undefined"!=typeof c.Location&&"undefined"!=typeof c.Element&&C(a&&(a instanceof c.Location||!(a instanceof c.Element)),"Argument is not a Location (or a non-Element mock); got: %s",Ix(a));b=b instanceof Lw?b:Qw(b);a.href=Mw(b)};var Tx=function(a,b){this.x=u(a)?a:0;this.y=u(b)?b:0};Tx.prototype.clone=function(){return new Tx(this.x,this.y)};Tx.prototype.toString=function(){return"("+this.x+", "+this.y+")"};Tx.prototype.ad=function(a){return a instanceof Tx&&Ux(this,a)};var Ux=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1},Vx=function(a,b){return new Tx(a.x-b.x,a.y-b.y)};q=Tx.prototype;q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};q.translate=function(a,b){a instanceof Tx?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),Hq(b)&&(this.y+=b));return this};q.scale=function(a,b){b=Hq(b)?b:a;this.x*=a;this.y*=b;return this};var Wx=function(a,b){this.width=a;this.height=b},Xx=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};q=Wx.prototype;q.clone=function(){return new Wx(this.width,this.height)};q.toString=function(){return"("+this.width+" x "+this.height+")"};q.Cca=function(){return this.width*this.height};q.aspectRatio=function(){return this.width/this.height};q.Sb=function(){return!this.Cca()};q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
q.iz=function(a){return this.width<=a.width&&this.height<=a.height};q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};q.scale=function(a,b){b=Hq(b)?b:a;this.width*=a;this.height*=b;return this};q.aw=function(a){a=this.aspectRatio()>a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};var N=function(a){return a?new Yx(Zx(a)):Lr||(Lr=new Yx)},P=function(a){return v(a)?document.getElementById(a):a},$x=function(a,b){return(b||document).getElementsByTagName(String(a))},by=function(a,b,c){return ay(document,a,b,c)},cy=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):ay(document,"*",a,b)},dy=function(a,b){var c=b||document;c.getElementsByClassName?a=c.getElementsByClassName(a)[0]:(c=b||document,a=c.querySelectorAll&&c.querySelector&&
a?c.querySelector(""+(a?"."+a:"")):ay(document,"*",a,b)[0]||null);return a||null},ay=function(a,b,c,e){a=e||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){e={};for(var f=0,g=0,h;h=a[g];g++)b==h.nodeName&&(e[f++]=h);e.length=f;return e}return a}a=a.getElementsByTagName(b||"*");if(c){e={};for(g=f=0;h=a[g];g++)b=h.className,typeof b.split==Ih&&is(b.split(/\s+/),
c)&&(e[f++]=h);e.length=f;return e}return a},fy=function(a,b){Js(b,function(b,e){b&&b.xi&&(b=b.Jf());e==To?a.style.cssText=b:"class"==e?a.className=b:"for"==e?a.htmlFor=b:ey.hasOwnProperty(e)?a.setAttribute(ey[e],b):Yq(e,"aria-")||Yq(e,"data-")?a.setAttribute(e,b):a[e]=b})},ey={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:xi,maxlength:"maxLength",nonce:"nonce",role:Qm,rowspan:"rowSpan",type:tp,usemap:"useMap",valign:"vAlign",width:kq},hy=function(a){a=
(a||window).document;a=gy(a)?a.documentElement:a.body;return new Wx(a.clientWidth,a.clientHeight)},jy=function(a){var b=iy(a);a=a.parentWindow||a.defaultView;return E&&Qt("10")&&a.pageYOffset!=b.scrollTop?new Tx(b.scrollLeft,b.scrollTop):new Tx(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},iy=function(a){return a.scrollingElement?a.scrollingElement:!zt&&gy(a)?a.documentElement:a.body||a.documentElement},ky=function(a){return a?a.parentWindow||a.defaultView:window},my=function(a,b,c){return ly(document,
arguments)},ly=function(a,b){var c=String(b[0]),e=b[1];if(!Kx&&e&&(e.name||e.type)){c=["<",c];e.name&&c.push(' name="',qr(e.name),'"');if(e.type){c.push(' type="',qr(e.type),'"');var f={};at(f,e);delete f.type;e=f}c.push(">");c=c.join("")}c=a.createElement(c);e&&(v(e)?c.className=e:x(e)?c.className=e.join(" "):fy(c,e));2<b.length&&ny(a,c,b,2);return c},ny=function(a,b,c,e){function f(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;e<c.length;e++){var g=c[e];!Mq(g)||Oq(g)&&0<g.nodeType?f(g):D(oy(g)?
rs(g):g,f)}},py=function(a,b){return a.createElement(String(b))},qy=function(a,b){var c=py(a,d);E?(Ox(c,vx(zx,b)),c.removeChild(c.firstChild)):Ox(c,b);if(1==c.childNodes.length)c=c.removeChild(c.firstChild);else{for(a=a.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);c=a}return c},gy=function(a){return"CSS1Compat"==a.compatMode},ry=function(a,b){a.appendChild(b)},sy=function(a,b){ny(Zx(a),a,arguments,1)},ty=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},uy=function(a,b){b.parentNode&&
b.parentNode.insertBefore(a,b)},vy=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},wy=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},xy=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},yy=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},zy=function(a){return Lx&&void 0!=a.children?a.children:$r(a.childNodes,function(a){return 1==a.nodeType})},By=function(a){return u(a.firstElementChild)?a.firstElementChild:Ay(a.firstChild,!0)},Cy=function(a){return u(a.nextElementSibling)?
a.nextElementSibling:Ay(a.nextSibling,!0)},Ay=function(a,b){for(;a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;return a},Dy=function(a){return Oq(a)&&1==a.nodeType},Ey=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Zx=function(a){C(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||
a.document},Fy=function(a){return a.contentDocument||a.contentWindow.document},Gy=function(a,b){C(null!=a,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else{ty(a);var c=Zx(a);a.appendChild(c.createTextNode(String(b)))}},Hy={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Iy={IMG:" ",
BR:"\n"},Ly=function(a){return Jy(a)&&Ky(a)},My=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))},Jy=function(a){return E&&!Qt("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")},Ky=function(a){a=a.tabIndex;return Hq(a)&&0<=a&&32768>a},Oy=function(a){if(Mx&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ny(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");
Mx||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},Py=function(a){var b=[];Ny(a,b,!1);return b.join("")},Ny=function(a,b,c){if(!(a.nodeName in Hy))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Iy)b.push(Iy[a.nodeName]);else for(a=a.firstChild;a;)Ny(a,b,c),a=a.nextSibling},oy=function(a){if(a&&typeof a.length==Ik){if(Oq(a))return typeof a.item==Ih||typeof a.item==So;if(Nq(a))return typeof a.item==Ih}return!1},
Ry=function(a,b,c,e){if(!b&&!c)return null;var f=b?String(b).toUpperCase():null;return Qy(a,function(a){return(!f||a.nodeName==f)&&(!c||v(a.className)&&is(a.className.split(/\s+/),c))},!0,e)},Qy=function(a,b,c,e){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==e||c<=e);){C("parentNode"!=a.name);if(b(a))return a;a=a.parentNode;c++}return null},Sy=function(a){try{return a&&a.activeElement}catch(b){}return null},Yx=function(a){this.Qb=a||t.document||document};q=Yx.prototype;q.j=N;
q.H5=function(a){this.Qb=a};q.K=function(){return this.Qb};q.b=function(a){return v(a)?this.Qb.getElementById(a):a};q.getElementsByTagName=function(a,b){return(b||this.Qb).getElementsByTagName(String(a))};q.ri=function(a,b,c){return ay(this.Qb,a,b,c)};q.Xm=function(a,b){return cy(a,b||this.Qb)};q.Fc=function(a,b){return dy(a,b||this.Qb)};q.ze=function(a,b){b=dy(a,b||this.Qb);return C(b,"No element found with className: "+a)};q.bR=Yx.prototype.ri;q.setProperties=fy;q.qu=function(a){return hy(a||this.getWindow())};
q.g=function(a,b,c){return ly(this.Qb,arguments)};q.createElement=function(a){return py(this.Qb,a)};q.createTextNode=function(a){return this.Qb.createTextNode(String(a))};q.MU=function(a,b,c){var e=this.Qb;c=!!c;for(var f=py(e,vd),g=f.appendChild(py(e,wd)),h=0;h<a;h++){for(var l=py(e,zd),p=0;p<b;p++){var r=py(e,xd);c&&Gy(r,"\u00a0");l.appendChild(r)}g.appendChild(l)}return f};q.Nh=function(a){return qy(this.Qb,a)};q.Tu=function(){return gy(this.Qb)};
q.getWindow=function(){var a=this.Qb;return a.parentWindow||a.defaultView};q.AX=function(){return iy(this.Qb)};q.Df=function(){return jy(this.Qb)};q.Rt=function(a){return Sy(a||this.Qb)};q.appendChild=ry;q.append=sy;q.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case Gc:case Jc:case Fc:case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case ed:case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
q.Ke=ty;q.Su=uy;q.kl=vy;q.DK=wy;q.removeNode=xy;q.Pc=zy;q.Ym=By;q.Lja=Cy;q.Vu=Dy;q.contains=Ey;q.gY=Zx;q.bg=Gy;q.Uj=function(a){var b;(b="A"==a.tagName||a.tagName==Jc||a.tagName==yd||a.tagName==fd||a.tagName==Mb?!a.disabled&&(!Jy(a)||Ky(a)):Ly(a))&&E?(a=!Nq(a.getBoundingClientRect)||E&&null==a.parentElement?{height:a.offsetHeight,width:a.offsetWidth}:a.getBoundingClientRect(),a=null!=a&&0<a.height&&0<a.width):a=b;return a};q.Sha=Ry;var Ty=function(a,b){this.sd=this.ox=this.gf="";this.Xq=null;this.Pt=this.Og="";this.Dg=this.Wqa=!1;var c;a instanceof Ty?(this.Dg=u(b)?b:a.Dg,this.Br(a.gf),this.lP(a.ox),this.tr(a.sd),this.QO(a.Xq),this.$g(a.getPath()),this.Qh(a.zh().clone()),this.vr(a.Pt)):a&&(c=String(a).match(Sv))?(this.Dg=!!b,this.Br(c[1]||"",!0),this.lP(c[2]||"",!0),this.tr(c[3]||"",!0),this.QO(c[4]),this.$g(c[5]||"",!0),this.Qh(c[6]||"",!0),this.vr(c[7]||"",!0)):(this.Dg=!!b,this.Sg=new Uy(null,null,this.Dg))};q=Ty.prototype;
q.toString=function(){var a=[],b=this.gf;b&&a.push(Vy(b,Wy,!0),":");var c=this.sd;if(c||b==rh)a.push("//"),(b=this.ox)&&a.push(Vy(b,Wy,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.Xq,null!=c&&a.push(":",String(c));if(c=this.getPath())this.QJ()&&"/"!=c.charAt(0)&&a.push("/"),a.push(Vy(c,"/"==c.charAt(0)?Xy:Yy,!0));(c=this.EX())&&a.push("?",c);(c=this.Pt)&&a.push("#",Vy(c,Zy));return a.join("")};
q.resolve=function(a){var b=this.clone(),c=a.Uoa();c?b.Br(a.gf):c=a.Yoa();c?b.lP(a.ox):c=a.QJ();c?b.tr(a.sd):c=a.Soa();var e=a.getPath();if(c)b.QO(a.Xq);else if(c=a.LZ()){if("/"!=e.charAt(0))if(this.QJ()&&!this.LZ())e="/"+e;else{var f=b.getPath().lastIndexOf("/");-1!=f&&(e=b.getPath().substr(0,f+1)+e)}f=e;if(".."==f||"."==f)e="";else if(rr(f,"./")||rr(f,"/.")){e=Yq(f,"/");f=f.split("/");for(var g=[],h=0;h<f.length;){var l=f[h++];"."==l?e&&h==f.length&&g.push(""):".."==l?((1<g.length||1==g.length&&
""!=g[0])&&g.pop(),e&&h==f.length&&g.push("")):(g.push(l),e=!0)}e=g.join("/")}else e=f}c?b.$g(e):c=a.Toa();c?b.Qh(a.zh().clone()):c=a.Noa();c&&b.vr(a.Pt);return b};q.clone=function(){return new Ty(this)};q.Br=function(a,b){this.ki();if(this.gf=b?$y(a,!0):a)this.gf=this.gf.replace(/:$/,"");return this};q.Uoa=function(){return!!this.gf};q.lP=function(a,b){this.ki();this.ox=b?$y(a):a;return this};q.Yoa=function(){return!!this.ox};q.tr=function(a,b){this.ki();this.sd=b?$y(a,!0):a;return this};q.QJ=function(){return!!this.sd};
q.QO=function(a){this.ki();if(a){a=Number(a);if(isNaN(a)||0>a)throw Error("Bad port number "+a);this.Xq=a}else this.Xq=null;return this};q.Soa=function(){return null!=this.Xq};q.getPath=function(){return this.Og};q.$g=function(a,b){this.ki();this.Og=b?$y(a,!0):a;return this};q.LZ=function(){return!!this.Og};q.Toa=function(){return""!==this.Sg.toString()};q.Qh=function(a,b){this.ki();a instanceof Uy?(this.Sg=a,this.Sg.xO(this.Dg)):(b||(a=Vy(a,az)),this.Sg=new Uy(a,null,this.Dg));return this};
q.setQuery=function(a,b){return this.Qh(a,b)};q.EX=function(){return this.Sg.toString()};q.zh=function(){return this.Sg};q.getQuery=function(){return this.EX()};q.T=function(a,b){this.ki();this.Sg.set(a,b);return this};q.Hf=function(a){return this.Sg.nb(a)};q.mb=function(a){return this.Sg.get(a)};q.vr=function(a,b){this.ki();this.Pt=b?$y(a):a;return this};q.Noa=function(){return!!this.Pt};q.p1=function(){this.ki();this.T("zx",Cr());return this};
q.removeParameter=function(a){this.ki();this.Sg.remove(a);return this};q.ki=function(){if(this.Wqa)throw Error("Tried to modify a read-only Uri");};q.xO=function(a){this.Dg=a;this.Sg&&this.Sg.xO(a);return this};
var bz=function(a,b){return a instanceof Ty?a.clone():new Ty(a,b)},$y=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Vy=function(a,b,c){return v(a)?(a=encodeURI(a).replace(b,cz),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},cz=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Wy=/[#\/\?@]/g,Yy=/[\#\?:]/g,Xy=/[\#\?]/g,az=/[\#\?@]/g,Zy=/#/g,Uy=function(a,b,c){this.ub=this.lc=null;this.Mk=a||null;this.Dg=!!c};
Uy.prototype.li=function(){if(!this.lc&&(this.lc=new L,this.ub=0,this.Mk)){var a=this;Vv(this.Mk,function(b,c){a.add(er(b),c)})}};var dz=function(a,b,c){b=Av(a);if("undefined"==typeof b)throw Error("Keys are undefined");c=new Uy(null,null,c);a=zv(a);for(var e=0;e<b.length;e++){var f=b[e],g=a[e];x(g)?c.e7(f,g):c.add(f,g)}return c};q=Uy.prototype;q.sa=function(){this.li();return this.ub};
q.add=function(a,b){this.li();this.wq();a=this.Tp(a);var c=this.lc.get(a);c||this.lc.set(a,c=[]);c.push(b);this.ub=Pr(this.ub)+1;return this};q.remove=function(a){this.li();a=this.Tp(a);return this.lc.Xb(a)?(this.wq(),this.ub=Pr(this.ub)-this.lc.get(a).length,this.lc.remove(a)):!1};q.clear=function(){this.wq();this.lc=null;this.ub=0};q.Sb=function(){this.li();return 0==this.ub};q.Xb=function(a){this.li();a=this.Tp(a);return this.lc.Xb(a)};q.nj=function(a){var b=this.nb();return is(b,a)};
q.forEach=function(a,b){this.li();this.lc.forEach(function(c,e){D(c,function(c){a.call(b,c,e,this)},this)},this)};q.bb=function(){this.li();for(var a=this.lc.nb(),b=this.lc.bb(),c=[],e=0;e<b.length;e++)for(var f=a[e],g=0;g<f.length;g++)c.push(b[e]);return c};q.nb=function(a){this.li();var b=[];if(v(a))this.Xb(a)&&(b=qs(b,this.lc.get(this.Tp(a))));else{a=this.lc.nb();for(var c=0;c<a.length;c++)b=qs(b,a[c])}return b};
q.set=function(a,b){this.li();this.wq();a=this.Tp(a);this.Xb(a)&&(this.ub=Pr(this.ub)-this.lc.get(a).length);this.lc.set(a,[b]);this.ub=Pr(this.ub)+1;return this};q.get=function(a,b){a=a?this.nb(a):[];return 0<a.length?String(a[0]):b};q.e7=function(a,b){this.remove(a);0<b.length&&(this.wq(),this.lc.set(this.Tp(a),rs(b)),this.ub=Pr(this.ub)+b.length)};
q.toString=function(){if(this.Mk)return this.Mk;if(!this.lc)return"";for(var a=[],b=this.lc.bb(),c=0;c<b.length;c++){var e=b[c],f=encodeURIComponent(String(e));e=this.nb(e);for(var g=0;g<e.length;g++){var h=f;""!==e[g]&&(h+="="+encodeURIComponent(String(e[g])));a.push(h)}}return this.Mk=a.join("&")};q.wq=function(){this.Mk=null};q.clone=function(){var a=new Uy;a.Mk=this.Mk;this.lc&&(a.lc=this.lc.clone(),a.ub=this.ub);return a};q.Tp=function(a){a=String(a);this.Dg&&(a=a.toLowerCase());return a};
q.xO=function(a){a&&!this.Dg&&(this.li(),this.wq(),this.lc.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.e7(b,a))},this));this.Dg=a};q.extend=function(a){for(var b=0;b<arguments.length;b++)Bv(arguments[b],function(a,b){this.add(b,a)},this)};var gz=function(){J.call(this);this.Ab="closure_frame"+ez++;this.nK=[];fz[this.Ab]=this},hz;B(gz,J);var fz={},ez=0,iz=function(a,b){var c=N(a);Bv(b,function(b,f){x(b)||(b=[b]);D(b,function(b){b=c.g(Jc,{type:yi,name:f,value:b});a.appendChild(b)})})};q=gz.prototype;q.F=ov("goog.net.IframeIo");q.Yb=null;q.ja=null;q.tn=null;q.Wsa=0;q.Wa=!1;q.Os=!1;q.lE=!1;q.df=null;q.dv=null;q.fc=0;q.qn=null;q.Ku=!1;
q.send=function(a,b,c,e){if(this.Wa)throw Error(Wd);this.df=a=new Ty(a);b=b?b.toUpperCase():"GET";c&&a.p1();K(this.F,"Sending iframe request: "+a+" ["+b+"]");hz||(hz=my("FORM"),hz.acceptCharset="utf-8",c=hz.style,c.position=be,c.visibility=yi,c.top=c.left="-10px",c.width=c.height="10px",c.overflow=yi,document.body.appendChild(hz));this.Yb=hz;"GET"==b&&iz(this.Yb,a.zh());e&&iz(this.Yb,e);this.Yb.action=a.toString();this.Yb.method=b;this.d5();this.OT()};
q.e5=function(a,b,c){if(this.Wa)throw Error(Wd);b=new Ty(b||a.action);c&&b.p1();K(this.F,"Sending iframe request from form: "+b);this.df=b;this.Yb=a;this.Yb.action=b.toString();this.d5()};q.abort=function(a){if(this.Wa){K(this.F,"Request aborted");var b=this.Yz();C(b);Xu(b);this.lE=this.Wa=this.Os=!1;this.fc=a||7;this.dispatchEvent(Yd);this.PL()}};
q.o=function(){rv(this.F,"Disposing iframeIo instance");this.Wa&&(rv(this.F,"Aborting active request"),this.abort());gz.c.o.call(this);this.ja&&this.M4();this.NV();delete this.LH;this.df=this.dv=this.Yb=null;this.fc=0;delete fz[this.Ab]};q.NA=function(){return this.Os};q.cL=function(){return this.lE};q.Rb=function(){return this.Wa};q.ae=function(){return this.dv};q.Ba=function(){return jv(this.dv)};q.Oz=function(){return this.df};q.Nz=function(){return sv(this.fc)};q.eza=function(a){this.LH=a};
q.d5=function(){this.Wa=!0;this.Os=!1;this.fc=0;this.DG();if(E&&!Qt("11")){this.Yb.target=this.tn||"";this.vS();this.Ku||I(this.ja,Hm,this.yM,!1,this);try{this.NH=!1,this.Yb.submit()}catch(O){this.Ku||Vu(this.ja,Hm,this.yM,!1,this),this.be(1)}}else{rv(this.F,"Setting up iframes and cloning form");this.vS();var a=this.tn+"_inner",b=Fy(this.ja);if(document.baseURI){var c=qr(a);c=Ax(ow("Short HTML snippet, input escaped, safe URL, for performance"),'<head><base href="'+qr(document.baseURI)+'"></head><body><iframe id="'+
c+'" name="'+c+ya)}else c=qr(a),c=Ax(ow("Short HTML snippet, input escaped, for performance"),'<body><iframe id="'+c+'" name="'+c+ya);vt&&!zt?Ox(b.documentElement,c):b.write(ix(c));this.Ku||I(b.getElementById(a),Nj,this.fC,!1,this);var e=$x(yd,C(this.Yb));c=0;for(var f=e.length;c<f;c++){var g=e[c].value;Py(e[c])!=g&&(Gy(e[c],g),e[c].value=g)}e=b.importNode(this.Yb,!0);e.target=a;e.action=this.Yb.action;b.body.appendChild(e);g=$x(fd,C(this.Yb));var h=$x(fd,e);c=0;for(f=g.length;c<f;c++)for(var l=$x(Xc,
g[c]),p=$x(Xc,h[c]),r=0,z=l.length;r<z;r++)p[r].selected=l[r].selected;g=$x(Jc,C(this.Yb));h=$x(Jc,e);c=0;for(f=g.length;c<f;c++)if(g[c].type==rh&&g[c].value!=h[c].value){rv(this.F,"File input value not cloned properly.  Will submit using original form.");this.Yb.target=a;e=this.Yb;break}rv(this.F,"Submitting form");try{this.NH=!1,e.submit(),b.close(),yt&&M(this.I8,250,this)}catch(O){c=this.F,f=Hx(O,void 0),f=ix(f),pv(c,"Error when submitting form: "+f),this.Ku||Vu(b.getElementById(a),Nj,this.fC,
!1,this),b.close(),this.be(2)}}};q.yM=function(){if(this.ja.readyState==Gf){Vu(this.ja,Hm,this.yM,!1,this);try{var a=Fy(this.ja);if(E&&a.location==Zd&&!navigator.onLine){this.be(9);return}}catch(b){this.be(1);return}this.hZ(a)}};q.fC=function(){if(!vt||zt||this.HI().location!=Zd){Vu(this.Yz(),Nj,this.fC,!1,this);try{this.hZ(this.HI())}catch(a){this.be(1)}}};
q.hZ=function(a){rv(this.F,"Iframe loaded");this.Os=!0;this.Wa=!1;try{var b=a.body;this.dv=b.textContent||b.innerText}catch(f){var c=1}var e;c||typeof this.LH!=Ih||(e=this.LH(a))&&(c=4);(a=this.F)&&a.log(ku,"Last content: "+this.dv,void 0);(a=this.F)&&a.log(ku,"Last uri: "+this.df,void 0);c?(rv(this.F,"Load event occurred but failed"),this.be(c,e)):(rv(this.F,"Load succeeded"),this.lE=!0,this.fc=0,this.dispatchEvent(Gf),this.dispatchEvent(Vo),this.PL())};
q.be=function(a,b){this.NH||(this.Wa=this.lE=!1,this.Os=!0,this.fc=a,4==a&&C(u(b)),this.dispatchEvent(Gf),this.dispatchEvent(gh),this.PL(),this.NH=!0)};q.PL=function(){K(this.F,"Ready for new requests");this.M4();this.NV();this.dispatchEvent(Gm)};
q.DG=function(){rv(this.F,"Creating iframe");this.tn=this.Ab+"_"+(this.Wsa++).toString(36);this.ja=N(this.Yb).g(Fc,{name:this.tn,id:this.tn});E&&7>Number(Ot)&&(this.ja.src=bj);var a=this.ja.style;a.visibility=yi;a.width=a.height="10px";a.display=Ek;zt?a.marginTop=a.marginLeft="-10px":(a.position=be,a.top=a.left="-10px")};q.vS=function(){N(this.Yb).K().body.appendChild(this.ja)};
q.M4=function(){var a=this.ja;a&&(a.onreadystatechange=null,a.onload=null,a.onerror=null,this.nK.push(a));this.qn&&(Rv(this.qn),this.qn=null);yt||vt&&!zt?this.qn=M(this.OV,2E3,this):this.OV();this.tn=this.ja=null};q.OV=function(){this.qn&&(Rv(this.qn),this.qn=null);for(;0!=this.nK.length;){var a=this.nK.pop();K(this.F,"Disposing iframe");xy(a)}};q.OT=function(){this.Yb&&this.Yb==hz&&ty(this.Yb)};q.NV=function(){this.OT();this.Yb=null};q.HI=function(){return this.ja?Fy(this.Yz()):null};
q.Yz=function(){return this.ja?E&&!Qt("11")?this.ja:Fy(this.ja).getElementById(this.tn+"_inner"):null};q.I8=function(){if(this.Wa){var a=this.HI();a&&!tt(a,"documentUri")?(this.Ku||Vu(this.Yz(),Nj,this.fC,!1,this),navigator.onLine?(qv(this.F,"Silent Firefox error detected"),this.be(3)):(qv(this.F,"Firefox is offline so report offline error instead of silent error"),this.be(9))):M(this.I8,250,this)}};var jz=function(a,b,c){F.call(this);this.Pf=a;this.Fe=b||0;this.Ga=c;this.Mc=y(this.Bp,this)};B(jz,F);q=jz.prototype;q.ma=0;q.o=function(){jz.c.o.call(this);this.stop();delete this.Pf;delete this.Ga};q.start=function(a){this.stop();this.ma=M(this.Mc,u(a)?a:this.Fe)};q.stop=function(){this.Rb()&&Rv(this.ma);this.ma=0};q.Ht=function(){this.stop();this.Bp()};q.Rb=function(){return 0!=this.ma};q.Bp=function(){this.ma=0;this.Pf&&this.Pf.call(this.Ga)};var kz={},lz=null,mz=function(a){a=Rq(a);delete kz[a];Us(kz)&&lz&&lz.stop()},oz=function(){lz||(lz=new jz(function(){nz(A())},20));var a=lz;a.Rb()||a.start()},nz=function(a){Js(kz,function(b){b.ita(a)});Us(kz)||oz()};var pz=function(){J.call(this);this.oa=0;this.endTime=this.startTime=null};B(pz,J);q=pz.prototype;q.N6=function(){this.oa=1};q.ZAa=function(){this.oa=-1};q.eP=function(){this.oa=0};q.Zu=function(){return 1==this.oa};q.nl=function(){return-1==this.oa};q.x0=function(){return 0==this.oa};q.Mg=function(){this.hi("begin")};q.dk=function(){this.hi(eh)};q.l2=function(){this.hi("finish")};q.Uta=function(){this.hi("pause")};q.w2=function(){this.hi("play")};q.Xta=function(){this.hi("resume")};q.C2=function(){this.hi("stop")};
q.hi=function(a){this.dispatchEvent(a)};var qz=function(a,b,c,e){pz.call(this);if(!x(a)||!x(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.Rr=a;this.pga=b;this.duration=c;this.QR=e;this.coords=[];this.km=!1;this.Rg=0;this.qL=null};B(qz,pz);q=qz.prototype;q.QI=function(){return this.duration};
q.play=function(a){if(a||this.x0())this.Rg=0,this.coords=this.Rr;else if(this.Zu())return!1;mz(this);this.startTime=a=A();this.nl()&&(this.startTime-=this.duration*this.Rg);this.endTime=this.startTime+this.duration;this.qL=this.startTime;this.Rg||this.Mg();this.w2();this.nl()&&this.Xta();this.N6();var b=Rq(this);b in kz||(kz[b]=this);oz();this.dV(a);return!0};q.stop=function(a){mz(this);this.eP();a&&(this.Rg=1);this.q9(this.Rg);this.C2();this.dk()};
q.pause=function(){this.Zu()&&(mz(this),this.ZAa(),this.Uta())};q.o=function(){this.x0()||this.stop(!1);this.ota();qz.c.o.call(this)};q.xV=function(){this.dispose()};q.ita=function(a){this.dV(a)};
q.dV=function(a){Pr(this.startTime);Pr(this.endTime);Pr(this.qL);a<this.startTime&&(this.endTime=a+this.endTime-this.startTime,this.startTime=a);this.Rg=(a-this.startTime)/(this.endTime-this.startTime);1<this.Rg&&(this.Rg=1);this.qL=a;this.q9(this.Rg);1==this.Rg?(this.eP(),mz(this),this.l2(),this.dk()):this.Zu()&&this.Av()};q.q9=function(a){Nq(this.QR)&&(a=this.QR(a));this.coords=Array(this.Rr.length);for(var b=0;b<this.Rr.length;b++)this.coords[b]=(this.pga[b]-this.Rr[b])*a+this.Rr[b]};q.Av=function(){this.hi(pe)};
q.ota=function(){this.hi("destroy")};q.hi=function(a){this.dispatchEvent(new rz(a,this))};var rz=function(a,b){H.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.Rg=b.Rg;this.state=b.oa};B(rz,H);var sz={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var xz=function(a){var b={};a=String(a);var c="#"==a.charAt(0)?a:"#"+a;if(tz.test(c))return b.Fu=uz(c),b.type="hex",b;c=vz(a);if(c.length){var e=c[0];a=c[1];c=c[2];e=Number(e);a=Number(a);c=Number(c);if(e!=(e&255)||a!=(a&255)||c!=(c&255))throw Error('"('+e+","+a+","+c+'") is not a valid RGB color');e=wz(e.toString(16));a=wz(a.toString(16));c=wz(c.toString(16));b.Fu="#"+e+a+c;b.type="rgb";return b}if(sz&&(c=sz[a.toLowerCase()]))return b.Fu=c,b.type="named",b;throw Error(a+" is not a valid color string");
},yz=/#(.)(.)(.)/,uz=function(a){if(!tz.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(yz,"#$1$1$2$2$3$3"));return a.toLowerCase()},zz=function(a){a=uz(a);return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]},tz=/^#(?:[0-9a-f]{3}){1,2}$/i,Az=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,vz=function(a){var b=a.match(Az);if(b){a=Number(b[1]);var c=Number(b[2]);b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=
c&&0<=b&&255>=b)return[a,c,b]}return[]},wz=function(a){return 1==a.length?"0"+a:a};var Bz=function(a,b,c,e){this.top=a;this.right=b;this.bottom=c;this.left=e};q=Bz.prototype;q.Ag=function(){return this.right-this.left};q.ti=function(){return this.bottom-this.top};q.clone=function(){return new Bz(this.top,this.right,this.bottom,this.left)};q.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};
q.contains=function(a){return this&&a?a instanceof Bz?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};q.expand=function(a,b,c,e){Oq(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(e));return this};
q.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};q.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};q.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
q.translate=function(a,b){a instanceof Tx?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(Pr(a),this.left+=a,this.right+=a,Hq(b)&&(this.top+=b,this.bottom+=b));return this};q.scale=function(a,b){b=Hq(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var Cz=function(a,b,c,e){this.left=a;this.top=b;this.width=c;this.height=e};q=Cz.prototype;q.clone=function(){return new Cz(this.left,this.top,this.width,this.height)};q.rDa=function(){return new Bz(this.top,this.left+this.width,this.top+this.height,this.left)};q.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
q.GK=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var e=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(e<=a)return this.left=b,this.top=e,this.width=c-b,this.height=a-e,!0}return!1};q.contains=function(a){return a instanceof Tx?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
q.Ae=function(){return new Wx(this.width,this.height)};q.Oka=function(){return new Tx(this.left,this.top)};q.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};q.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
q.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};q.translate=function(a,b){a instanceof Tx?(this.left+=a.x,this.top+=a.y):(this.left+=Pr(a),Hq(b)&&(this.top+=b));return this};q.scale=function(a,b){b=Hq(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Q=function(a,b,c){if(v(b))(b=Dz(a,b))&&(a.style[b]=c);else for(var e in b){c=a;var f=b[e],g=Dz(c,e);g&&(c.style[g]=f)}},Ez={},Dz=function(a,b){var c=Ez[b];if(!c){var e=Fr(b);c=e;void 0===a.style[e]&&(e=(zt?"Webkit":yt?"Moz":E?"ms":vt?"O":null)+Gr(e),void 0!==a.style[e]&&(c=e));Ez[b]=c}return c},Fz=function(a,b){var c=a.style[Fr(b)];return"undefined"!==typeof c?c:a.style[Dz(a,b)]||""},Gz=function(a,b){var c=Zx(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,
null))?a[b]||a.getPropertyValue(b)||"":""},Hz=function(a,b){return Gz(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Iz=function(a){return Hz(a,tm)},Kz=function(a,b,c){if(b instanceof Tx){var e=b.x;b=b.y}else e=b,b=c;a.style.left=Jz(e,!1);a.style.top=Jz(b,!1)},Lz=function(a){return new Tx(a.offsetLeft,a.offsetTop)},Mz=function(a){a=a?Zx(a):document;return!E||St(9)||N(a).Tu()?a.documentElement:a.body},Nz=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,
right:0,bottom:0}}E&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Oz=function(a){if(E&&!St(8))return C(a&&"offsetParent"in a),a.offsetParent;var b=Zx(a),c=Hz(a,tm),e=c==yh||c==be;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Hz(a,tm),e=e&&"static"==c&&a!=b.documentElement&&a!=b.body,!e&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c==
yh||c==be||c==Mm))return a;return null},Qz=function(a){for(var b=new Bz(0,Infinity,Infinity,0),c=N(a),e=c.K().body,f=c.K().documentElement,g=c.AX();a=Oz(a);)if(!(E&&0==a.clientWidth||zt&&0==a.clientHeight&&a==e)&&a!=e&&a!=f&&Hz(a,"overflow")!=fq){var h=Pz(a),l=new Tx(a.clientLeft,a.clientTop);h.x+=l.x;h.y+=l.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}e=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,
e);b.top=Math.max(b.top,g);c=c.qu();b.right=Math.min(b.right,e+c.width);b.bottom=Math.min(b.bottom,g+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},Tz=function(a,b,c){var e=b||iy(document),f=Pz(a),g=Pz(e),h=Rz(e);e==iy(document)?(b=f.x-e.scrollLeft,f=f.y-e.scrollTop,E&&!St(10)&&(b+=h.left,f+=h.top)):(b=f.x-g.x-h.left,f=f.y-g.y-h.top);h=Sz(a);a=e.clientWidth-h.width;h=e.clientHeight-h.height;g=e.scrollLeft;e=e.scrollTop;c?(g+=b-a/2,e+=f-h/2):(g+=Math.min(b,Math.max(b-
a,0)),e+=Math.min(f,Math.max(f-h,0)));return new Tx(g,e)},Uz=function(a,b,c){b=b||iy(document);a=Tz(a,b,c);b.scrollLeft=a.x;b.scrollTop=a.y},Pz=function(a){var b=Zx(a);Sr(a,"Parameter is required");var c=new Tx(0,0),e=Mz(b);if(a==e)return c;a=Nz(a);b=N(b).Df();c.x=a.left+b.x;c.y=a.top+b.y;return c},Wz=function(a,b){a=Vz(a);b=Vz(b);return new Tx(a.x-b.x,a.y-b.y)},Xz=function(a){a=Nz(a);return new Tx(a.left,a.top)},Vz=function(a){C(a);if(1==a.nodeType)return Xz(a);a=a.changedTouches?a.changedTouches[0]:
a;return new Tx(a.clientX,a.clientY)},$z=function(a,b,c){if(b instanceof Wx)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Yz(a,b);Zz(a,c)},Jz=function(a,b){typeof a==Ik&&(a=(b?Math.round(a):a)+n);return a},Zz=function(a,b){a.style.height=Jz(b,!0)},Yz=function(a,b){a.style.width=Jz(b,!0)},aA=function(a){var b=Sz;if(Hz(a,"display")!=Ek)var c=b(a);else{c=a.style;var e=c.display,f=c.visibility,g=c.position;c.visibility=yi;c.position=be;c.display=Ui;a=b(a);c.display=e;c.position=
g;c.visibility=f;c=a}return c},Sz=function(a){var b=a.offsetWidth,c=a.offsetHeight,e=zt&&!b&&!c;return u(b)&&!e||!a.getBoundingClientRect?new Wx(b,c):(a=Nz(a),new Wx(a.right-a.left,a.bottom-a.top))},bA=function(a){var b=Pz(a);a=aA(a);return new Cz(b.x,b.y,a.width,a.height)},cA=function(a,b){C(a);a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")},R=function(a,b){a.style.display=b?"":Ek},dA=function(a){return a.style.display!=
Ek},eA=function(a,b){b=cx(b);E&&u(a.cssText)?a.cssText=b:a.innerHTML=b},fA=function(a){return Tm==Hz(a,"direction")},gA=yt?"MozUserSelect":zt||wt?"WebkitUserSelect":null,hA=function(a,b,c){c=c?null:a.getElementsByTagName("*");if(gA){if(b=b?Ek:"",a.style&&(a.style[gA]=b),c){a=0;for(var e;e=c[a];a++)e.style&&(e.style[gA]=b)}}else if(E||vt)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)},iA=function(a){return new Wx(a.offsetWidth,a.offsetHeight)},
lA=function(a){var b=Zx(a),c=E&&a.currentStyle;if(c&&N(b).Tu()&&c.width!=af&&c.height!=af&&!c.boxSizing)return b=jA(a,c.width,kq,"pixelWidth"),a=jA(a,c.height,xi,"pixelHeight"),new Wx(b,a);c=iA(a);b=kA(a);a=Rz(a);return new Wx(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)},jA=function(a,b,c,e){if(/^\d+px?$/.test(b))return parseInt(b,10);var f=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[e];a.style[c]=f;a.runtimeStyle[c]=
g;return+b},mA=function(a,b){return(b=a.currentStyle?a.currentStyle[b]:null)?jA(a,b,Ij,"pixelLeft"):0},nA=function(a,b){if(E){var c=mA(a,b+"Left"),e=mA(a,b+"Right"),f=mA(a,b+"Top");a=mA(a,b+"Bottom");return new Bz(f,e,a,c)}c=Gz(a,b+"Left");e=Gz(a,b+"Right");f=Gz(a,b+"Top");a=Gz(a,b+"Bottom");return new Bz(parseFloat(f),parseFloat(e),parseFloat(a),parseFloat(c))},kA=function(a){return nA(a,"padding")},oA=function(a){return nA(a,"margin")},pA={thin:2,medium:4,thick:6},qA=function(a,b){if((a.currentStyle?
a.currentStyle[b+"Style"]:null)==Ek)return 0;b=a.currentStyle?a.currentStyle[b+"Width"]:null;return b in pA?pA[b]:jA(a,b,Ij,"pixelLeft")},Rz=function(a){if(E&&!St(9)){var b=qA(a,"borderLeft"),c=qA(a,"borderRight"),e=qA(a,"borderTop");a=qA(a,"borderBottom");return new Bz(e,c,a,b)}b=Gz(a,"borderLeftWidth");c=Gz(a,"borderRightWidth");e=Gz(a,"borderTopWidth");a=Gz(a,"borderBottomWidth");return new Bz(parseFloat(e),parseFloat(c),parseFloat(a),parseFloat(b))};var rA=function(){if(Ct){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Fs))?a[1]:"0"}return Bt?(a=/10[_.][0-9_.]+/,(a=a.exec(Fs))?a[0].replace(/_/g,"."):"10"):Et?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Fs))?a[1]:""):Ft||Gt||Ht?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Fs))?a[1].replace(/_/g,"."):""):""}();var sA=Is("Firefox"),tA=qt()||Is("iPod"),uA=Is("iPad"),vA=Is("Android")&&!(dt()||Is("Firefox")||Is("Opera")||Is("Silk")),wA=dt(),xA=Is("Safari")&&!(dt()||Is("Coast")||Is("Opera")||Is(sc)||Is("Silk")||Is("Android"))&&!rt();var yA=function(a){return(a=a.exec(Fs))?a[1]:""},zA=function(){if(sA)return yA(/Firefox\/([0-9.]+)/);if(E||wt||vt)return Ot;if(wA)return rt()?yA(/CriOS\/([0-9.]+)/):yA(/Chrome\/([0-9.]+)/);if(xA&&!rt())return yA(/Version\/([0-9.]+)/);if(tA||uA){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Fs);if(a)return a[1]+"."+a[2]}else if(vA)return(a=yA(/Android\s+([0-9.]+)/))?a:yA(/Version\/([0-9.]+)/);return""}();var AA=function(a){var b=a.offsetLeft,c=a.offsetParent;c||Iz(a)!=yh||(c=Zx(a).documentElement);if(!c)return b;if(yt){var e=Rz(c);b+=e.left}else St(8)&&!St(9)&&(e=Rz(c),b-=e.left);return fA(c)?c.clientWidth-(b+a.offsetWidth):b},BA=function(){var a=xA&&0<=Er(zA,10),b=It&&0<=Er(rA,10);return yt||a||b};var CA=function(a,b,c,e,f){qz.call(this,b,c,e,f);this.element=a};B(CA,qz);q=CA.prototype;q.im=Jq;q.Eh=function(){u(this.Ii)||(this.Ii=fA(this.element));return this.Ii};q.Av=function(){this.im();CA.c.Av.call(this)};q.dk=function(){this.im();CA.c.dk.call(this)};q.Mg=function(){this.im();CA.c.Mg.call(this)};var DA=function(a,b,c,e,f){if(2!=b.length||2!=c.length)throw Error(qd);CA.apply(this,arguments)};B(DA,CA);
DA.prototype.im=function(){var a=this.km&&this.Eh()?Pm:Ij;this.element.style[a]=Math.round(this.coords[0])+n;this.element.style.top=Math.round(this.coords[1])+n};var EA=function(a,b,c,e){var f=[this.km?AA(a):a.offsetLeft,a.offsetTop];DA.call(this,a,f,b,c,e)};B(EA,DA);EA.prototype.Mg=function(){this.Rr=[this.km?AA(this.element):this.element.offsetLeft,this.element.offsetTop];EA.c.Mg.call(this)};var FA=function(a,b,c,e,f){if(2!=b.length||2!=c.length)throw Error(qd);CA.apply(this,arguments)};B(FA,CA);
FA.prototype.im=function(){if(this.km){var a=this.element,b=Math.round(this.coords[0]);b=Math.max(b,0);fA(a)?BA()?a.scrollLeft=-b:xt&&Qt("8")?a.scrollLeft=b:a.scrollLeft=a.scrollWidth-b-a.clientWidth:a.scrollLeft=b}else this.element.scrollLeft=Math.round(this.coords[0]);this.element.scrollTop=Math.round(this.coords[1])};var GA=function(a,b,c,e,f){CA.call(this,a,[b],[c],e,f)};B(GA,CA);GA.prototype.im=function(){this.element.style.height=Math.round(this.coords[0])+n};
var HA=function(a,b,c,e,f){Hq(b)&&(b=[b]);Hq(c)&&(c=[c]);CA.call(this,a,b,c,e,f);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");this.jB=-1};B(HA,CA);var IA=1/1024;q=HA.prototype;q.im=function(){var a=this.coords[0];Math.abs(a-this.jB)>=IA&&(cA(this.element,a),this.jB=a)};q.Mg=function(){this.jB=-1;HA.c.Mg.call(this)};q.dk=function(){this.jB=-1;HA.c.dk.call(this)};q.show=function(){this.element.style.display=""};q.Ce=function(){this.element.style.display=Ek};
var JA=function(a,b,c){HA.call(this,a,0,1,b,c)};B(JA,HA);var KA=function(a,b,c){HA.call(this,a,1,0,b,c)};B(KA,HA);KA.prototype.Mg=function(){this.show();KA.c.Mg.call(this)};KA.prototype.dk=function(){this.Ce();KA.c.dk.call(this)};var LA=function(a,b,c){HA.call(this,a,0,1,b,c)};B(LA,HA);LA.prototype.Mg=function(){this.show();LA.c.Mg.call(this)};var MA=function(a,b,c,e,f){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");CA.apply(this,arguments)};B(MA,CA);
MA.prototype.y5=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);a="rgb("+a.join(",")+")";this.element.style.backgroundColor=a};MA.prototype.im=function(){this.y5()};var NA=function(a,b,c,e){function f(){a.style.backgroundColor=g}var g=a.style.backgroundColor||"",h=Hz(a,cf);h=h&&h!=rp&&"rgba(0, 0, 0, 0)"!=h?zz(xz(h).Fu):[255,255,255];b=new MA(a,b,h,c);e?e.listen(b,eh,f):I(b,eh,f);b.play()};var OA=function(a){return 1-Math.pow(1-a,3)},PA=function(a){return 3*a*a-2*a*a*a};var QA,RA=/org.mozilla|com.google|org.jdom|Object|java.lang/;function S(a,b,c){QA&&(QA.xV(),QA=null);a&&RA.test(a)&&(a="Server Error");var e=P("sites-notice");c?Gy(e,a):e.innerHTML=a;a=P("sites-status");a.style.display==Ek&&(QA=new LA(a,b||50),QA.play());return a}w("JOT_setStatusMsg",S,void 0);webspace.page.setStatusMsg=S;function SA(a){QA&&(QA.xV(),QA=null);QA=new KA(P("sites-status"),a&&typeof a==Ik?a:50);I(QA,eh,function(){ty(P("sites-notice"))},!1);QA.play()}w("JOT_clearStatusMsg",SA,void 0);var TA=function(){bw.call(this)};B(TA,bw);var UA=function(a,b,c,e,f,g,h){var l=new TA;b=y(l.rda,l,b,c);I(l,Vo,b);I(l,gh,b);I(l,gp,b);I(l,Yd,b);I(l,Gm,l.dispose,!1,l);l.send(a,e,f,g,h)};TA.prototype.send=function(a,b,c,e,f){a=new Ty(a);a.T(vj,Ir.get("jotxtok"));if(f)for(var g in f)a.T(g,f[g]);TA.c.send.call(this,a.toString(),b,c,e)};
TA.prototype.rda=function(a,b,c){try{var e=c.target.Ba()}catch(f){}e&&e.error&&"not-logged-in"==e.error?S("You need to be signed in to complete this action. Click "+(ub+webspace.signInUrl+'">here</a> to sign in again.')):c.type==Vo&&a?a(c):c.type!=Vo&&b&&b(c)};var VA=function(a,b){null!=a&&this.append.apply(this,arguments)};q=VA.prototype;q.Zc="";q.set=function(a){this.Zc=""+a};q.append=function(a,b,c){this.Zc+=String(a);if(null!=b)for(var e=1;e<arguments.length;e++)this.Zc+=arguments[e];return this};q.clear=function(){this.Zc=""};q.toString=function(){return this.Zc};var WA=function(){gz.call(this);this.eza(this.hDa)};B(WA,gz);WA.prototype.wS=function(a,b,c){a[b]?a[b].value=c:(b=my(gd,{style:"display:none;"},my(Jc,{name:b,value:c,type:yi})),a.appendChild(b))};WA.prototype.hDa=function(a){var b=null;u(ky(a).rc)&&(b=502);return b};WA.prototype.aca=function(a){var b=Ir.get("jotxtok")||"";this.wS(a,vj,b)};var XA;"undefined"==typeof XA&&(XA=[]);var YA;"undefined"==typeof YA&&(YA=[]);var ZA=function(a){return 0<=a?a.toString(16).toUpperCase():"-"+(-a).toString(16).toUpperCase()};var $A=function(a){a=a.className;return v(a)&&a.match(/\S+/g)||[]},aB=function(a,b){for(var c=$A(a),e=ts(arguments,1),f=c.length+e.length,g=0;g<e.length;g++)is(c,e[g])||c.push(e[g]);e=c.join(" ");a.className=e;return c.length==f},cB=function(a,b){var c=$A(a),e=ts(arguments,1),f=bB(c,e),g=f.join(" ");a.className=g;return f.length==c.length-e.length},bB=function(a,b){return $r(a,function(a){return!is(b,a)})},dB=function(a,b){return is($A(a),b)};var eB=function(a,b,c){b||(b={});c=c||window;var e=a instanceof Lw?a:Pw("undefined"!=typeof a.href?a.href:String(a));a=b.target||a.target;var f=[];for(g in b)switch(g){case kq:case xi:case op:case Ij:f.push(g+"="+b[g]);break;case "target":case "noreferrer":break;default:f.push(g+"="+(b[g]?1:0))}var g=f.join(",");rt()&&c.navigator&&c.navigator.standalone&&a&&"_self"!=a?(g=c.document.createElement("A"),Px(g,e),g.setAttribute("target",a),b.noreferrer&&g.setAttribute("rel","noreferrer"),b=document.createEvent("MouseEvent"),
b.initMouseEvent(Bf,!0,!0,c,1),g.dispatchEvent(b),b={}):b.noreferrer?(b=c.open("",a,g),c=Mw(e),b&&(xt&&rr(c,";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Ax(ow("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+qr(c)+ua),b.document.write(ix(c)),b.document.close())):b=c.open(Mw(e),a,g);return b};var fB=function(a,b){if("FORM"==a.tagName)for(var c=a.elements,e=0;a=c[e];e++)fB(a,b);else 1==b&&a.blur(),a.disabled=b},gB=function(a){var b=a.type;switch(v(b)&&b.toLowerCase()){case xf:case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case fn:b=[];for(var c,e=0;c=a.options[e];e++)c.selected&&b.push(c.value);return b.length?b:null;default:return null!=a.value?a.value:null}};var hB=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||112<=a.keyCode&&123>=a.keyCode)return!1;switch(a.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!yt;default:return 166>a.keyCode||183<a.keyCode}},kB=function(a,b,c,e,f,g){if(!(E||wt||zt&&Qt("525")))return!0;if(Bt&&f)return iB(a);if(f&&!e)return!1;Hq(b)&&
(b=jB(b));f=17==b||18==b||Bt&&91==b;if((!c||Bt)&&f||Bt&&16==b&&(e||g))return!1;if((zt||wt)&&e&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(E&&e&&b==a)return!1;switch(a){case 13:return!0;case 27:return!(zt||wt)}return iB(a)},iB=function(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||(zt||wt)&&0==a)return!0;switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;
default:return!1}},jB=function(a){if(yt)a=lB(a);else if(Bt&&zt)switch(a){case 93:a=91}return a},lB=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};var nB=function(a){J.call(this);this.D=a;I(a,mB,this.Ah,!1,this);I(a,Bf,this.Jj,!1,this)};B(nB,J);var mB=yt?Aj:zj;nB.prototype.Ah=function(a){(13==a.keyCode||zt&&3==a.keyCode)&&this.IV(a)};nB.prototype.Jj=function(a){this.IV(a)};nB.prototype.IV=function(a){var b=new oB(a);if(this.dispatchEvent(b)){b=new pB(a);try{this.dispatchEvent(b)}finally{a.stopPropagation()}}};nB.prototype.o=function(){nB.c.o.call(this);Vu(this.D,mB,this.Ah,!1,this);Vu(this.D,Bf,this.Jj,!1,this);delete this.D};
var pB=function(a){Cu.call(this,a.bd);this.type=k};B(pB,Cu);var oB=function(a){Cu.call(this,a.bd);this.type="beforeaction"};B(oB,Cu);var qB={nR:["BC","AD"],H$:["Before Christ","Anno Domini"],maa:"JFMAMJJASOND".split(""),Paa:"JFMAMJJASOND".split(""),uR:"January February March April May June July August September October November December".split(" "),ls:"January February March April May June July August September October November December".split(" "),CR:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),FR:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),JR:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Raa:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ER:"Sun Mon Tue Wed Thu Fri Sat".split(" "),GR:"Sun Mon Tue Wed Thu Fri Sat".split(" "),kJa:"SMTWTFS".split(""),Qaa:"SMTWTFS".split(""),DR:["Q1","Q2","Q3","Q4"],zR:["1st quarter","2nd quarter","3rd quarter","4th quarter"],cR:["AM","PM"],No:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],vx:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],kR:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],cF:6,KR:[5,6],dF:5},rB=
qB;rB=qB;var sB=function(a,b){switch(b){case 1:return 0!=a%4||0==a%100&&0!=a%400?28:29;case 5:case 8:case 10:case 3:return 30}return 31},tB=function(a,b,c,e,f,g){v(a)?(this.hg="y"==a?b:0,this.Rf="m"==a?b:0,this.uf="d"==a?b:0,this.yc="h"==a?b:0,this.Ed="n"==a?b:0,this.kd="s"==a?b:0):(this.hg=a||0,this.Rf=b||0,this.uf=c||0,this.yc=e||0,this.Ed=f||0,this.kd=g||0)};
tB.prototype.vo=function(a){var b=Math.min(this.hg,this.Rf,this.uf,this.yc,this.Ed,this.kd),c=Math.max(this.hg,this.Rf,this.uf,this.yc,this.Ed,this.kd);if(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&c.push("-");c.push("P");(this.hg||a)&&c.push(Math.abs(this.hg)+"Y");(this.Rf||a)&&c.push(Math.abs(this.Rf)+"M");(this.uf||a)&&c.push(Math.abs(this.uf)+"D");if(this.yc||this.Ed||this.kd||a)c.push("T"),(this.yc||a)&&c.push(Math.abs(this.yc)+"H"),(this.Ed||a)&&c.push(Math.abs(this.Ed)+"M"),
(this.kd||a)&&c.push(Math.abs(this.kd)+"S");return c.join("")};tB.prototype.ad=function(a){return a.hg==this.hg&&a.Rf==this.Rf&&a.uf==this.uf&&a.yc==this.yc&&a.Ed==this.Ed&&a.kd==this.kd};tB.prototype.clone=function(){return new tB(this.hg,this.Rf,this.uf,this.yc,this.Ed,this.kd)};tB.prototype.add=function(a){this.hg+=a.hg;this.Rf+=a.Rf;this.uf+=a.uf;this.yc+=a.yc;this.Ed+=a.Ed;this.kd+=a.kd};
var uB=function(a,b,c){Hq(a)?(this.ka=this.gT(a,b||0,c||1),this.GB(c||1)):Oq(a)?(this.ka=this.gT(a.getFullYear(),a.getMonth(),a.getDate()),this.GB(a.getDate())):(this.ka=new Date(A()),a=this.ka.getDate(),this.ka.setHours(0),this.ka.setMinutes(0),this.ka.setSeconds(0),this.ka.setMilliseconds(0),this.GB(a))};q=uB.prototype;q.gT=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};q.Sm=rB.cF;q.hz=rB.dF;
q.clone=function(){var a=new uB(this.ka);a.Sm=this.Sm;a.hz=this.hz;return a};q.getFullYear=function(){return this.ka.getFullYear()};q.getYear=function(){return this.getFullYear()};q.getMonth=function(){return this.ka.getMonth()};q.getDate=function(){return this.ka.getDate()};q.getTime=function(){return this.ka.getTime()};q.getDay=function(){return this.ka.getDay()};q.fja=function(){return(this.getDay()+6)%7};q.Zka=function(){return(this.fja()-this.Sm+7)%7};q.getUTCFullYear=function(){return this.ka.getUTCFullYear()};
q.getUTCMonth=function(){return this.ka.getUTCMonth()};q.getUTCDate=function(){return this.ka.getUTCDate()};q.getUTCDay=function(){return this.ka.getDay()};q.getUTCHours=function(){return this.ka.getUTCHours()};q.getUTCMinutes=function(){return this.ka.getUTCMinutes()};q.dY=function(){return sB(this.getFullYear(),this.getMonth())};q.getTimezoneOffset=function(){return this.ka.getTimezoneOffset()};
q.sJ=function(){var a=this.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b);b=60*(b-c);a=(0<a?"-":"+")+zr(c,2)+":"+zr(b,2)}return a};q.set=function(a){this.ka=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.ka.setFullYear(a)};q.setYear=function(a){this.setFullYear(a)};q.setMonth=function(a){this.ka.setMonth(a)};q.setDate=function(a){this.ka.setDate(a)};q.setTime=function(a){this.ka.setTime(a)};q.setUTCFullYear=function(a){this.ka.setUTCFullYear(a)};
q.setUTCMonth=function(a){this.ka.setUTCMonth(a)};q.setUTCDate=function(a){this.ka.setUTCDate(a)};q.qO=function(a){this.Sm=a};q.Q5=function(a){this.hz=a};
q.add=function(a){if(a.hg||a.Rf){var b=this.getMonth()+a.Rf+12*a.hg,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var e=Math.min(sB(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.uf&&(b=new Date(this.getYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.uf),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),this.GB(a.getDate()))};
q.vo=function(a,b){return[this.getFullYear(),zr(this.getMonth()+1,2),zr(this.getDate(),2)].join(a?"-":"")+(b?this.sJ():"")};q.ad=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};q.toString=function(){return this.vo()};q.GB=function(a){this.getDate()!=a&&(a=this.getDate()<a?1:-1,this.ka.setUTCHours(this.ka.getUTCHours()+a))};q.valueOf=function(){return this.ka.valueOf()};
var vB=function(a,b,c,e,f,g,h){this.ka=Hq(a)?new Date(a,b||0,c||1,e||0,f||0,g||0,h||0):new Date(a&&a.getTime?a.getTime():A())};B(vB,uB);q=vB.prototype;q.getHours=function(){return this.ka.getHours()};q.getMinutes=function(){return this.ka.getMinutes()};q.getSeconds=function(){return this.ka.getSeconds()};q.getMilliseconds=function(){return this.ka.getMilliseconds()};q.getUTCDay=function(){return this.ka.getUTCDay()};q.getUTCHours=function(){return this.ka.getUTCHours()};q.getUTCMinutes=function(){return this.ka.getUTCMinutes()};
q.getUTCSeconds=function(){return this.ka.getUTCSeconds()};q.getUTCMilliseconds=function(){return this.ka.getUTCMilliseconds()};q.setHours=function(a){this.ka.setHours(a)};q.setMinutes=function(a){this.ka.setMinutes(a)};q.setSeconds=function(a){this.ka.setSeconds(a)};q.setMilliseconds=function(a){this.ka.setMilliseconds(a)};q.setUTCHours=function(a){this.ka.setUTCHours(a)};q.setUTCMinutes=function(a){this.ka.setUTCMinutes(a)};q.setUTCSeconds=function(a){this.ka.setUTCSeconds(a)};
q.setUTCMilliseconds=function(a){this.ka.setUTCMilliseconds(a)};q.add=function(a){uB.prototype.add.call(this,a);a.yc&&this.setUTCHours(this.ka.getUTCHours()+a.yc);a.Ed&&this.setUTCMinutes(this.ka.getUTCMinutes()+a.Ed);a.kd&&this.setUTCSeconds(this.ka.getUTCSeconds()+a.kd)};
q.vo=function(a,b){var c=uB.prototype.vo.call(this,a);return a?c+" "+zr(this.getHours(),2)+":"+zr(this.getMinutes(),2)+":"+zr(this.getSeconds(),2)+(b?this.sJ():""):c+"T"+zr(this.getHours(),2)+zr(this.getMinutes(),2)+zr(this.getSeconds(),2)+(b?this.sJ():"")};q.ad=function(a){return this.getTime()==a.getTime()};q.toString=function(){return this.vo()};q.clone=function(){var a=new vB(this.ka);a.qO(this.Sm);a.Q5(this.hz);return a};var wB=function(){},yB=function(a){if(typeof a==Ik){var b=new wB;b.d8=a;var c=a;if(0==c)c="Etc/GMT";else{var e=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);e.push(Math.floor(c/60)%100);c%=60;0!=c&&e.push(":",zr(c,2));c=e.join("")}b.lQ=c;c=a;0==c?c="UTC":(e=["UTC",0>c?"+":"-"],c=Math.abs(c),e.push(Math.floor(c/60)%100),c%=60,0!=c&&e.push(":",c),c=e.join(""));a=xB(a);b.wQ=[c,c];b.zo={QLa:a,HR:a};b.as=[];return b}b=new wB;b.lQ=a.id;b.d8=-a.std_offset;b.wQ=a.names;b.zo=a.names_ext;b.as=a.transitions;return b},
xB=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(zr(Math.floor(a/60)%100,2),":",zr(a%60,2));return b.join("")};q=wB.prototype;q.tX=function(a){a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes())/36E5;for(var b=0;b<this.as.length&&a>=this.as[b];)b+=2;return 0==b?0:this.as[b-1]};q.Ria=function(a){return xB(this.hJ(a))};q.fJ=function(a){return this.wQ[this.KK(a)?3:1]};q.hJ=function(a){return this.d8-this.tX(a)};
q.gka=function(a){a=-this.hJ(a);var b=[0>a?"-":"+"];a=Math.abs(a);b.push(zr(Math.floor(a/60)%100,2),zr(a%60,2));return b.join("")};q.xka=function(a){return this.wQ[this.KK(a)?2:0]};q.KK=function(a){return 0<this.tX(a)};q.Sia=function(a){return this.KK(a)?u(this.zo.G$)?this.zo.G$:this.zo.DST_GENERIC_LOCATION:u(this.zo.HR)?this.zo.HR:this.zo.STD_GENERIC_LOCATION};var zB=function(a,b){C(u(a),"Pattern must be defined");C(u(b)||u(rB),si);this.gc=[];this.Ha=b||rB;typeof a==Ik?this.Yo(a):this.kg(a)},AB=[/^\'(?:[^\']|\'\')*(\'|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/],BB=function(a){return a.getHours?a.getHours():0};
zB.prototype.kg=function(a){for(CB&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<AB.length;++c){var e=a.match(AB[c]);if(e){var f=e[0];a=a.substring(f.length);0==c&&("''"==f?f="'":(f=f.substring(1,"'"==e[1]?f.length-1:f.length),f=f.replace(/\'\'/g,"'")));this.gc.push({text:f,type:c});break}}if(b===a)throw Error("Malformed pattern part: "+a);}};
zB.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.hJ(a)):0,e=c?new Date(a.getTime()+c):a,f=e;b&&e.getTimezoneOffset()!=a.getTimezoneOffset()&&(f=6E4*(e.getTimezoneOffset()-a.getTimezoneOffset()),e=new Date(e.getTime()+f),c+=0<c?-864E5:864E5,f=new Date(a.getTime()+c));c=[];for(var g=0;g<this.gc.length;++g){var h=this.gc[g].text;1==this.gc[g].type?c.push(this.rha(h,a,e,f,b)):c.push(h)}return c.join("")};
zB.prototype.Yo=function(a){if(4>a)var b=this.Ha.No[a];else if(8>a)b=this.Ha.vx[a-4];else if(12>a)b=this.Ha.kR[a-8],b=b.replace("{1}",this.Ha.No[a-8]),b=b.replace("{0}",this.Ha.vx[a-8]);else{this.Yo(10);return}this.kg(b)};zB.prototype.ef=function(a){a=String(a);var b=this.Ha||rB;if(void 0!==b.lF){for(var c=[],e=0;e<a.length;e++){var f=a.charCodeAt(e);c.push(48<=f&&57>=f?String.fromCharCode(b.lF+f-48):a.charAt(e))}a=c.join("")}return a};var CB=!1;
zB.prototype.qha=function(a,b){b=0<b.getFullYear()?1:0;return 4<=a?this.Ha.H$[b]:this.Ha.nR[b]};zB.prototype.Hha=function(a,b){b=b.getFullYear();0>b&&(b=-b);2==a&&(b%=100);return this.ef(zr(b,a))};zB.prototype.uha=function(a,b){b=b.getMonth();switch(a){case 5:return this.Ha.maa[b];case 4:return this.Ha.uR[b];case 3:return this.Ha.CR[b];default:return this.ef(zr(b+1,a))}};
var DB=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");};q=zB.prototype;q.mha=function(a,b){DB(b);return this.ef(zr(BB(b)||24,a))};q.sha=function(a,b){b=b.getTime()%1E3/1E3;return this.ef(b.toFixed(Math.min(3,a)).substr(2)+(3<a?zr(0,a-3):""))};q.pha=function(a,b){b=b.getDay();return 4<=a?this.Ha.JR[b]:this.Ha.ER[b]};
q.nha=function(a,b){DB(b);a=BB(b);return this.Ha.cR[12<=a&&24>a?1:0]};q.lha=function(a,b){DB(b);return this.ef(zr(BB(b)%12||12,a))};q.jha=function(a,b){DB(b);return this.ef(zr(BB(b)%12,a))};q.kha=function(a,b){DB(b);return this.ef(zr(BB(b),a))};q.Aha=function(a,b){b=b.getDay();switch(a){case 5:return this.Ha.Qaa[b];case 4:return this.Ha.Raa[b];case 3:return this.Ha.GR[b];default:return this.ef(zr(b,1))}};
q.Bha=function(a,b){b=b.getMonth();switch(a){case 5:return this.Ha.Paa[b];case 4:return this.Ha.ls[b];case 3:return this.Ha.FR[b];default:return this.ef(zr(b+1,a))}};q.vha=function(a,b){b=Math.floor(b.getMonth()/3);return 4>a?this.Ha.DR[b]:this.Ha.zR[b]};q.oha=function(a,b){return this.ef(zr(b.getDate(),a))};q.tha=function(a,b){DB(b);return this.ef(zr(b.getMinutes(),a))};q.xha=function(a,b){DB(b);return this.ef(zr(b.getSeconds(),a))};
q.Gha=function(a,b){var c=b.getDate(),e=this.Ha.dF;b=new Date(b.getFullYear(),b.getMonth(),c);c=this.Ha.cF||0;e=b.valueOf()+864E5*(((u(e)?e:3)-c+7)%7-((b.getDay()+6)%7-c+7)%7);return this.ef(zr(Math.floor(Math.round((e-(new Date((new Date(e)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,a))};q.Eha=function(a,b,c){c=c||yB(b.getTimezoneOffset());return 4>a?c.gka(b):this.ef(c.Ria(b))};q.Fha=function(a,b,c){c=c||yB(b.getTimezoneOffset());return 4>a?c.xka(b):c.fJ(b)};
q.Cha=function(a,b){b=b||yB(a.getTimezoneOffset());return b.lQ};q.Dha=function(a,b,c){c=c||yB(b.getTimezoneOffset());return 2>=a?c.lQ:c.Sia(b)};
q.rha=function(a,b,c,e,f){var g=a.length;switch(a.charAt(0)){case "G":return this.qha(g,c);case "y":return this.Hha(g,c);case "M":return this.uha(g,c);case "k":return this.mha(g,e);case "S":return this.sha(g,e);case "E":return this.pha(g,c);case "a":return this.nha(g,e);case "h":return this.lha(g,e);case "K":return this.jha(g,e);case "H":return this.kha(g,e);case "c":return this.Aha(g,c);case "L":return this.Bha(g,c);case "Q":return this.vha(g,c);case "d":return this.oha(g,c);case "m":return this.tha(g,
e);case "s":return this.xha(g,e);case "v":return this.Cha(b,f);case "V":return this.Dha(g,b,f);case "w":return this.Gha(g,e);case "z":return this.Fha(g,b,f);case "Z":return this.Eha(g,b,f);default:return""}};var HB=function(a,b,c,e,f,g,h,l,p){C(c);var r=EB(c),z=bA(a),O=Qz(a);O&&z.GK(new Cz(O.left,O.top,O.right-O.left,O.bottom-O.top));O=N(a);var ea=N(c);if(O.K()!=ea.K()){var qa=O.K().body;ea=ea.getWindow();var ac=new Tx(0,0),me=ky(Zx(qa));if(tt(me,m)){var Xm=qa;do{var qq=me==ea?Pz(Xm):Xz(C(Xm));ac.x+=qq.x;ac.y+=qq.y}while(me&&me!=ea&&me!=me.parent&&(Xm=me.frameElement)&&(me=me.parent))}qa=Vx(ac,Pz(qa));!E||St(9)||O.Tu()||(qa=Vx(qa,O.Df()));z.left+=qa.x;z.top+=qa.y}a=FB(a,b);b=z.left;a&4?b+=z.width:a&2&&
(b+=z.width/2);z=new Tx(b,z.top+(a&1?z.height:0));z=Vx(z,r);f&&(z.x+=(a&4?-1:1)*f.x,z.y+=(a&1?-1:1)*f.y);if(h)if(p)var Ic=p;else if(Ic=Qz(c))Ic.top-=r.y,Ic.right-=r.x,Ic.bottom-=r.y,Ic.left-=r.x;return GB(z,c,e,g,Ic,h,l)},EB=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=Iz(a)){var c=Pz(a);b||(b=(b=fA(a))&&BA()?-a.scrollLeft:!b||xt&&Qt("8")||Hz(a,"overflowX")==fq?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft,c=Vx(c,new Tx(b,a.scrollTop)))}}return c||
new Tx},GB=function(a,b,c,e,f,g,h){a=a.clone();var l=FB(b,c);c=aA(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var p=0;if(e||0!=l)l&4?a.x-=h.width+(e?e.right:0):l&2?a.x-=h.width/2:e&&(a.x+=e.left),l&1?a.y-=h.height+(e?e.bottom:0):e&&(a.y+=e.top);if(g){if(f){e=a;l=h;p=0;65==(g&65)&&(e.x<f.left||e.x>=f.right)&&(g&=-2);132==(g&132)&&(e.y<f.top||e.y>=f.bottom)&&(g&=-5);e.x<f.left&&g&1&&(e.x=f.left,p|=1);if(g&16){var r=e.x;e.x<f.left&&(e.x=f.left,p|=4);e.x+l.width>f.right&&(l.width=Math.min(f.right-
e.x,r+l.width-f.left),l.width=Math.max(l.width,0),p|=4)}e.x+l.width>f.right&&g&1&&(e.x=Math.max(f.right-l.width,f.left),p|=1);g&2&&(p|=(e.x<f.left?16:0)|(e.x+l.width>f.right?32:0));e.y<f.top&&g&4&&(e.y=f.top,p|=2);g&32&&(r=e.y,e.y<f.top&&(e.y=f.top,p|=8),e.y+l.height>f.bottom&&(l.height=Math.min(f.bottom-e.y,r+l.height-f.top),l.height=Math.max(l.height,0),p|=8));e.y+l.height>f.bottom&&g&4&&(e.y=Math.max(f.bottom-l.height,f.top),p|=2);g&8&&(p|=(e.y<f.top?64:0)|(e.y+l.height>f.bottom?128:0));f=p}else f=
256;p=f}g=new Cz(0,0,0,0);g.left=a.x;g.top=a.y;g.width=h.width;g.height=h.height;f=p;if(f&496)return f;Kz(b,g.Oka());h=g.Ae();Xx(c,h)||(c=h,h=Zx(b),a=N(h).Tu(),!E||Qt("10")||a&&Qt("8")?(b=b.style,yt?b.MozBoxSizing=kf:zt?b.WebkitBoxSizing=kf:b.boxSizing=kf,b.width=Math.max(c.width,0)+n,b.height=Math.max(c.height,0)+n):(h=b.style,a?(a=kA(b),b=Rz(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right,h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));
return f},FB=function(a,b){return(b&8&&fA(a)?b^4:b)&-9};var IB,JB={gFa:ee,qFa:Xe,sFa:bf,CFa:"busy",v$:yf,PFa:"colindex",bGa:"controls",qGa:zg,uGa:Dg,PGa:"dropeffect",bHa:lh,oHa:"flowto",HHa:"grabbed",MHa:wi,PHa:yi,gIa:"invalid",Y$:Cj,nIa:Dj,xIa:"level",DIa:Mj,hJa:"multiline",iJa:"multiselectable",CJa:"orientation",FJa:ml,YJa:sm,$Ja:"pressed",READONLY:"readonly",tKa:"relevant",xKa:"required",GKa:"rowindex",SELECTED:hn,SKa:"setsize",FLa:"sort",DMa:"valuemax",EMa:"valuemin",FMa:Sp,GMa:"valuetext"};var KB={kFa:"alert",lFa:"alertdialog",oFa:"application",pFa:"article",s$:"banner",DFa:mf,KFa:xf,RFa:"columnheader",SFa:Ff,VFa:"complementary",ZFa:"contentinfo",pGa:"definition",sGa:Bg,tGa:"directory",lR:Lg,O$:"form",Q$:ti,KHa:ui,LHa:"group",NHa:"heading",$Ha:"img",zIa:"link",$$:Kj,BIa:Lj,CIa:"listitem",GIa:"log",IIa:"main",NIa:"marquee",OIa:"math",SIa:"menu",TIa:"menubar",UIa:"menuitem",VIa:fk,WIa:"menuitemradio",lJa:Bk,tJa:"note",AJa:cl,vaa:vm,cKa:"progressbar",hKa:"radio",iKa:"radiogroup",rKa:"region",
DKa:"row",EKa:"rowgroup",FKa:"rowheader",JKa:"scrollbar",KKa:dn,QKa:kn,DLa:"slider",ILa:"spinbutton",PLa:Ro,ULa:"tab",XLa:"tablist",YLa:"tabpanel",bMa:"textbox",cMa:"textinfo",eMa:"timer",gMa:"toolbar",hMa:"tooltip",kMa:"tree",lMa:"treegrid",mMa:"treeitem"};ct(["A","AREA",Mb,"HEAD",Jc,"LINK","MENU","META","OPTGROUP",Xc,"PROGRESS","STYLE",fd,"SOURCE",yd,"TITLE","TRACK"]);
var LB=[Ff,ti,"group",Lj,"menu","menubar","radiogroup","row","rowgroup","tablist","textbox","toolbar","tree","treegrid"],MB=function(a,b){b?(C(Ss(KB,b),"No such ARIA role "+b),a.setAttribute(Qm,b)):a.removeAttribute(Qm)},T=function(a,b,c){x(c)&&(c=c.join(" "));var e=NB(b);""===c||void 0==c?(IB||(IB={atomic:!1,autocomplete:Ek,dropeffect:Ek,haspopup:!1,live:"off",multiline:!1,multiselectable:!1,orientation:Up,readonly:!1,relevant:"additions text",required:!1,sort:Ek,busy:!1,disabled:!1,hidden:!1,invalid:oh}),
c=IB,b in c?a.setAttribute(e,c[b]):a.removeAttribute(e)):a.setAttribute(e,c)},OB=function(a,b){a.removeAttribute(NB(b))},PB=function(a,b){a=a.getAttribute(NB(b));return null==a||void 0==a?"":String(a)},QB=function(a){var b=PB(a,ee);return Zx(a).getElementById(b)},RB=function(a,b){var c="";b&&(c=b.id,C(c,"The active element should have an id."));T(a,ee,c)},SB=function(a){return PB(a,Cj)},TB=function(a,b){T(a,Cj,b)},NB=function(a){C(a,"ARIA attribute cannot be empty.");C(Ss(JB,a),"No such ARIA attribute "+
a);return"aria-"+a};(function(){for(var a=["ms","moz","webkit","o"],b=0,c;c=a[b]&&!t.requestAnimationFrame;++b)t.requestAnimationFrame=t[c+"RequestAnimationFrame"],t.cancelAnimationFrame=t[c+"CancelAnimationFrame"]||t[c+"CancelRequestAnimationFrame"];if(!t.requestAnimationFrame){var e=0;t.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-e));e=b+c;return t.setTimeout(function(){a(b+c)},c)};t.cancelAnimationFrame||(t.cancelAnimationFrame=function(a){clearTimeout(a)})}})();
var UB=[[],[]],VB=0,WB=!1,XB=0,ZB=function(a,b){var c=XB++,e={vsa:{id:c,zj:a.measure,context:b},Qsa:{id:c,zj:a.Psa,context:b},state:{},args:void 0,YA:!1};return function(){0<arguments.length?(e.args||(e.args=[]),e.args.length=0,e.args.push.apply(e.args,arguments),e.args.push(e.state)):e.args&&0!=e.args.length?(e.args[0]=e.state,e.args.length=1):e.args=[e.state];e.YA||(e.YA=!0,UB[VB].push(e));WB||(WB=!0,window.requestAnimationFrame(YB))}},YB=function(){WB=!1;var a=UB[VB],b=a.length;VB=(VB+1)%2;for(var c,
e=0;e<b;++e){c=a[e];var f=c.vsa;c.YA=!1;f.zj&&f.zj.apply(f.context,c.args)}for(e=0;e<b;++e)c=a[e],f=c.Qsa,c.YA=!1,f.zj&&f.zj.apply(f.context,c.args),c.state={};a.length=0};var $B=function(a){if(a.classList)return a.classList;a=a.className;return v(a)&&a.match(/\S+/g)||[]},aC=function(a,b){a.className=b},bC=function(a,b){return a.classList?a.classList.contains(b):is($B(a),b)},U=function(a,b){a.classList?a.classList.add(b):bC(a,b)||(a.className+=0<a.className.length?" "+b:b)},cC=function(a,b){if(a.classList)D(b,function(b){U(a,b)});else{var c={};D($B(a),function(a){c[a]=!0});D(b,function(a){c[a]=!0});a.className="";for(var e in c)a.className+=0<a.className.length?" "+
e:e}},dC=function(a,b){a.classList?a.classList.remove(b):bC(a,b)&&(a.className=$r($B(a),function(a){return a!=b}).join(" "))},eC=function(a,b){a.classList?D(b,function(b){dC(a,b)}):a.className=$r($B(a),function(a){return!is(b,a)}).join(" ")},fC=function(a,b,c){c?U(a,b):dC(a,b)};var gC=E?Jw(ow(bj)):Jw(ow(Zd)),hC=Ew(gC),iC=E?Jw(ow(bj)):Jw(ow("javascript:undefined"));Ew(iC);var jC=function(a){F.call(this);this.Ga=a;this.wb={}};B(jC,F);var kC=[];q=jC.prototype;q.listen=function(a,b,c,e){return this.nB(a,b,c,e)};q.ql=function(a,b,c,e,f){return this.nB(a,b,c,e,f)};q.nB=function(a,b,c,e,f){x(b)||(b&&(kC[0]=b.toString()),b=kC);for(var g=0;g<b.length;g++){var h=I(a,b[g],c||this.handleEvent,e||!1,f||this.Ga||this);if(!h)break;this.wb[h.key]=h}return this};q.Of=function(a,b,c,e){return this.$0(a,b,c,e)};
q.$0=function(a,b,c,e,f){if(x(b))for(var g=0;g<b.length;g++)this.$0(a,b[g],c,e,f);else{a=Ou(a,b,c||this.handleEvent,e,f||this.Ga||this);if(!a)return this;this.wb[a.key]=a}return this};q.Hq=function(a,b,c,e){return this.Fra(a,b,c,e)};q.Fra=function(a,b,c,e,f){b.listen(a,c,e,f||this.Ga||this,this);return this};
q.ta=function(a,b,c,e,f){if(x(b))for(var g=0;g<b.length;g++)this.ta(a,b[g],c,e,f);else c=c||this.handleEvent,e=Oq(e)?!!e.capture:!!e,f=f||this.Ga||this,c=Pu(c),e=!!e,b=Gu(a)?a.gu(b,c,e,f):a?(a=Ru(a))?a.gu(b,c,e,f):null:null,b&&(Wu(b),delete this.wb[b.key]);return this};q.removeAll=function(){Js(this.wb,function(a,b){this.wb.hasOwnProperty(b)&&Wu(a)},this);this.wb={}};q.o=function(){jC.c.o.call(this);this.removeAll()};
q.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var lC=function(a){J.call(this);this.D=a;a=E?Bh:hf;this.Cra=I(this.D,E?Ah:zh,this,!E);this.Dra=I(this.D,a,this,!E)};B(lC,J);lC.prototype.handleEvent=function(a){var b=new Cu(a.bd);b.type=a.type==Ah||a.type==zh?Ah:Bh;this.dispatchEvent(b)};lC.prototype.o=function(){lC.c.o.call(this);Wu(this.Cra);Wu(this.Dra);delete this.D};var nC=function(a,b,c){J.call(this);this.target=a;this.handle=b||a;this.AL=c||new Cz(NaN,NaN,NaN,NaN);this.Qb=Zx(a);this.G=new jC(this);this.Y(this.G);this.deltaY=this.deltaX=this.m8=this.l8=this.screenY=this.screenX=this.clientY=this.clientX=0;this.cc=!0;this.Lm=!1;this.h3=!0;this.g_=0;this.km=this.tpa=!1;I(this.handle,[pp,nk],this.Tw,!1,this);this.QQ=mC};B(nC,J);var mC=t.document&&t.document.documentElement&&!!t.document.documentElement.setCapture&&!!t.document.releaseCapture;q=nC.prototype;
q.A=function(){return this.G};q.BO=function(a){this.AL=a||new Cz(NaN,NaN,NaN,NaN)};q.A6=function(a){this.hD=a};q.U=function(a){this.cc=a};q.o=function(){nC.c.o.call(this);Vu(this.handle,[pp,nk],this.Tw,!1,this);this.MT();this.handle=this.target=null};q.r0=function(){u(this.Ii)||(this.Ii=fA(this.target));return this.Ii};
q.Tw=function(a){var b=a.type==nk;if(!this.cc||this.Lm||b&&!a.Yu())this.dispatchEvent("earlycancel");else{if(0==this.g_)if(this.RW(a))this.Lm=!0,this.h3&&b&&a.preventDefault();else return;else this.h3&&b&&a.preventDefault();this.sBa();this.clientX=this.l8=a.clientX;this.clientY=this.m8=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.Pda();this.OM=N(this.Qb).Df()}};
q.sBa=function(){var a=this.Qb,b=a.documentElement,c=!this.QQ;this.G.listen(a,["touchmove",ok],this.dna,{capture:c,passive:!1});this.G.listen(a,["touchend",rk],this.Pm,c);this.QQ?(b.setCapture(!1),this.G.listen(b,"losecapture",this.Pm)):this.G.listen(ky(a),hf,this.Pm);E&&this.tpa&&this.G.listen(a,Sg,zu);this.hD&&this.G.listen(this.hD,bn,this.jC,c)};q.RW=function(a){return this.dispatchEvent(new oC(Oo,this,a.clientX,a.clientY,a))};q.MT=function(){this.G.removeAll();this.QQ&&this.Qb.releaseCapture()};
q.Pm=function(a,b){this.MT();this.Lm?(this.Lm=!1,this.dispatchEvent(new oC(eh,this,a.clientX,a.clientY,a,this.W0(this.deltaX),this.X0(this.deltaY),b||"touchcancel"==a.type))):this.dispatchEvent("earlycancel")};
q.dna=function(a){if(this.cc){var b=(this.km&&this.r0()?-1:1)*(a.clientX-this.clientX),c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.Lm){var e=this.l8-this.clientX,f=this.m8-this.clientY;if(e*e+f*f>this.g_)if(this.RW(a))this.Lm=!0;else{this.isDisposed()||this.Pm(a);return}}c=this.lT(b,c);b=c.x;c=c.y;this.Lm&&this.dispatchEvent(new oC("beforedrag",this,a.clientX,a.clientY,a,b,c))&&(this.SV(a,b,c,!1),a.preventDefault())}};
q.lT=function(a,b){var c=N(this.Qb).Df();a+=c.x-this.OM.x;b+=c.y-this.OM.y;this.OM=c;this.deltaX+=a;this.deltaY+=b;return new Tx(this.W0(this.deltaX),this.X0(this.deltaY))};q.jC=function(a){var b=this.lT(0,0);a.clientX=this.clientX;a.clientY=this.clientY;this.SV(a,b.x,b.y,!0)};q.SV=function(a,b,c){this.hfa(b,c);this.dispatchEvent(new oC("drag",this,a.clientX,a.clientY,a,b,c))};
q.W0=function(a){var b=this.AL,c=isNaN(b.left)?null:b.left;b=isNaN(b.width)?0:b.width;return Math.min(null!=c?c+b:Infinity,Math.max(null!=c?c:-Infinity,a))};q.X0=function(a){var b=this.AL,c=isNaN(b.top)?null:b.top;b=isNaN(b.height)?0:b.height;return Math.min(null!=c?c+b:Infinity,Math.max(null!=c?c:-Infinity,a))};q.Pda=function(){this.deltaX=this.km?AA(this.target):this.target.offsetLeft;this.deltaY=this.target.offsetTop};
q.hfa=function(a,b){this.km&&this.r0()?this.target.style.right=a+n:this.target.style.left=a+n;this.target.style.top=b+n};var oC=function(a,b,c,e,f,g,h,l){H.call(this,a);this.clientX=c;this.clientY=e;this.TF=f;this.left=u(g)?g:b.deltaX;this.top=u(h)?h:b.deltaY;this.Ofa=!!l};B(oC,H);var pC=function(){};Kq(pC);pC.prototype.mM=0;pC.prototype.Nd=function(){return":"+(this.mM++).toString(36)};var V=function(a){J.call(this);this.Z=a||N();this.Ii=qC;this.ma=null;this.V=!1;this.D=null;this.al=void 0;this.mh=this.Ja=this.ea=this.$=null;this.f$=!1};B(V,J);V.prototype.qpa=pC.H();var qC=null,rC=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?Ai:xp;case 4:return b?"activate":wg;case 8:return b?en:"unselect";case 16:return b?"check":"uncheck";case 32:return b?zh:hf;case 64:return b?"open":Cf}throw Error("Invalid component state");};q=V.prototype;
q.getId=function(){return this.ma||(this.ma=this.qpa.Nd())};q.BD=function(a){this.ea&&this.ea.mh&&(Vs(this.ea.mh,this.ma),Ws(this.ea.mh,a,this));this.ma=a};q.b=function(){return this.D};q.Ta=function(){var a=this.D;C(a,"Can not call getElementStrict before rendering/decorating.");return a};q.Na=function(a){this.D=a};q.Xm=function(a){return this.D?this.Z.Xm(a,this.D):[]};q.Fc=function(a){return this.D?this.Z.Fc(a,this.D):null};
q.ze=function(a){var b=this.Fc(a);C(b,"Expected element in component with class: %s",a);return b};q.A=function(){this.al||(this.al=new jC(this));return this.al};q.Ea=function(a){if(this==a)throw Error(Md);if(a&&this.ea&&this.ma&&this.ea.Sk(this.ma)&&this.ea!=a)throw Error(Md);this.ea=a;V.c.Sl.call(this,a)};q.getParent=function(){return this.ea};q.Sl=function(a){if(this.ea&&this.ea!=a)throw Error("Method not supported");V.c.Sl.call(this,a)};q.j=function(){return this.Z};q.g=function(){this.D=this.Z.createElement(d)};
q.render=function(a){this.nN(a)};q.S3=function(a){this.nN(a.parentNode,a)};q.nN=function(a,b){if(this.V)throw Error(cc);this.D||this.g();a?a.insertBefore(this.D,b||null):this.Z.K().body.appendChild(this.D);this.ea&&!this.ea.V||this.B()};q.R=function(a){if(this.V)throw Error(cc);if(a&&this.tc(a)){this.f$=!0;var b=Zx(a);this.Z&&this.Z.K()==b||(this.Z=N(a));this.Ka(a);this.B()}else throw Error("Invalid element to decorate");};q.tc=function(){return!0};q.Ka=function(a){this.D=a};
q.B=function(){this.V=!0;this.Ia(function(a){!a.V&&a.b()&&a.B()})};q.Pa=function(){this.Ia(function(a){a.V&&a.Pa()});this.al&&this.al.removeAll();this.V=!1};q.o=function(){this.V&&this.Pa();this.al&&(this.al.dispose(),delete this.al);this.Ia(function(a){a.dispose()});!this.f$&&this.D&&xy(this.D);this.ea=this.$=this.D=this.mh=this.Ja=null;V.c.o.call(this)};q.Ig=function(a){return this.getId()+"."+a};q.o1=function(a){var b={},c;for(c in a)b[c]=this.Ig(a[c]);return b};q.Cja=function(){return this.$};
q.Dc=function(a){this.$=a};q.Fj=function(a){if(!this.V)throw Error("Operation not supported while component is not in document");return this.Z.b(this.Ig(a))};q.ca=function(a,b){this.pe(a,this.Xa(),b)};
q.pe=function(a,b,c){C(!!a,"Provided element must not be null.");if(a.V&&(c||!this.V))throw Error(cc);if(0>b||b>this.Xa())throw Error("Child component index out of bounds");this.mh&&this.Ja||(this.mh={},this.Ja=[]);if(a.getParent()==this){var e=a.getId();this.mh[e]=a;os(this.Ja,a)}else Ws(this.mh,a.getId(),a);a.Ea(this);us(this.Ja,b,0,a);a.V&&this.V&&a.getParent()==this?(c=this.J(),b=c.childNodes[b]||null,b!=a.b()&&c.insertBefore(a.b(),b)):c?(this.D||this.g(),b=this.pa(b+1),a.nN(this.J(),b?b.D:null)):
this.V&&!a.V&&a.D&&a.D.parentNode&&1==a.D.parentNode.nodeType&&a.B()};q.J=function(){return this.D};q.Eh=function(){null==this.Ii&&(this.Ii=fA(this.V?this.D:this.Z.K().body));return this.Ii};q.oo=function(a){if(this.V)throw Error(cc);this.Ii=a};q.Ad=function(){return!!this.Ja&&0!=this.Ja.length};q.Xa=function(){return this.Ja?this.Ja.length:0};q.eia=function(){var a=[];this.Ia(function(b){a.push(b.getId())});return a};
q.Sk=function(a){if(this.mh&&a){var b=this.mh;a=(null!==b&&a in b?b[a]:void 0)||null}else a=null;return a};q.pa=function(a){return this.Ja?this.Ja[a]||null:null};q.Ia=function(a,b){this.Ja&&D(this.Ja,a,b)};q.De=function(a){return this.Ja&&a?Xr(this.Ja,a):-1};q.removeChild=function(a,b){if(a){var c=v(a)?a:a.getId();a=this.Sk(c);c&&a&&(Vs(this.mh,c),os(this.Ja,a),b&&(a.Pa(),a.D&&xy(a.D)),a.Ea(null))}if(!a)throw Error("Child is not in parent component");return a};
q.L3=function(a,b){return this.removeChild(this.pa(a),b)};q.Ke=function(a){for(var b=[];this.Ad();)b.push(this.L3(0,a));return b};var sC=function(a,b){this.D=a;this.Z=b};sC.prototype.uya=function(a){if(a){this.pq||(this.pq=[]);a=this.Z.Pc(this.Z.K().body);for(var b=0;b<a.length;b++){var c=a[b];c==this.D||PB(c,yi)||(T(c,yi,!0),this.pq.push(c))}}else if(this.pq){for(b=0;b<this.pq.length;b++)OB(this.pq[b],yi);this.pq=null}};var tC=function(a,b){J.call(this);this.Ga=new jC(this);this.ur(a||null);b&&this.Ne(b)};B(tC,J);q=tC.prototype;q.D=null;q.US=!0;q.SS=null;q.TS=null;q.Bn=!1;q.CBa=!1;q.Q0=-1;q.rL=-1;q.UZ=!1;q.dga=!0;q.Va=np;q.getType=function(){return this.Va};q.Ne=function(a){this.Va=a};q.b=function(){return this.D};q.ur=function(a){this.JH();this.D=a};q.ow=function(a){this.JH();this.US=a};q.W5=function(a){this.JH();this.UZ=a};q.SD=function(a,b){this.Lr=a;this.rq=b};q.A=function(){return this.Ga};
q.JH=function(){if(this.Bn)throw Error("Can not change this state of the popup while showing.");};q.N=function(){return this.Bn};q.WA=function(){return this.Bn||150>A()-this.rL};q.C=function(a){this.Lr&&this.Lr.stop();this.rq&&this.rq.stop();a?this.HP():this.sq()};q.ha=Jq;
q.HP=function(){if(!this.Bn&&this.vM()){if(!this.D)throw Error("Caller must call setElement before trying to show the popup");this.ha();var a=Zx(this.D);this.UZ&&this.Ga.listen(a,zj,this.qta,!0);if(this.US)if(this.Ga.listen(a,nk,this.bC,!0),E){try{var b=a.activeElement}catch(e){}for(;b&&b.nodeName==Fc;){try{var c=Fy(b)}catch(e){break}a=c;b=a.activeElement}this.Ga.listen(a,nk,this.bC,!0);this.Ga.listen(a,wg,this.j2)}else this.Ga.listen(a,hf,this.j2);this.Va==np?this.DP():this.Va==tk&&this.ha();this.Bn=
!0;this.Q0=A();this.rL=-1;this.Lr?(Ou(this.Lr,eh,this.Hc,!1,this),this.Lr.play()):this.Hc()}};q.sq=function(a){if(!this.Bn||!this.kta(a))return!1;this.Ga&&this.Ga.removeAll();this.Bn=!1;this.rL=A();this.rq?(Ou(this.rq,eh,Wq(this.kU,a),!1,this),this.rq.play()):this.kU(a);return!0};q.kU=function(a){this.Va==np?this.CBa?M(this.sA,0,this):this.sA():this.Va==tk&&this.Ksa();this.Ng(a)};q.DP=function(){this.D.style.visibility=fq;R(this.D,!0)};q.sA=function(){this.D.style.visibility=yi;R(this.D,!1)};
q.Ksa=function(){this.D.style.top=Ga};q.vM=function(){return this.dispatchEvent(ff)};q.Hc=function(){this.dispatchEvent(Cn)};q.kta=function(a){return this.dispatchEvent({type:ef,target:a})};q.Ng=function(a){this.dispatchEvent({type:zi,target:a})};q.bC=function(a){a=a.target;Ey(this.D,a)||this.j0(a)||!this.B0(a)||this.uP()||this.sq(a)};q.qta=function(a){27==a.keyCode&&this.sq(a.target)&&(a.preventDefault(),a.stopPropagation())};
q.j2=function(a){if(this.dga){var b=Zx(this.D);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||Ey(this.D,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;this.uP()||this.sq()}};q.j0=function(a){return cs(this.SS||[],function(b){return a===b||Ey(b,a)})};q.B0=function(a){return this.TS?Ey(this.TS,a):!0};q.uP=function(){return 150>A()-this.Q0};q.o=function(){tC.c.o.call(this);this.Ga.dispose();G(this.Lr);G(this.rq);delete this.D;delete this.Ga;delete this.SS};var uC=function(a,b){V.call(this,b);this.GEa=!!a;this.Fq=null;this.l4=ZB({Psa:this.WC},this)};B(uC,V);q=uC.prototype;q.vh=null;q.Cb=!1;q.Te=null;q.Vd=null;q.Kc=null;q.sm=!1;q.S=function(){return"goog-modalpopup"};q.Rk=function(){return this.Te};q.g=function(){uC.c.g.call(this);var a=this.b();C(a);var b=cr(this.S()).split(" ");cC(a,b);My(a,!0);R(a,!1);this.r1();this.LU()};
q.r1=function(){this.GEa&&!this.Vd&&(this.Vd=this.j().g(Fc,{frameborder:0,style:"border:0;vertical-align:bottom;",src:hC}),this.Vd.className=this.S()+"-bg",R(this.Vd,!1),cA(this.Vd,0));this.Te||(this.Te=this.j().g(d,this.S()+"-bg"),R(this.Te,!1))};q.LU=function(){this.Kc||(this.Kc=this.j().createElement(gd),R(this.Kc,!1),My(this.Kc,!0),this.Kc.style.position=be)};q.j7=function(){this.sm=!0;try{this.Kc.focus()}catch(a){}M(this.Wv,0,this)};q.Wv=function(){this.sm=!1};
q.Awa=function(){C(!!this.Te,"Background element must not be null.");this.Vd&&uy(this.Vd,this.b());uy(this.Te,this.b())};q.tc=function(a){return!!a&&a.tagName==d};q.Ka=function(a){uC.c.Ka.call(this,a);a=cr(this.S()).split(" ");cC(C(this.b()),a);this.r1();this.LU();My(this.b(),!0);R(this.b(),!1)};q.B=function(){this.Awa();uC.c.B.call(this);vy(this.Kc,this.b());this.vh=new lC(this.j().K());this.A().listen(this.vh,Ah,this.Cta);this.RN(!1)};
q.Pa=function(){this.N()&&this.C(!1);G(this.vh);uC.c.Pa.call(this);xy(this.Vd);xy(this.Te);xy(this.Kc)};q.C=function(a){C(this.V,"ModalPopup must be rendered first.");a!=this.Cb&&(this.Un&&this.Un.stop(),this.ep&&this.ep.stop(),this.Tn&&this.Tn.stop(),this.cp&&this.cp.stop(),this.V&&this.RN(a),a?this.HP():this.sq())};q.RN=function(a){this.M1||(this.M1=new sC(this.Ta(),this.Z));this.M1.uya(a)};q.SD=function(a,b,c,e){this.Un=a;this.Tn=b;this.ep=c;this.cp=e};
q.HP=function(){if(this.dispatchEvent(ff)){try{this.Fq=this.j().K().activeElement}catch(a){}this.WC();this.ha();this.A().listen(this.j().getWindow(),Om,this.WC).listen(this.j().getWindow(),fl,this.l4);this.D7(!0);this.focus();this.Cb=!0;this.Un&&this.ep?(Ou(this.Un,eh,this.Hc,!1,this),this.ep.play(),this.Un.play()):this.Hc()}};
q.sq=function(){this.dispatchEvent(ef)&&(this.A().ta(this.j().getWindow(),Om,this.WC).ta(this.j().getWindow(),fl,this.l4),this.Cb=!1,this.Tn&&this.cp?(Ou(this.Tn,eh,this.Ng,!1,this),this.cp.play(),this.Tn.play()):this.Ng(),this.gxa())};q.gxa=function(){try{var a=this.j(),b=a.K().body,c=a.K().activeElement||b;if(!this.Fq||this.Fq==b){this.Fq=null;return}(c==b||a.contains(this.b(),c))&&this.Fq.focus()}catch(e){}this.Fq=null};
q.D7=function(a){this.Vd&&R(this.Vd,a);this.Te&&R(this.Te,a);R(this.b(),a);R(this.Kc,a)};q.Hc=function(){this.dispatchEvent(Cn)};q.Ng=function(){this.D7(!1);this.dispatchEvent(zi)};q.N=function(){return this.Cb};q.focus=function(){this.ZW()};
q.WC=function(){this.Vd&&R(this.Vd,!1);this.Te&&R(this.Te,!1);var a=this.j().K(),b=hy(ky(a)||window),c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.Vd&&(R(this.Vd,!0),$z(this.Vd,c,a));this.Te&&(R(this.Te,!0),$z(this.Te,c,a))};
q.ha=function(){var a=this.j().K(),b=ky(a)||window;if(Iz(this.b())==yh)var c=a=0;else c=this.j().Df(),a=c.x,c=c.y;var e=aA(this.b());b=hy(b);a=Math.max(a+b.width/2-e.width/2,0);c=Math.max(c+b.height/2-e.height/2,0);Kz(this.b(),a,c);Kz(this.Kc,a,c)};q.Cta=function(a){this.sm?this.Wv():a.target==this.Kc&&M(this.ZW,0,this)};q.ZW=function(){try{E&&this.j().K().body.focus(),this.b().focus()}catch(a){}};
q.o=function(){G(this.Un);this.Un=null;G(this.Tn);this.Tn=null;G(this.ep);this.ep=null;G(this.cp);this.cp=null;uC.c.o.call(this)};var wC=function(a,b,c){uC.call(this,b,c);this.se=a||"modal-dialog";this.Wb=vC()};B(wC,uC);q=wC.prototype;q.PH=!0;q.Du=!0;q.cM=!0;q.Ny=!0;q.Ux=.5;q.Xc="";q.uc=null;q.ud=null;q.we=!1;q.Re=null;q.le=null;q.tE=null;q.Ud=null;q.Pb=null;q.qd=null;q.Lv=Bg;q.S=function(){return this.se};q.fb=function(a){this.Xc=a;this.le&&Gy(this.le,a)};q.Pd=function(){return this.Xc};q.bg=function(a){this.Dw(lx(a))};q.Dw=function(a){this.uc=a;this.Pb&&Ox(this.Pb,a)};q.zb=function(){return null!=this.uc?ix(this.uc):""};
q.Zk=function(){return this.Lv};q.RO=function(a){this.Lv=a};q.co=function(){this.b()||this.render()};q.J=function(){this.co();return this.Pb};q.dn=function(){this.co();return this.Re};q.Mka=function(){this.co();return this.le};q.ou=function(){this.co();return this.Ud};q.aia=function(){this.co();return this.qd};q.Dj=function(){this.co();return this.b()};q.Rk=function(){this.co();return wC.c.Rk.call(this)};q.ZN=function(a){this.Ux=a;this.b()&&(a=this.Rk())&&cA(a,this.Ux)};
q.o6=function(a){a!=this.cM&&this.p6(a)};q.p6=function(a){this.cM=a;if(this.V){var b=this.j(),c=this.Rk(),e=this.Vd;a?(e&&b.Su(e,this.b()),b.Su(c,this.b())):(b.removeNode(e),b.removeNode(c))}this.N()&&this.RN(a)};q.jia=function(){return this.S()};q.aza=function(a){this.Ny=a;this.hO(a&&this.V)};q.jea=function(){return new nC(this.b(),this.Re)};
q.hO=function(a){var b=cr(this.se+"-title-draggable").split(" ");this.b()&&(a?cC(C(this.Re),b):eC(C(this.Re),b));a&&!this.ud?(this.ud=this.jea(),cC(C(this.Re),b),I(this.ud,Oo,this.gO,!1,this)):!a&&this.ud&&(this.ud.dispose(),this.ud=null)};
q.g=function(){wC.c.g.call(this);var a=this.b();C(a,"getElement() returns null");var b=this.j();this.Re=b.g(d,this.se+"-title",this.le=b.g(gd,{className:this.se+"-title-text",id:this.getId()},this.Xc),this.Ud=b.g(gd,this.se+"-title-close"));sy(a,this.Re,this.Pb=b.g(d,this.se+Ia),this.qd=b.g(d,this.se+"-buttons"));MB(this.le,"heading");MB(this.Ud,mf);My(this.Ud,!0);TB(this.Ud,bc);this.tE=this.le.id;MB(a,this.Zk());T(a,Dj,this.tE||"");this.uc&&Ox(this.Pb,this.uc);R(this.Ud,this.Du);this.Wb&&this.Wb.KF(this.qd);
R(this.qd,!!this.Wb);this.ZN(this.Ux)};
q.Ka=function(a){wC.c.Ka.call(this,a);a=this.b();C(a,"The DOM element for dialog cannot be null.");var b=this.se+Ia;this.Pb=by(null,b,a)[0];this.Pb||(this.Pb=this.j().g(d,b),this.uc&&Ox(this.Pb,this.uc),a.appendChild(this.Pb));b=this.se+"-title";var c=this.se+"-title-text",e=this.se+"-title-close";(this.Re=by(null,b,a)[0])?(this.le=by(null,c,this.Re)[0],this.Ud=by(null,e,this.Re)[0]):(this.Re=this.j().g(d,b),a.insertBefore(this.Re,this.Pb));this.le?(this.Xc=Oy(this.le),this.le.id||(this.le.id=this.getId())):
(this.le=my(gd,{className:c,id:this.getId()}),this.Re.appendChild(this.le));this.tE=this.le.id;T(a,Dj,this.tE||"");this.Ud||(this.Ud=this.j().g(gd,e),this.Re.appendChild(this.Ud));R(this.Ud,this.Du);b=this.se+"-buttons";(this.qd=by(null,b,a)[0])?(this.Wb=new xC(this.j()),this.Wb.R(this.qd)):(this.qd=this.j().g(d,b),a.appendChild(this.qd),this.Wb&&this.Wb.KF(this.qd),R(this.qd,!!this.Wb));this.ZN(this.Ux)};
q.B=function(){wC.c.B.call(this);this.A().listen(this.b(),zj,this.Nn).listen(this.b(),Aj,this.Nn);this.A().listen(this.qd,Bf,this.lta);this.hO(this.Ny);this.A().listen(this.Ud,Bf,this.eua);var a=this.b();C(a,"The DOM element for dialog cannot be null");MB(a,this.Zk());""!==this.le.id&&T(a,Dj,this.le.id);this.cM||this.p6(!1)};q.Pa=function(){this.N()&&this.C(!1);this.hO(!1);wC.c.Pa.call(this)};q.C=function(a){a!=this.N()&&(this.V||this.render(),wC.c.C.call(this,a))};
q.Hc=function(){wC.c.Hc.call(this);this.dispatchEvent(ie)};q.Ng=function(){wC.c.Ng.call(this);this.dispatchEvent(he);this.we&&this.dispose()};q.gO=function(){var a=this.j().K(),b=hy(ky(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var e=aA(this.b());Iz(this.b())==yh?this.ud.BO(new Cz(0,0,Math.max(0,b.width-e.width),Math.max(0,b.height-e.height))):this.ud.BO(new Cz(0,0,c-e.width,a-e.height))};q.eua=function(){this.IJ()};
q.IJ=function(){if(this.Du){var a=this.Wb,b=a&&a.ci;b?(a=a.get(b),this.dispatchEvent(new yC(b,a))&&this.C(!1)):this.C(!1)}};q.tO=function(a){this.Du=a;this.Ud&&R(this.Ud,this.Du)};q.oO=function(a){this.PH=a};q.Ni=function(a){this.we=a};q.MI=function(){return this.we};q.o=function(){this.qd=this.Ud=null;wC.c.o.call(this)};q.Ph=function(a){this.Wb=a;this.qd&&(this.Wb?this.Wb.KF(this.qd):Ox(this.qd,yx),R(this.qd,!!this.Wb))};
q.lta=function(a){if((a=this.Sga(a.target))&&!a.disabled){a=a.name;var b=this.Wb.get(a);this.dispatchEvent(new yC(a,b))&&this.C(!1)}};q.Sga=function(a){for(;null!=a&&a!=this.qd;){if(a.tagName==Mb)return a;a=a.parentNode}return null};
q.Nn=function(a){var b=!1,c=!1,e=this.Wb,f=a.target;if(a.type==zj)if(this.PH&&27==a.keyCode){var g=e&&e.ci;f=f.tagName==fd&&!f.disabled;g&&!f?(c=!0,b=e.get(g),b=this.dispatchEvent(new yC(g,b))):f||(b=!0)}else 9==a.keyCode&&a.shiftKey&&f==this.b()&&this.j7();else if(13==a.keyCode){if(f.tagName==Mb&&!f.disabled)g=f.name;else if(f==this.Ud)this.IJ();else if(e){var h=e.qj,l=h&&e.Cj(h);f=(f.tagName==yd||f.tagName==fd||"A"==f.tagName)&&!f.disabled;!l||l.disabled||f||(g=h)}g&&e&&(c=!0,b=this.dispatchEvent(new yC(g,
String(e.get(g)))))}else f==this.Ud&&32==a.keyCode&&this.IJ();if(b||c)a.stopPropagation(),a.preventDefault();b&&this.C(!1)};var yC=function(a,b){this.type=Cg;this.key=a;this.caption=b};B(yC,H);var xC=function(a){this.Z=a||N();L.call(this)},zC,AC;B(xC,L);q=xC.prototype;q.se="goog-buttonset";q.qj=null;q.D=null;q.ci=null;q.clear=function(){L.prototype.clear.call(this);this.qj=this.ci=null};q.set=function(a,b,c,e){L.prototype.set.call(this,a,b);c&&(this.qj=a);e&&(this.ci=a);return this};
q.Gd=function(a,b,c){return this.set(a.key,a.caption,b,c)};q.KF=function(a){this.D=a;this.render()};q.render=function(){if(this.D){Ox(this.D,yx);var a=N(this.D);this.forEach(function(b,c){b=a.g(Mb,{name:c},b);c==this.qj&&(b.className=this.se+Ja);this.D.appendChild(b)},this)}};q.R=function(a){if(a&&1==a.nodeType){this.D=a;a=$x(Mb,this.D);for(var b=0,c,e,f;c=a[b];b++)if(e=c.name||c.id,f=Oy(c)||c.value,e){var g=0==b;this.set(e,f,g,c.name==qf);g&&U(c,this.se+Ja)}}};q.b=function(){return this.D};q.j=function(){return this.Z};
q.Cj=function(a){for(var b=this.jX(),c=0,e;e=b[c];c++)if(e.name==a||e.id==a)return e;return null};q.jX=function(){return $x(Mb,C(this.D))};q.jya=function(a){for(var b=this.jX(),c=0,e;e=b[c];c++)e.disabled=!a};
var BC={wR:Lk,Mo:qf,eNa:"yes",rJa:"no",HKa:"save",aGa:jg},CC={key:Lk,caption:"OK"},DC={key:qf,caption:Yb},EC={key:"yes",caption:"Yes"},FC={key:"no",caption:"No"},GC={key:"save",caption:hd},HC={key:jg,caption:"Continue"},IC=function(){return(new xC).Gd(CC,!0,!0)},vC=function(){return(new xC).Gd(CC,!0).Gd(DC,!1,!0)};"undefined"!=typeof document&&(zC=IC(),AC=vC(),(new xC).Gd(EC,!0).Gd(FC,!1,!0),(new xC).Gd(EC).Gd(FC,!0).Gd(DC,!1,!0),(new xC).Gd(HC).Gd(GC).Gd(DC,!0,!0));var JC=function(a,b,c,e){J.call(this);this.Z=c||N();this.Fp=a;this.Wf=[];this.cDa=b?b:0;this.O9=!!e;this.pj()};B(JC,J);q=JC.prototype;
q.pj=function(){this.Fp.className="goog-tabpane";var a=this.hia();this.We=this.Z.g("UL",{className:"goog-tabpane-tabs",tabIndex:"0"});this.Oc=this.Z.g(d,"goog-tabpane-cont");this.Fp.appendChild(this.Oc);var b=Ur(this.Fp);switch(this.cDa){case 0:b.insertBefore(this.We,this.Oc);b.insertBefore(this.vU(),this.Oc);U(b,"goog-tabpane-top");break;case 1:b.appendChild(this.We);b.appendChild(this.vU());U(b,"goog-tabpane-bottom");break;case 2:b.insertBefore(this.We,this.Oc);U(b,"goog-tabpane-left");break;case 3:b.insertBefore(this.We,
this.Oc);U(b,"goog-tabpane-right");break;default:throw Error("Invalid tab location");}this.We.tabIndex=0;I(this.We,this.O9?nk:Bf,this.dC,!1,this);I(this.We,zj,this.eC,!1,this);this.Aea(a)};
q.vU=function(){var a={clear:"both",height:"0",overflow:yi};if(rr(".goog-tabpane-clear","<"))throw Error("Selector does not allow '<', got: .goog-tabpane-clear");var b=".goog-tabpane-clear".replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(b))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: .goog-tabpane-clear");a:{for(var c={"(":")","[":"]"},e=[],f=0;f<b.length;f++){var g=b[f];if(c[g])e.push(c[g]);else if(Ss(c,g)&&
e.pop()!=g){b=!1;break a}}b=0==e.length}if(!b)throw Error("() and [] in selector must be balanced, got: .goog-tabpane-clear");a instanceof Sw||(a=Ww(a));a=".goog-tabpane-clear{"+Tw(a)+"}";a=(new bx).Rj(a);b=N(void 0);c=b.K();E&&c.createStyleSheet?(b=c.createStyleSheet(),eA(b,a)):(c=b.ri("HEAD")[0],c||(e=b.ri("BODY")[0],c=b.g("HEAD"),e.parentNode.insertBefore(c,e)),e=b.g("STYLE"),eA(e,a),b.appendChild(c,e));return this.Z.g(d,"goog-tabpane-clear")};
q.o=function(){JC.c.o.call(this);Vu(this.We,this.O9?nk:Bf,this.dC,!1,this);Vu(this.We,zj,this.eC,!1,this);delete this.Fp;this.Oc=this.We=null};q.hia=function(){for(var a=[],b=By(this.Fp);b;)a.push(b),b=Cy(b);return a};q.Aea=function(a){for(var b,c=0;b=a[c];c++)this.qs(new KC(b))};
q.qs=function(a,b){a.ea&&a.ea!=this&&a.ea instanceof JC&&a.ea.qwa(a);var c=this.Wf.length;u(b)&&b!=c?(c=b,this.Wf.splice(c,0,a),this.We.insertBefore(a.Lk,this.We.childNodes[c])):(this.Wf.push(a),this.We.appendChild(a.Lk));a.Cw(this,c);this.he||(this.he=a,this.dispatchEvent(new LC(tf,this,this.he)));this.Oc.appendChild(a.Oc);a.nP(a==this.he);for(b=c+1;a=this.Wf[b];b++)a.xn=b};
q.qwa=function(a){Hq(a)&&(a=this.Wf[a]);this.Wf.splice(a.xn,1);a.Cw(null);xy(a.Lk);xy(a.Oc);for(var b=0;a=this.Wf[b];b++)a.Cw(this,b)};q.Yk=function(a){return this.Wf[a]};q.WO=function(a){!a.isEnabled()||this.he&&a==this.he||(this.he.nP(!1),a.nP(!0),this.he=a,this.dispatchEvent(new LC(tf,this,this.he)))};q.kf=function(a){0<=a&&a<this.Wf.length&&this.WO(this.Wf[a])};q.yg=function(){return this.he?this.he.xn:-1};q.J=function(){return this.Oc||null};q.b=function(){return this.Fp||null};
q.dC=function(a){for(var b=a.target;b!=this.We;){if("LI"==b.tagName){var c;for(c=0;b=b.previousSibling;c++);this.kf(c);break}b=b.parentNode}a.preventDefault()};q.eC=function(a){if(!(a.altKey||a.metaKey||a.ctrlKey))switch(a.keyCode){case 37:a=this.he.xn-1;this.kf(0>a?this.Wf.length-1:a);break;case 39:a=this.he.xn+1;this.kf(a>=this.Wf.length?0:a);break;case 36:this.kf(0);break;case 35:this.kf(this.Wf.length-1)}};
var KC=function(a,b,c){var e=null;if(v(a)&&!u(b))e=a;else if(b){e=b;var f=a}else if(a){if(b=By(a))e=Oy(b),b.parentNode.removeChild(b);f=a}this.Z=c||N();this.Oc=f||this.Z.g(d);this.Lk=this.Z.g("LI",null,e);this.xn=this.ea=null;this.cc=!0};q=KC.prototype;q.Pd=function(){return Oy(this.Lk)};q.fb=function(a){Gy(this.Lk,a)};q.dn=function(){return this.Lk};q.J=function(){return this.Oc};q.getParent=function(){return this.ea};q.select=function(){this.ea&&this.ea.WO(this)};
q.U=function(a){this.cc=a;this.Lk.className=a?ki:"goog-tabpane-tab-disabled"};q.isEnabled=function(){return this.cc};q.nP=function(a){this.isEnabled()&&(this.Oc.style.display=a?"":Ek,this.Lk.className=a?"goog-tabpane-tab-selected":ki)};q.Cw=function(a,b){this.ea=a;this.xn=u(b)?b:null};var LC=function(a,b,c){H.call(this,a,b);this.page=c};B(LC,H);var MC=function(a,b){J.call(this);a&&this.pd(a,b)};B(MC,J);q=MC.prototype;q.D=null;q.fB=null;q.kL=null;q.gB=null;q.Gg=-1;q.Vj=-1;q.FF=!1;
var NC={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},OC={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},PC=E||wt||zt&&Qt("525"),QC=Bt&&yt;q=MC.prototype;
q.Ah=function(a){(zt||wt)&&(17==this.Gg&&!a.ctrlKey||18==this.Gg&&!a.altKey||Bt&&91==this.Gg&&!a.metaKey)&&this.i4();-1==this.Gg&&(a.ctrlKey&&17!=a.keyCode?this.Gg=17:a.altKey&&18!=a.keyCode?this.Gg=18:a.metaKey&&91!=a.keyCode&&(this.Gg=91));PC&&!kB(a.keyCode,this.Gg,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?this.handleEvent(a):(this.Vj=jB(a.keyCode),QC&&(this.FF=a.altKey))};q.i4=function(){this.Vj=this.Gg=-1};q.Hma=function(a){this.i4();this.FF=a.altKey};
q.handleEvent=function(a){var b=a.bd,c=b.altKey;if(E&&a.type==Aj){var e=this.Vj;var f=13!=e&&27!=e?b.keyCode:0}else(zt||wt)&&a.type==Aj?(e=this.Vj,f=0<=b.charCode&&63232>b.charCode&&iB(e)?b.charCode:0):vt&&!zt?(e=this.Vj,f=iB(e)?b.keyCode:0):(e=b.keyCode||this.Vj,f=b.charCode||0,QC&&(c=this.FF),Bt&&63==f&&224==e&&(e=191));var g=e=jB(e);e?63232<=e&&e in NC?g=NC[e]:25==e&&a.shiftKey&&(g=9):b.keyIdentifier&&b.keyIdentifier in OC&&(g=OC[b.keyIdentifier]);a=g==this.Gg;this.Gg=g;b=new RC(g,f,a,b);b.altKey=
c;this.dispatchEvent(b)};q.b=function(){return this.D};q.pd=function(a,b){this.gB&&this.detach();this.D=a;this.fB=I(this.D,Aj,this,b);this.kL=I(this.D,zj,this.Ah,b,this);this.gB=I(this.D,Bj,this.Hma,b,this)};q.detach=function(){this.fB&&(Wu(this.fB),Wu(this.kL),Wu(this.gB),this.gB=this.kL=this.fB=null);this.D=null;this.Vj=this.Gg=-1};q.o=function(){MC.c.o.call(this);this.detach()};var RC=function(a,b,c,e){Cu.call(this,e);this.type=yj;this.keyCode=a;this.charCode=b;this.repeat=c};B(RC,Cu);var SC=function(){};SC.prototype.ha=function(){};var TC=function(a,b,c){this.element=a;this.Dk=b;this.Aua=c};B(TC,SC);TC.prototype.ha=function(a,b,c){HB(this.element,this.Dk,a,b,void 0,c,this.Aua)};var UC=function(a,b,c,e){TC.call(this,a,b);this.En=c?5:0;this.IM=e||void 0};B(UC,TC);UC.prototype.jja=function(){return this.En};UC.prototype.yr=function(a){this.En=a};UC.prototype.ha=function(a,b,c,e){var f=HB(this.element,this.Dk,a,b,null,c,10,e,this.IM);if(f&496){var g=this.Hx(f,this.Dk);b=this.Hx(f,b);f=HB(this.element,g,a,b,null,c,10,e,this.IM);f&496&&(g=this.Hx(f,g),b=this.Hx(f,b),HB(this.element,g,a,b,null,c,this.En,e,this.IM))}};UC.prototype.Hx=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b};var VC=function(a,b){this.Ck=a instanceof Tx?a:new Tx(a,b)};B(VC,SC);VC.prototype.ha=function(a,b,c,e){C(a);var f=Zx(a);var g=f.body;f=f.documentElement;f=new Tx(g.scrollLeft||f.scrollLeft,g.scrollTop||f.scrollTop);g=this.Ck.x+f.x;f=this.Ck.y+f.y;var h=EB(a);g-=h.x;f-=h.y;GB(new Tx(g,f),a,b,c,null,null,e)};var WC=function(a,b,c,e){UC.call(this,a,b,c||e);(c||e)&&this.yr(65|(e?32:132))};B(WC,UC);var XC=function(a,b){VC.call(this,a,b)};B(XC,VC);XC.prototype.En=0;XC.prototype.yr=function(a){this.En=a};XC.prototype.ha=function(a,b,c,e){var f=Mz(a);f=Qz(f);var g=N(a).AX();g=new Tx(this.Ck.x+g.scrollLeft,this.Ck.y+g.scrollTop);var h=b,l=GB(g,a,h,c,f,10,e);if(0!=(l&496)){if(l&16||l&32)h^=4;if(l&64||l&128)h^=1;l=GB(g,a,h,c,f,10,e);0!=(l&496)&&GB(g,a,b,c,f,this.En,e)}};var ZC=function(a,b){if(!a)throw Error("Invalid class name "+a);if(!Nq(b))throw Error("Invalid decorator function "+b);YC[a]=b},$C={},YC={};var aD=function(a){this.rm=a};Kq(aD);var bD=function(a,b){a=new a;a.S=function(){return b};return a};q=aD.prototype;q.wd=function(){return this.rm};q.IH=function(a,b){a&&(a.tabIndex=b?0:-1)};q.g=function(a){return a.j().g(d,this.Zd(a).join(" "))};q.J=function(a){return a};q.tc=function(a){return a.tagName==d};q.R=function(a,b){b.id&&a.BD(b.id);var c=this.S(),e=!1,f=$B(b);f&&D(f,function(b){b==c?e=!0:b&&this.cP(a,b,c)},this);e||U(b,c);this.iV(a,this.J(b));return b};
q.cP=function(a,b,c){b==c+Ka?a.U(!1):b==c+"-horizontal"?a.setOrientation(Ci):b==c+"-vertical"&&a.setOrientation(Up)};q.iV=function(a,b,c){if(b){c=c||b.firstChild;for(var e;c&&c.parentNode==b;){e=c.nextSibling;if(1==c.nodeType){var f=this.Xt(c);f&&(f.Na(c),a.isEnabled()||f.U(!1),a.ca(f),f.R(c))}else c.nodeValue&&""!=cr(c.nodeValue)||b.removeChild(c);c=e}}};q.Xt=function(a){a:{C(a);a=$B(a);for(var b=0,c=a.length;b<c;b++){var e=a[b];if(e=e in YC?YC[e]():null){a=e;break a}}a=null}return a};
q.Bd=function(a){a=a.b();C(a,"The container DOM element cannot be null.");hA(a,!0,yt);E&&(a.hideFocus=!0);var b=this.wd();b&&MB(a,b)};q.Zb=function(a){return a.b()};q.S=function(){return"goog-container"};q.Zd=function(a){var b=this.S(),c=[b,a.Sc==Ci?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+Ka);return c};q.vX=function(){return Up};var cD=function(){},dD;Kq(cD);var eD=function(a,b){a=new a;a.S=function(){return b};return a},fD={button:"pressed",checkbox:yf,menuitem:hn,menuitemcheckbox:yf,menuitemradio:yf,radio:yf,tab:hn,treeitem:hn};q=cD.prototype;q.wd=function(){};q.g=function(a){return a.j().g(d,this.Zd(a).join(" "),a.zb())};q.J=function(a){return a};q.Gp=function(a,b,c){if(a=a.b?a.b():a){var e=[b];E&&!Qt("7")&&(e=this.zI($B(a),b),e.push(b));(c?cC:eC)(a,e)}};q.dW=function(a,b,c){this.Gp(a,b,c)};q.tc=function(){return!0};
q.R=function(a,b){b.id&&a.BD(b.id);var c=this.J(b);c&&c.firstChild?a.sr(c.firstChild.nextSibling?rs(c.childNodes):c.firstChild):a.sr(null);var e=0,f=this.S(),g=this.If(),h=!1,l=!1,p=!1,r=rs($B(b));D(r,function(a){h||a!=f?l||a!=g?e|=this.bA(a):l=!0:(h=!0,g==f&&(l=!0));1==this.bA(a)&&(Ur(c),Ly(c)&&My(c,!1))},this);a.dP(e);h||(r.push(f),g==f&&(l=!0));l||r.push(g);(a=a.uh)&&r.push.apply(r,a);if(E&&!Qt("7")){var z=this.zI(r);0<z.length&&(r.push.apply(r,z),p=!0)}h&&l&&!a&&!p||aC(b,r.join(" "));return b};
q.Bd=function(a){a.Eh()&&this.oo(a.b(),!0);a.isEnabled()&&this.Me(a,a.N())};q.XN=function(a,b){if(b=b||this.wd()){C(a,Dd);var c=a.getAttribute(Qm)||null;b!=c&&MB(a,b)}};q.s5=function(a,b){C(a);C(b);var c=a.Px;null!=c&&this.WN(b,c);a.N()||T(b,yi,!a.N());a.isEnabled()||this.Wi(b,1,!a.isEnabled());a.pb(8)&&this.Wi(b,8,a.Rd());a.pb(16)&&this.Wi(b,16,a.bf());a.pb(64)&&this.Wi(b,64,a.Qd())};q.WN=function(a,b){TB(a,b)};q.qr=function(a,b){hA(a,!b,!E&&!vt)};q.oo=function(a,b){this.Gp(a,this.If()+"-rtl",b)};
q.Uj=function(a){var b;return a.pb(32)&&(b=a.Zb())?Ly(b):!1};q.Me=function(a,b){var c;if(a.pb(32)&&(c=a.Zb())){if(!b&&a.RA()){try{c.blur()}catch(e){}a.RA()&&a.af(null)}Ly(c)!=b&&My(c,b)}};q.C=function(a,b){R(a,b);a&&T(a,yi,!b)};q.setState=function(a,b,c){var e=a.b();if(e){var f=this.Wm(b);f&&this.Gp(a,f,c);this.Wi(e,b,c)}};q.Wi=function(a,b,c){dD||(dD={1:Dg,8:hn,16:yf,64:lh});C(a,Dd);b=dD[b];var e=a.getAttribute(Qm)||null;e&&(e=fD[e]||b,b=b==yf||b==hn?e:b);b&&T(a,b,c)};
q.eb=function(a,b){var c=this.J(a);c&&(ty(c),b&&(v(b)?Gy(c,b):(a=function(a){if(a){var b=Zx(c);c.appendChild(v(a)?b.createTextNode(a):a)}},x(b)?D(b,a):!Mq(b)||"nodeType"in b?a(b):D(rs(b),a))))};q.Zb=function(a){return a.b()};q.S=function(){return Th};q.RX=function(){return[]};q.If=function(){return this.S()};q.Zd=function(a){var b=this.S(),c=[b],e=this.If();e!=b&&c.push(e);b=this.kia(a.getState());c.push.apply(c,b);(a=a.uh)&&c.push.apply(c,a);E&&!Qt("7")&&c.push.apply(c,this.zI(c));return c};
q.zI=function(a,b){var c=[];b&&(a=qs(a,[b]));D(this.RX(),function(e){!ds(e,Wq(is,a))||b&&!is(e,b)||c.push(e.join("_"))});return c};q.kia=function(a){for(var b=[];a;){var c=a&-a;b.push(this.Wm(c));a&=~c}return b};q.Wm=function(a){this.gy||this.uU();return this.gy[a]};q.bA=function(a){this.o8||this.Iea();a=parseInt(this.o8[a],10);return isNaN(a)?0:a};
q.uU=function(){var a=this.If(),b=!rr(a.replace(/\xa0|\s/g," ")," ");C(b,"ControlRenderer has an invalid css class: '"+a+"'");this.gy={1:a+Ka,2:a+"-hover",4:a+"-active",8:a+"-selected",16:a+"-checked",32:a+"-focused",64:a+"-open"}};q.Iea=function(){this.gy||this.uU();this.o8=Zs(this.gy)};var gD=function(a,b,c){V.call(this,c);if(!b){b=this.constructor;for(var e;b;){e=Rq(b);if(e=$C[e])break;b=b.c?b.c.constructor:null}b=e?Nq(e.H)?e.H():new e:null}this.M=b;this.sr(u(a)?a:null);this.Px=null};B(gD,V);q=gD.prototype;q.uc=null;q.oa=0;q.Yw=39;q.Sx=255;q.iE=0;q.Cb=!0;q.uh=null;q.jn=!0;q.Mx=!1;q.Lv=null;q.AD=function(a){this.V&&a!=this.jn&&this.gW(a);this.jn=a};q.Zb=function(){return this.M.Zb(this)};q.eu=function(){return this.rb||(this.rb=new MC)};
q.wk=function(a){a&&(this.uh?is(this.uh,a)||this.uh.push(a):this.uh=[a],this.M.dW(this,a,!0))};q.iN=function(a){a&&this.uh&&os(this.uh,a)&&(0==this.uh.length&&(this.uh=null),this.M.dW(this,a,!1))};q.Gp=function(a,b){b?this.wk(a):this.iN(a)};q.g=function(){var a=this.M.g(this);this.Na(a);this.M.XN(a,this.Zk());this.Mx||this.M.qr(a,!1);this.N()||this.M.C(a,!1)};q.Zk=function(){return this.Lv};q.RO=function(a){this.Lv=a};q.WN=function(a){this.Px=a;var b=this.b();b&&this.M.WN(b,a)};q.J=function(){return this.M.J(this.b())};
q.tc=function(a){return this.M.tc(a)};q.Ka=function(a){a=this.M.R(this,a);this.Na(a);this.M.XN(a,this.Zk());this.Mx||this.M.qr(a,!1);this.Cb=a.style.display!=Ek};q.B=function(){gD.c.B.call(this);this.M.s5(this,this.Ta());this.M.Bd(this);if(this.Yw&-2&&(this.jn&&this.gW(!0),this.pb(32))){var a=this.Zb();if(a){var b=this.eu();b.pd(a);this.A().listen(b,yj,this.ec).listen(a,zh,this.Be).listen(a,hf,this.af)}}};
q.gW=function(a){var b=this.A(),c=this.b();a?(b.listen(c,qk,this.Bg).listen(c,nk,this.Qc).listen(c,rk,this.Kf).listen(c,pk,this.xu),this.su!=Jq&&b.listen(c,ig,this.su),E&&(Qt(9)||b.listen(c,vg,this.YY),this.Ju||(this.Ju=new hD(this),this.Y(this.Ju)))):(b.ta(c,qk,this.Bg).ta(c,nk,this.Qc).ta(c,rk,this.Kf).ta(c,pk,this.xu),this.su!=Jq&&b.ta(c,ig,this.su),E&&(Qt(9)||b.ta(c,vg,this.YY),G(this.Ju),this.Ju=null))};
q.Pa=function(){gD.c.Pa.call(this);this.rb&&this.rb.detach();this.N()&&this.isEnabled()&&this.M.Me(this,!1)};q.o=function(){gD.c.o.call(this);this.rb&&(this.rb.dispose(),delete this.rb);delete this.M;this.Ju=this.uh=this.uc=null};q.zb=function(){return this.uc};q.eb=function(a){this.M.eb(this.b(),a);this.sr(a)};q.sr=function(a){this.uc=a};q.pi=function(){var a=this.zb();if(!a)return"";a=v(a)?a:x(a)?as(a,Py).join(""):Oy(a);return br(a)};q.uD=function(a){this.eb(a)};
q.oo=function(a){gD.c.oo.call(this,a);var b=this.b();b&&this.M.oo(b,a)};q.qr=function(a){this.Mx=a;var b=this.b();b&&this.M.qr(b,a)};q.N=function(){return this.Cb};q.C=function(a,b){return b||this.Cb!=a&&this.dispatchEvent(a?Cn:zi)?((b=this.b())&&this.M.C(b,a),this.isEnabled()&&this.M.Me(this,a),this.Cb=a,!0):!1};q.isEnabled=function(){return!this.Cg(1)};q.Oqa=function(){var a=this.getParent();return!!a&&typeof a.isEnabled==Ih&&!a.isEnabled()};
q.U=function(a){!this.Oqa()&&this.An(1,!a)&&(a||(this.setActive(!1),this.Jc(!1)),this.N()&&this.M.Me(this,a),this.setState(1,!a,!0))};q.OK=function(){return this.Cg(2)};q.Jc=function(a){this.An(2,a)&&this.setState(2,a)};q.Rb=function(){return this.Cg(4)};q.setActive=function(a){this.An(4,a)&&this.setState(4,a)};q.Rd=function(){return this.Cg(8)};q.ag=function(a){this.An(8,a)&&this.setState(8,a)};q.bf=function(){return this.Cg(16)};q.ke=function(a){this.An(16,a)&&this.setState(16,a)};q.RA=function(){return this.Cg(32)};
q.mo=function(a){this.An(32,a)&&this.setState(32,a)};q.Qd=function(){return this.Cg(64)};q.Hb=function(a){this.An(64,a)&&this.setState(64,a)};q.getState=function(){return this.oa};q.Cg=function(a){return!!(this.oa&a)};q.setState=function(a,b,c){c||1!=a?this.pb(a)&&b!=this.Cg(a)&&(this.M.setState(this,a,b),this.oa=b?this.oa|a:this.oa&~a):this.U(!b)};q.dP=function(a){this.oa=a};q.pb=function(a){return!!(this.Yw&a)};
q.tb=function(a,b){if(this.V&&this.Cg(a)&&!b)throw Error(cc);!b&&this.Cg(a)&&this.setState(a,!1);this.Yw=b?this.Yw|a:this.Yw&~a};q.Lf=function(a){return!!(this.Sx&a)&&this.pb(a)};q.sD=function(a,b){this.Sx=b?this.Sx|a:this.Sx&~a};q.sw=function(a,b){this.iE=b?this.iE|a:this.iE&~a};q.An=function(a,b){return this.pb(a)&&this.Cg(a)!=b&&(!(this.iE&a)||this.dispatchEvent(rC(a,b)))&&!this.isDisposed()};q.Bg=function(a){!iD(a,this.b())&&this.dispatchEvent(fh)&&this.isEnabled()&&this.Lf(2)&&this.Jc(!0)};
q.xu=function(a){!iD(a,this.b())&&this.dispatchEvent("leave")&&(this.Lf(4)&&this.setActive(!1),this.Lf(2)&&this.Jc(!1))};q.su=Jq;var iD=function(a,b){return!!a.relatedTarget&&Ey(b,a.relatedTarget)};q=gD.prototype;q.Qc=function(a){this.isEnabled()&&(this.Lf(2)&&this.Jc(!0),a.Yu()&&(this.Lf(4)&&this.setActive(!0),this.M&&this.M.Uj(this)&&this.Zb().focus()));!this.Mx&&a.Yu()&&a.preventDefault()};q.Kf=function(a){this.isEnabled()&&(this.Lf(2)&&this.Jc(!0),this.Rb()&&this.Tc(a)&&this.Lf(4)&&this.setActive(!1))};
q.YY=function(a){this.isEnabled()&&this.Tc(a)};q.Tc=function(a){this.Lf(16)&&this.ke(!this.bf());this.Lf(8)&&this.ag(!0);this.Lf(64)&&this.Hb(!this.Qd());var b=new H(k,this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.yC=a.yC);return this.dispatchEvent(b)};q.Be=function(){this.Lf(32)&&this.mo(!0)};q.af=function(){this.Lf(4)&&this.setActive(!1);this.Lf(32)&&this.mo(!1)};
q.ec=function(a){return this.N()&&this.isEnabled()&&this.wc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};q.wc=function(a){return 13==a.keyCode&&this.Tc(a)};if(!Nq(gD))throw Error("Invalid component class "+gD);if(!Nq(cD))throw Error("Invalid renderer class "+cD);var jD=Rq(gD);$C[jD]=cD;ZC(Th,function(){return new gD(null)});var hD=function(a){F.call(this);this.ty=a;this.jy=!1;this.Ga=new jC(this);this.Y(this.Ga);a=this.ty.Ta();this.Ga.listen(a,nk,this.jA).listen(a,rk,this.bna).listen(a,Bf,this.Jj)};
B(hD,F);var kD=!E||St(9);hD.prototype.jA=function(){this.jy=!1};hD.prototype.bna=function(){this.jy=!0};var lD=function(a,b){if(!kD)return a.button=0,a.type=b,a;var c=document.createEvent("MouseEvents");c.initMouseEvent(b,a.bubbles,a.cancelable,a.view||null,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,a.relatedTarget||null);return c};
hD.prototype.Jj=function(a){if(this.jy)this.jy=!1;else{var b=a.bd,c=b.button,e=b.type,f=lD(b,nk);this.ty.Qc(new Cu(f,a.currentTarget));f=lD(b,rk);this.ty.Kf(new Cu(f,a.currentTarget));kD||(b.button=c,b.type=e)}};hD.prototype.o=function(){this.ty=null;hD.c.o.call(this)};var mD=function(a,b,c){V.call(this,c);this.M=b||aD.H();this.Sc=a||this.M.vX()};B(mD,V);q=mD.prototype;q.lL=null;q.rb=null;q.M=null;q.Sc=null;q.Cb=!0;q.cc=!0;q.nI=!0;q.ib=-1;q.jd=null;q.NB=!1;q.nS=!1;q.E2=!0;q.lj=null;q.Zb=function(){return this.lL||this.M.Zb(this)};q.eu=function(){return this.rb||(this.rb=new MC(this.Zb()))};q.g=function(){this.Na(this.M.g(this))};q.J=function(){return this.M.J(this.b())};q.tc=function(a){return this.M.tc(a)};
q.Ka=function(a){this.Na(this.M.R(this,a));a.style.display==Ek&&(this.Cb=!1)};q.B=function(){mD.c.B.call(this);this.Ia(function(a){a.V&&this.A3(a)},this);var a=this.b();this.M.Bd(this);this.C(this.Cb,!0);this.A().listen(this,fh,this.yJ).listen(this,Ai,this.zJ).listen(this,xp,this.LJ).listen(this,"open",this.jna).listen(this,Cf,this.xJ).listen(a,nk,this.Qc).listen(Zx(a),rk,this.Zla).listen(a,[nk,rk,qk,pk,ig],this.Dla);this.Uj()&&this.eW(!0)};
q.eW=function(a){var b=this.A(),c=this.Zb();a?b.listen(c,zh,this.Be).listen(c,hf,this.af).listen(this.eu(),yj,this.ec):b.ta(c,zh,this.Be).ta(c,hf,this.af).ta(this.eu(),yj,this.ec)};q.Pa=function(){this.oc(-1);this.jd&&this.jd.Hb(!1);this.NB=!1;mD.c.Pa.call(this)};q.o=function(){mD.c.o.call(this);this.rb&&(this.rb.dispose(),this.rb=null);this.M=this.jd=this.lj=this.lL=null};q.yJ=function(){return!0};
q.zJ=function(a){var b=this.De(a.target);if(-1<b&&b!=this.ib){var c=this.Ff();c&&c.Jc(!1);this.ib=b;c=this.Ff();this.NB&&c.setActive(!0);this.E2&&this.jd&&c!=this.jd&&(c.pb(64)?c.Hb(!0):this.jd.Hb(!1))}b=this.b();C(b,Bd);null!=a.target.b()&&T(b,ee,a.target.b().id)};q.LJ=function(a){a.target==this.Ff()&&(this.ib=-1);a=this.b();C(a,Bd);OB(a,ee)};q.jna=function(a){(a=a.target)&&a!=this.jd&&a.getParent()==this&&(this.jd&&this.jd.Hb(!1),this.jd=a)};
q.xJ=function(a){a.target==this.jd&&(this.jd=null);var b=this.b(),c=a.target.b();b&&a.target.OK()&&c&&RB(b,c)};q.Qc=function(a){this.cc&&this.Rl(!0);var b=this.Zb();b&&Ly(b)?b.focus():a.preventDefault()};q.Zla=function(){this.Rl(!1)};q.Dla=function(a){var b=this.Uja(a.target);if(b)switch(a.type){case nk:b.Qc(a);break;case rk:b.Kf(a);break;case qk:b.Bg(a);break;case pk:b.xu(a);break;case ig:b.su(a)}};
q.Uja=function(a){if(this.lj)for(var b=this.b();a&&a!==b;){var c=a.id;if(c in this.lj)return this.lj[c];a=a.parentNode}return null};q.Be=function(){};q.af=function(){this.oc(-1);this.Rl(!1);this.jd&&this.jd.Hb(!1)};q.ec=function(a){return this.isEnabled()&&this.N()&&(0!=this.Xa()||this.lL)&&this.wc(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
q.wc=function(a){var b=this.Ff();if(b&&typeof b.ec==Ih&&b.ec(a)||this.jd&&this.jd!=b&&typeof this.jd.ec==Ih&&this.jd.ec(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.Uj())this.Zb().blur();else return!1;break;case 36:this.Hu();break;case 35:this.cpa();break;case 38:if(this.Sc==Up)this.highlightPrevious();else return!1;break;case 37:if(this.Sc==Ci)this.Eh()?this.highlightNext():this.highlightPrevious();else return!1;break;case 40:if(this.Sc==Up)this.highlightNext();
else return!1;break;case 39:if(this.Sc==Ci)this.Eh()?this.highlightPrevious():this.highlightNext();else return!1;break;default:return!1}return!0};q.A3=function(a){var b=a.b();b=b.id||(b.id=a.getId());this.lj||(this.lj={});this.lj[b]=a};q.ca=function(a,b){Wr(a,gD,"The child of a container must be a control");mD.c.ca.call(this,a,b)};
q.pe=function(a,b,c){Wr(a,gD);a.sw(2,!0);a.sw(64,!0);!this.Uj()&&this.nS||a.tb(32,!1);a.AD(!1);var e=a.getParent()==this?this.De(a):-1;mD.c.pe.call(this,a,b,c);a.V&&this.V&&this.A3(a);this.ZDa(e,b)};q.ZDa=function(a,b){-1==a&&(a=this.Xa());a==this.ib?this.ib=Math.min(this.Xa()-1,b):a>this.ib&&b<=this.ib?this.ib++:a<this.ib&&b>this.ib&&this.ib--};
q.removeChild=function(a,b){a=v(a)?this.Sk(a):a;Wr(a,gD);if(a){var c=this.De(a);-1!=c&&(c==this.ib?(a.Jc(!1),this.ib=-1):c<this.ib&&this.ib--);(c=a.b())&&c.id&&this.lj&&Vs(this.lj,c.id)}a=mD.c.removeChild.call(this,a,b);a.AD(!0);return a};q.setOrientation=function(a){if(this.b())throw Error(cc);this.Sc=a};q.N=function(){return this.Cb};
q.C=function(a,b){if(b||this.Cb!=a&&this.dispatchEvent(a?Cn:zi)){this.Cb=a;var c=this.b();c&&(R(c,a),this.Uj()&&this.M.IH(this.Zb(),this.cc&&this.Cb),b||this.dispatchEvent(this.Cb?ie:he));return!0}return!1};q.isEnabled=function(){return this.cc};q.U=function(a){this.cc!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.cc=!0,this.Ia(function(a){a.g$?delete a.g$:a.U(!0)})):(this.Ia(function(a){a.isEnabled()?a.U(!1):a.g$=!0}),this.cc=!1,this.Rl(!1)),this.Uj()&&this.M.IH(this.Zb(),a&&this.Cb))};
q.Uj=function(){return this.nI};q.Me=function(a){a!=this.nI&&this.V&&this.eW(a);this.nI=a;this.cc&&this.Cb&&this.M.IH(this.Zb(),a)};q.rO=function(a){this.nS=a};q.jAa=function(a){this.E2=a};q.oc=function(a){(a=this.pa(a))?a.Jc(!0):-1<this.ib&&this.Ff().Jc(!1)};q.Jc=function(a){this.oc(this.De(a))};q.Ff=function(){return this.pa(this.ib)};q.Hu=function(){this.tq(function(a,b){return(a+1)%b},this.Xa()-1)};q.cpa=function(){this.tq(function(a,b){a--;return 0>a?b-1:a},0)};
q.highlightNext=function(){this.tq(function(a,b){return(a+1)%b},this.ib)};q.highlightPrevious=function(){this.tq(function(a,b){a--;return 0>a?b-1:a},this.ib)};q.tq=function(a,b){b=0>b?this.De(this.jd):b;var c=this.Xa();b=a.call(this,b,c);for(var e=0;e<=c;){var f=this.pa(b);if(f&&this.by(f))return this.wO(b),!0;e++;b=a.call(this,b,c)}return!1};q.by=function(a){return a.N()&&a.isEnabled()&&a.pb(2)};q.wO=function(a){this.oc(a)};q.Rl=function(a){this.NB=a};var nD=function(){};B(nD,cD);Kq(nD);nD.prototype.S=function(){return ci};var oD=function(a,b,c){gD.call(this,a,c||nD.H(),b);this.tb(1,!1);this.tb(2,!1);this.tb(4,!1);this.tb(32,!1);this.dP(1)};B(oD,gD);ZC(ci,function(){return new oD(null)});var pD=function(){this.lG=[]};B(pD,cD);Kq(pD);q=pD.prototype;q.Pp=function(a){var b=this.lG[a];if(!b){switch(a){case 0:b=this.If()+"-highlight";break;case 1:b=this.If()+"-checkbox";break;case 2:b=this.If()+Ia}this.lG[a]=b}return b};q.wd=function(){return"menuitem"};q.g=function(a){var b=a.j().g(d,this.Zd(a).join(" "),this.wU(a.zb(),a.j()));this.lO(a,b,a.pb(8)||a.pb(16));return b};q.J=function(a){return a&&a.firstChild};
q.R=function(a,b){C(b);this.Loa(b)||b.appendChild(this.wU(b.childNodes,a.j()));bC(b,ei)&&(a.vD(!0),this.vD(a,b,!0));return pD.c.R.call(this,a,b)};q.eb=function(a,b){var c=this.J(a),e=this.OJ(a)?c.firstChild:null;pD.c.eb.call(this,a,b);e&&!this.OJ(a)&&c.insertBefore(e,c.firstChild||null)};q.Loa=function(a){a=By(a);var b=this.Pp(2);return!!a&&bC(a,b)};q.wU=function(a,b){var c=this.Pp(2);return b.g(d,c,a)};q.Fw=function(a,b,c){a&&b&&this.lO(a,b,c)};q.vD=function(a,b,c){a&&b&&this.lO(a,b,c)};
q.OJ=function(a){if(a=this.J(a)){a=a.firstChild;var b=this.Pp(1);return!!a&&Dy(a)&&bC(a,b)}return!1};q.lO=function(a,b,c){this.XN(b,a.Zk());this.s5(a,b);c!=this.OJ(b)&&(fC(b,ei,c),b=this.J(b),c?(c=this.Pp(1),b.insertBefore(a.j().g(d,c),b.firstChild||null)):b.removeChild(b.firstChild))};q.Wm=function(a){switch(a){case 2:return this.Pp(0);case 16:case 8:return fi;default:return pD.c.Wm.call(this,a)}};
q.bA=function(a){var b=this.Pp(0);switch(a){case fi:return 16;case b:return 2;default:return pD.c.bA.call(this,a)}};q.S=function(){return"goog-menuitem"};var qD=function(a,b,c,e){gD.call(this,a,e||pD.H(),c);this.setValue(b)};B(qD,gD);q=qD.prototype;q.getValue=function(){var a=this.$;return null!=a?a:this.pi()};q.setValue=function(a){this.Dc(a)};q.tb=function(a,b){qD.c.tb.call(this,a,b);switch(a){case 8:this.CAa(b);break;case 16:this.Cya(b)}};q.Fw=function(a){this.tb(8,a)};q.CAa=function(a){this.bf()&&!a&&this.ke(!1);var b=this.b();b&&this.M.Fw(this,b,a)};q.vD=function(a){this.tb(16,a)};q.Cya=function(a){var b=this.b();b&&this.M.vD(this,b,a)};
q.pi=function(){var a=this.zb();return x(a)?(a=as(a,function(a){return Dy(a)&&(bC(a,"goog-menuitem-accel")||bC(a,"goog-menuitem-mnemonic-separator"))?"":Py(a)}).join(""),br(a)):qD.c.pi.call(this)};q.Kf=function(a){var b=this.getParent();if(b){var c=b.I2;b.I2=null;if(c&&Hq(a.clientX)&&Ux(c,new Tx(a.clientX,a.clientY)))return}qD.c.Kf.call(this,a)};q.wc=function(a){return a.keyCode==this.bM&&this.Tc(a)?!0:qD.c.wc.call(this,a)};q.Bja=function(){return this.bM};ZC("goog-menuitem",function(){return new qD(null)});
qD.prototype.Zk=function(){return this.pb(16)?fk:this.pb(8)?"menuitemradio":qD.c.Zk.call(this)};qD.prototype.getParent=function(){return gD.prototype.getParent.call(this)};qD.prototype.Zp=function(){return gD.prototype.Zp.call(this)};var rD=function(){};B(rD,cD);Kq(rD);rD.prototype.g=function(a){return a.j().g(d,this.S())};rD.prototype.R=function(a,b){b.id&&a.BD(b.id);if("HR"==b.tagName){var c=b;b=this.g(a);uy(b,c);xy(c)}else U(b,this.S());return b};rD.prototype.eb=function(){};rD.prototype.S=function(){return di};var sD=function(a,b){gD.call(this,null,a||rD.H(),b);this.tb(1,!1);this.tb(2,!1);this.tb(4,!1);this.tb(32,!1);this.dP(1)};B(sD,gD);sD.prototype.B=function(){sD.c.B.call(this);var a=this.b();C(a,"The DOM element for the separator cannot be null.");MB(a,kn)};ZC(di,function(){return new sD});var tD=function(a){this.rm=a||"menu"};B(tD,aD);Kq(tD);q=tD.prototype;q.tc=function(a){return"UL"==a.tagName||tD.c.tc.call(this,a)};q.Xt=function(a){return"HR"==a.tagName?new sD:tD.c.Xt.call(this,a)};q.mg=function(a,b){return Ey(a.b(),b)};q.S=function(){return $h};q.Bd=function(a){tD.c.Bd.call(this,a);a=a.b();C(a,"The menu DOM element cannot be null.");T(a,wi,sp)};var uD=function(a){sD.call(this,rD.H(),a)};B(uD,sD);ZC(di,function(){return new sD});var vD=function(a,b){mD.call(this,Up,b||tD.H(),a);this.Me(!1)};B(vD,mD);q=vD.prototype;q.pm=!0;q.ica=!1;q.S=function(){return this.M.S()};q.mg=function(a){if(this.M.mg(this,a))return!0;for(var b=0,c=this.Xa();b<c;b++){var e=this.pa(b);if(typeof e.mg==Ih&&e.mg(a))return!0}return!1};q.sc=function(a){this.ca(a,!0)};q.om=function(a,b){this.pe(a,b,!0)};q.removeItem=function(a){(a=this.removeChild(a,!0))&&a.dispose()};q.cd=function(a){return this.pa(a)};q.Xk=function(){return this.Xa()};
q.Gj=function(){var a=[];this.Ia(function(b){a.push(b)});return a};q.setPosition=function(a,b){var c=this.N();c||R(this.b(),!0);var e=this.b(),f=Pz(e);a instanceof Tx&&(b=a.y,a=a.x);a=Pr(a)-f.x;Kz(e,e.offsetLeft+a,e.offsetTop+(Number(b)-f.y));c||R(this.b(),!1)};q.getPosition=function(){return this.N()?Pz(this.b()):null};q.Pl=function(a){(this.pm=a)&&this.Me(!0)};
q.C=function(a,b,c){(b=vD.c.C.call(this,a,b))&&a&&this.V&&this.pm&&this.Zb().focus();this.I2=a&&c&&Hq(c.clientX)?new Tx(c.clientX,c.clientY):null;return b};q.yJ=function(a){this.pm&&this.Zb().focus();return vD.c.yJ.call(this,a)};q.by=function(a){return(this.ica||a.isEnabled())&&a.N()&&a.pb(2)};q.Ka=function(a){this.ffa(a);vD.c.Ka.call(this,a)};q.wc=function(a){var b=vD.c.wc.call(this,a);b||this.Ia(function(c){!b&&c.Bja&&c.bM==a.keyCode&&(this.isEnabled()&&this.Jc(c),b=c.ec(a))},this);return b};
q.oc=function(a){vD.c.oc.call(this,a);(a=this.pa(a))&&Uz(a.b(),this.b())};q.ffa=function(a){var b=this.M;a=this.j().ri(d,b.S()+Ia,a);for(var c=a.length,e=0;e<c;e++)b.iV(this,a[e])};var wD=function(a,b){vD.call(this,a,b);this.Pl(!0);this.C(!1,!0);this.dg=new L};B(wD,vD);q=wD.prototype;q.P8=!1;q.L0=0;q.Ka=function(a){wD.c.Ka.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.pd(this.j().b(a),1)};q.B=function(){wD.c.B.call(this);this.dg.forEach(this.KS,this);var a=this.A();a.listen(this,k,this.e2);a.listen(this.j().K(),nk,this.pta,!0)};q.pd=function(a,b,c,e,f){this.HK(a)||(b=this.qU(a,b,c,e,f),this.V&&this.KS(b),a=Wq(this.Pta,a),this.b()&&this.A().listen(this.b(),zj,a))};
q.Pta=function(a,b){if(27==b.keyCode)a.focus();else if(a=this.pa(this.ib)){a=a.b();var c=new Cu(b.bd,a);c.target=a;32!=b.keyCode&&13!=b.keyCode||$u(a,zj,!1,c);32==b.keyCode&&this.Ce()}};q.qU=function(a,b,c,e,f){if(!a)return null;b={D:a,E8:b,wsa:c,QH:e?ig:nk,zB:f};this.dg.set(Rq(a),b);return b};q.HK=function(a){return a?this.dg.Xb(Rq(a)):!1};q.KS=function(a){this.A().listen(a.D,a.QH,this.kC);a.QH!=ig&&this.A().listen(a.D,zj,this.aua)};
q.detach=function(a){if(!this.HK(a))throw Error("Menu not attached to provided element, unable to detach.");a=Rq(a);this.V&&this.rfa(this.dg.get(a));this.dg.remove(a)};q.rfa=function(a){this.A().ta(a.D,a.QH,this.kC)};q.T6=function(a){this.P8=a};q.Q7=function(a,b,c){var e=this.N();this.WA()&&this.P8?this.Ce():this.dispatchEvent(ff)&&(b="undefined"!=typeof b?b:8,e||(this.b().style.visibility=yi),R(this.b(),!0),a.ha(this.b(),b,c),e||(this.b().style.visibility=fq),this.oc(-1),this.C(!0))};
q.y7=function(a,b,c){b=u(a.E8)?new UC(a.D,a.E8,!0):new XC(b,c);b.yr&&b.yr(5);this.Q7(b,a.wsa,a.zB,a.D)};q.q7=function(a,b,c){this.Q7(new WC(a,b,!0),c,null,a)};q.Ce=function(){this.N()&&(this.C(!1),this.N()||(this.L0=A()))};q.WA=function(){return this.N()||this.XEa()};q.XEa=function(){return 150>A()-this.L0};q.e2=function(){this.Ce()};q.kC=function(a){this.D2(a)};q.aua=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||this.D2(a);40==a.keyCode&&this.Hu()};
q.D2=function(a){for(var b=this.dg.bb(),c=0;c<b.length;c++){var e=this.dg.get(b[c]);if(e.D==a.currentTarget){this.y7(e,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();break}}};q.pta=function(a){this.N()&&!this.mg(a.target)&&this.Ce()};q.af=function(a){wD.c.af.call(this,a);this.Ce()};q.o=function(){wD.c.o.call(this);this.dg&&(this.dg.clear(),delete this.dg)};var xD=function(a,b){this.e8=a;this.Xy=b},yD=new uB(0,0,1),zD=new uB(9999,11,31);xD.prototype.getStartDate=function(){return this.e8};xD.prototype.contains=function(a){return a.valueOf()>=this.e8.valueOf()&&a.valueOf()<=this.Xy.valueOf()};xD.prototype.iterator=function(){return new AD(this)};var AD=function(a){this.lM=a.getStartDate().clone();this.Xy=Number(a.Xy.vo())};B(AD,dv);AD.prototype.next=function(){if(Number(this.lM.vo())>this.Xy)throw cv;var a=this.lM.clone();this.lM.add(new tB("d",1));return a};var BD={LR:"y",cNa:"y G",dNa:"MMM y",bba:"MMMM y",eaa:"MMM d",dJa:"MMMM dd",eJa:"M/d",vR:"MMMM d",fJa:"MMM d, y",XMa:"EEE, MMM d",YMa:"EEE, MMM d, y",oGa:"d"},CD=BD;CD=BD;var DD=function(a,b){this.Lca=a;this.Z=b||N()};q=DD.prototype;q.j=function(){return this.Z};q.la=function(){return this.Lca};
q.Gwa=function(a,b,c,e){b?(e=this.j().createElement(xd),e.colSpan=c?1:2,this.ue(e,"\u00ab",this.la()+Ra),a.appendChild(e),e=this.j().createElement(xd),e.colSpan=c?6:5,e.className=this.la()+"-monthyear",a.appendChild(e),e=this.j().createElement(xd),this.ue(e,"\u00bb",this.la()+Oa),a.appendChild(e)):(c=this.j().createElement(xd),c.colSpan=5,this.ue(c,"\u00ab",this.la()+Ra),this.ue(c,"",this.la()+"-month"),this.ue(c,"\u00bb",this.la()+Oa),b=this.j().createElement(xd),b.colSpan=3,this.ue(b,"\u00ab",this.la()+
"-previousYear"),this.ue(b,"",this.la()+"-year"),this.ue(b,"\u00bb",this.la()+"-nextYear"),e.indexOf("y")<e.indexOf("m")?(a.appendChild(b),a.appendChild(c)):(a.appendChild(c),a.appendChild(b)))};
q.Ewa=function(a,b){var c=this.j().createElement(xd);c.colSpan=b?2:3;c.className=this.la()+"-today-cont";this.ue(c,"Today",this.la()+Sa);a.appendChild(c);c=this.j().createElement(xd);c.colSpan=b?4:3;a.appendChild(c);c=this.j().createElement(xd);c.colSpan=2;c.className=this.la()+"-none-cont";this.ue(c,"None",this.la()+Pa);a.appendChild(c)};
q.ue=function(a,b,c){var e=[this.la()+"-btn"];c&&e.push(c);c=this.j().createElement(Mb);c.className=e.join(" ");c.appendChild(this.j().createTextNode(b));a.appendChild(c);return c};var ED=function(a,b,c,e){V.call(this,c);this.Pe=b||rB;this.YEa=this.Pe.GR;this.lpa=new zB("d",this.Pe);this.jpa=new zB("dd",this.Pe);this.npa=new zB("w",this.Pe);this.kpa=new zB("M d",this.Pe);this.kK=new zB(CD.LR||"y",this.Pe);this.mpa=new zB(CD.bba||"MMMM y",this.Pe);this.M=e||new DD(this.la(),this.j());this.jc=new uB(a);this.jc.Q5(this.Pe.dF);this.jc.qO(this.Pe.cF);this.qc=this.jc.clone();this.qc.setDate(1);this.XE="      ".split(" ");this.XE[this.Pe.KR[0]]=this.la()+"-wkend-start";this.XE[this.Pe.KR[1]]=
this.la()+"-wkend-end";this.Dq={};this.fn=[]};B(ED,V);q=ED.prototype;q.AP=!0;q.aCa=!0;q.NEa=new xD(yD,zD);q.Hga=!0;q.aE=!0;q.P7=!0;q.EF=!0;q.K7=!0;q.S7=!1;q.jV=null;q.Wra=!1;q.Ty=null;q.Sy=null;q.Ry=null;q.kda=pC.H();q.la=function(){return"goog-date-picker"};q.lza=function(a){this.qc.qO(a);this.Wh();this.z3()};q.OAa=function(a){this.AP=a;this.Wh()};q.gL=function(a){return this.NEa.contains(a)};q.RAa=function(a){this.aE=a;this.w9();this.t9();this.Wh()};
q.oEa=function(){R(this.ZV,this.K7);R(this.YV,this.EF);R(this.D8,this.K7||this.EF)};q.i3=function(){this.qc.add(new tB("m",-1));this.Wh();this.It()};q.W1=function(){this.qc.add(new tB("m",1));this.Wh();this.It()};q.tva=function(){this.qc.add(new tB("y",-1));this.Wh();this.It()};q.Xsa=function(){this.qc.add(new tB("y",1));this.Wh();this.It()};q.Z4=function(){this.setDate(new uB)};q.Y4=function(){this.EF&&this.setDate(null)};q.Qha=function(){return this.qc.clone()};
q.getDate=function(){return this.jc&&this.jc.clone()};q.setDate=function(a){this.bO(a,!0)};q.bO=function(a,b){var c=a==this.jc||a&&this.jc&&a.getFullYear()==this.jc.getFullYear()&&a.getMonth()==this.jc.getMonth(),e=a==this.jc||c&&a.getDate()==this.jc.getDate();this.jc=a&&new uB(a);a&&(this.qc.set(this.jc),this.qc.setFullYear(this.jc.getFullYear()),this.qc.setDate(1));this.Wh();b&&this.dispatchEvent(new FD(en,this,this.jc));e||this.dispatchEvent(new FD(tf,this,this.jc));c||this.It()};
q.w9=function(){if(this.Ty){for(var a=this.Ty;a.firstChild;)a.removeChild(a.firstChild);this.M.Gwa(a,this.S7,this.aE,this.Pe.No[0].toLowerCase());if(this.S7){this.$h(a,this.la()+Ra,this.i3);var b=dy(this.la()+Ra,a);b&&(T(b,yi,!0),b.tabIndex=-1);this.$h(a,this.la()+Oa,this.W1);if(b=dy(this.la()+Oa,a))T(b,yi,!0),b.tabIndex=-1;this.Sy=dy(this.la()+"-monthyear",a)}else this.$h(a,this.la()+Ra,this.i3),this.$h(a,this.la()+Oa,this.W1),this.$h(a,this.la()+"-month",this.YBa),this.$h(a,this.la()+"-previousYear",
this.tva),this.$h(a,this.la()+"-nextYear",this.Xsa),this.$h(a,this.la()+"-year",this.mCa),this.Mm=dy(this.la()+"-month",a),this.vt=N().Fc(this.la()+"-year",a)}};q.$h=function(a,b,c){a=dy(b,a);this.A().listen(a,Bf,function(a){a.preventDefault();c.call(this,a)})};q.t9=function(){if(this.Ry){var a=this.Ry;ty(a);this.M.Ewa(a,this.aE);this.$h(a,this.la()+Sa,this.Z4);this.$h(a,this.la()+Pa,this.Y4);this.ZV=dy(this.la()+Sa,a);this.YV=dy(this.la()+Pa,a);this.oEa()}};
q.Ka=function(a){ED.c.Ka.call(this,a);C(a);U(a,this.la());var b=this.Z.createElement(vd),c=this.Z.createElement("THEAD"),e=this.Z.createElement(wd),f=this.Z.createElement("TFOOT");MB(e,ti);e.tabIndex=0;this.oE=e;this.D8=f;var g=this.Z.createElement(zd);g.className=this.la()+"-head";this.Ty=g;this.w9();c.appendChild(g);this.yf=[];for(var h=0;7>h;h++){g=this.Z.createElement(zd);this.yf[h]=[];for(var l=0;8>l;l++){var p=this.Z.createElement(0==l||0==h?"th":"td");0!=l&&0!=h||l==h||(p.className=0==l?this.la()+
"-week":this.la()+"-wday",MB(p,0==l?"rowheader":"columnheader"));g.appendChild(p);this.yf[h][l]=p}e.appendChild(g)}g=this.Z.createElement(zd);g.className=this.la()+"-foot";this.Ry=g;this.t9();f.appendChild(g);b.cellSpacing="0";b.cellPadding="0";b.appendChild(c);b.appendChild(e);b.appendChild(f);a.appendChild(b);this.z3();this.Wh();a.tabIndex=0};q.g=function(){ED.c.g.call(this);this.Ka(this.b())};
q.B=function(){ED.c.B.call(this);var a=this.A();a.listen(this.oE,Bf,this.pma);a.listen(this.cJ(this.b()),yj,this.qma)};q.Pa=function(){ED.c.Pa.call(this);this.xp();for(var a in this.Dq)this.Dq[a].dispose();this.Dq={}};q.create=ED.prototype.R;q.o=function(){ED.c.o.call(this);this.YV=this.ZV=this.vt=this.Sy=this.Mm=this.Ry=this.Ty=this.D8=this.oE=this.yf=null};
q.pma=function(a){if(a.target.tagName==xd){var b,c=-2,e=-2;for(b=a.target;b;b=b.previousSibling,c++);for(b=a.target.parentNode;b;b=b.previousSibling,e++);a=this.fn[e][c];this.gL(a)&&this.setDate(a.clone())}};
q.qma=function(a){switch(a.keyCode){case 33:a.preventDefault();var b=-1;break;case 34:a.preventDefault();b=1;break;case 37:a.preventDefault();var c=-1;break;case 39:a.preventDefault();c=1;break;case 38:a.preventDefault();c=-7;break;case 40:a.preventDefault();c=7;break;case 36:a.preventDefault(),this.Z4();case 46:a.preventDefault();this.Y4();break;case 13:case 32:a.preventDefault(),this.bO(this.jc,!0);default:return}this.jc?(a=this.jc.clone(),a.add(new tB(0,b,c))):(a=this.qc.clone(),a.setDate(1));
this.gL(a)&&this.bO(a,!1)};q.YBa=function(a){a.stopPropagation();a=[];for(var b=0;12>b;b++)a.push(this.Pe.ls[b]);this.DU(this.Mm,a,this.ana,this.Pe.ls[this.qc.getMonth()])};q.mCa=function(a){a.stopPropagation();a=[];for(var b=this.qc.getFullYear(),c=this.qc.clone(),e=-5;5>=e;e++)c.setFullYear(b+e),a.push(this.kK.format(c));this.DU(this.vt,a,this.Ioa,this.kK.format(this.qc))};q.ana=function(a){a=Number(a.getAttribute($i));this.qc.setMonth(a);this.Wh();this.Mm.focus&&this.Mm.focus()};
q.Ioa=function(a){3==a.firstChild.nodeType&&(a=Number(a.getAttribute($i)),this.qc.setFullYear(this.qc.getFullYear()+a-5),this.Wh());this.vt.focus()};
q.DU=function(a,b,c,e){this.xp();var f=this.Z.createElement(d);f.className=this.la()+"-menu";this.Jq=null;for(var g=this.Z.createElement("UL"),h=0;h<b.length;h++){var l=this.Z.g("LI",null,b[h]);l.setAttribute($i,h);b[h]==e&&(this.Jq=l);g.appendChild(l)}f.appendChild(g);f.style.left=a.offsetLeft+a.parentNode.offsetLeft+n;f.style.top=a.offsetTop+n;f.style.width=a.clientWidth+n;this.Mm.parentNode.appendChild(f);this.fa=f;this.Jq||(this.Jq=g.firstChild);this.Jq.className=this.la()+Na;this.XL=c;a=this.A();
a.listen(this.fa,Bf,this.iZ);a.listen(this.cJ(this.fa),yj,this.jZ);a.listen(this.Z.K(),Bf,this.xp);f.tabIndex=0;f.focus()};q.iZ=function(a){a.stopPropagation();this.xp();this.XL&&this.XL(a.target)};
q.jZ=function(a){a.stopPropagation();var b=this.Jq;switch(a.keyCode){case 35:a.preventDefault();var c=b.parentNode.lastChild;break;case 36:a.preventDefault();c=b.parentNode.firstChild;break;case 38:a.preventDefault();c=b.previousSibling;break;case 40:a.preventDefault();c=b.nextSibling;break;case 13:case 9:case 0:a.preventDefault(),this.xp(),this.XL(b)}c&&c!=b&&(b.className="",c.className=this.la()+Na,this.Jq=c)};
q.xp=function(){if(this.fa){var a=this.A();a.ta(this.fa,Bf,this.iZ);a.ta(this.cJ(this.fa),yj,this.jZ);a.ta(this.Z.K(),Bf,this.xp);xy(this.fa);delete this.fa}};
q.Wh=function(){if(this.b()){var a=this.qc.clone();a.setDate(1);this.Sy&&Gy(this.Sy,this.mpa.format(a));this.Mm&&Gy(this.Mm,this.Pe.ls[a.getMonth()]);this.vt&&Gy(this.vt,this.kK.format(a));var b=a.Zka(),c=a.dY();a.add(new tB("m",-1));a.setDate(a.dY()-(b-1));this.AP&&!this.Hga&&33>c+b&&a.add(new tB("d",-7));b=new tB("d",1);this.fn=[];for(c=0;6>c;c++){this.fn[c]=[];for(var e=0;7>e;e++){this.fn[c][e]=a.clone();var f=a.getFullYear();a.add(b);0==a.getMonth()&&1==a.getDate()&&f++;a.setFullYear(f)}}this.Rva()}};
q.Rva=function(){if(this.b()){var a=this.qc.getMonth(),b=new uB,c=b.getFullYear(),e=b.getMonth();b=b.getDate();for(var f=0;6>f;f++){this.aE?(Gy(this.yf[f+1][0],this.npa.format(this.fn[f][0])),this.yf[f+1][0].className=this.la()+"-week"):(Gy(this.yf[f+1][0],""),this.yf[f+1][0].className="");for(var g=0;7>g;g++){var h=this.fn[f][g],l=this.yf[f+1][g+1];l.id||(l.id=this.kda.Nd());C(l,"The table DOM element cannot be null.");MB(l,ui);TB(l,this.kpa.format(h));var p=[this.la()+"-date"];this.gL(h)||p.push(this.la()+
"-unavailable-date");if(this.aCa||h.getMonth()==a){h.getMonth()!=a&&p.push(this.la()+"-other-month");var r=(g+this.qc.Sm+7)%7;this.XE[r]&&p.push(this.XE[r]);h.getDate()==b&&h.getMonth()==e&&h.getFullYear()==c&&p.push(this.la()+"-today");this.jc&&h.getDate()==this.jc.getDate()&&h.getMonth()==this.jc.getMonth()&&h.getFullYear()==this.jc.getFullYear()&&(p.push(this.la()+"-selected"),C(this.oE,"The table body DOM element cannot be null"),T(this.oE,ee,l.id));this.jV&&(r=this.jV(h))&&p.push(r);h=this.Wra?
this.jpa.format(h):this.lpa.format(h);Gy(l,h)}else Gy(l,"");p=p.join(" ");l.className=p}4<=f&&R(this.yf[f+1][0].parentElement||this.yf[f+1][0].parentNode,this.fn[f][0].getMonth()==a||this.AP)}}};q.It=function(){var a=new FD("changeActiveMonth",this,this.Qha());this.dispatchEvent(a)};q.z3=function(){if(this.b()){if(this.P7)for(var a=0;7>a;a++)Gy(this.yf[0][a+1],this.YEa[((a+this.qc.Sm+7)%7+1)%7]);R(this.yf[0][0].parentElement||this.yf[0][0].parentNode,this.P7)}};
q.cJ=function(a){var b=Rq(a);b in this.Dq||(this.Dq[b]=new MC(a));return this.Dq[b]};var FD=function(a,b,c){H.call(this,a,b);this.ka=c};B(FD,H);var GD=function(a,b){this.Sn=8;this.AC=b||void 0;tC.call(this,a)};B(GD,tC);q=GD.prototype;q.PO=function(a){this.Sn=a;this.N()&&this.ha()};q.getPosition=function(){return this.AC||null};q.setPosition=function(a){this.AC=a||void 0;this.N()&&this.ha()};q.iu=function(){return this.zB||null};q.i6=function(a,b,c,e){this.zB=null==a||a instanceof Bz?a:new Bz(a,b,c,e);this.N()&&this.ha()};
q.ha=function(){if(this.AC){var a=!this.N()&&this.getType()!=tk,b=this.b();a&&(b.style.visibility=yi,R(b,!0));this.AC.ha(b,this.Sn,this.zB);a&&R(b,!1)}};var HD=function(a,b){V.call(this,b);this.ve=a||new ED};B(HD,V);q=HD.prototype;q.ve=null;q.cb=null;q.kB=null;q.pm=!0;q.g=function(){HD.c.g.call(this);this.b().className="goog-popupdatepicker";this.cb=new GD(this.b());this.cb.Sl(this)};q.N=function(){return this.cb?this.cb.N():!1};q.B=function(){HD.c.B.call(this);if(!this.ve.V){var a=this.b();a.style.visibility=yi;R(a,!1);this.ve.R(a)}this.A().listen(this.ve,tf,this.Bv).listen(this.ve,en,this.wM)};
q.o=function(){HD.c.o.call(this);this.cb&&(this.cb.dispose(),this.cb=null);this.ve.dispose();this.kB=this.ve=null};q.tc=function(){return!1};q.Az=function(){return this.ve};q.getDate=function(){return this.ve.getDate()};q.setDate=function(a){this.ve.setDate(a)};q.pd=function(a){this.A().listen(a,nk,this.E7)};q.detach=function(a){this.A().ta(a,nk,this.E7)};q.Pl=function(a){this.pm=a};
q.cCa=function(a,b){this.kB=a;this.cb.setPosition(new TC(a,9,197));this.A().ta(this.ve,tf,this.Bv).ta(this.ve,en,this.wM);b||this.ve.setDate(null);this.dispatchEvent(Cn);this.cb.C(!0);this.pm&&this.b().focus();this.A().listen(this.ve,tf,this.Bv).listen(this.ve,en,this.wM)};q.E7=function(a){this.cCa(a.currentTarget)};q.ZJ=function(){this.cb.C(!1);this.pm&&this.kB&&this.kB.focus()};q.wM=function(a){this.ZJ();this.dispatchEvent(a)};q.Bv=function(a){this.dispatchEvent(a)};var ID=function(a,b){C(u(b)||u(rB),si);this.gc=[];this.Ha=b||rB;typeof a==Ik?this.Yo(a):this.kg(a)};q=ID.prototype;
q.kg=function(a){for(var b=!1,c="",e=0;e<a.length;e++){var f=a.charAt(e);if(" "==f)for(0<c.length&&(this.gc.push({text:c,count:0,Po:!1}),c=""),this.gc.push({text:" ",count:0,Po:!1});e<a.length-1&&" "==a.charAt(e+1);)e++;else if(b)"'"==f?e+1<a.length&&"'"==a.charAt(e+1)?(c+="'",e++):b=!1:c+=f;else if(0<="GyMdkHmsSEDahKzZvQL".indexOf(f)){0<c.length&&(this.gc.push({text:c,count:0,Po:!1}),c="");var g=this.Kja(a,e);this.gc.push({text:f,count:g,Po:!1});e+=g-1}else"'"==f?e+1<a.length&&"'"==a.charAt(e+1)?
(c+="'",e++):b=!0:c+=f}0<c.length&&this.gc.push({text:c,count:0,Po:!1});this.esa()};q.Yo=function(a){11<a&&(a=10);if(4>a)var b=this.Ha.No[a];else 8>a?b=this.Ha.vx[a-4]:(b=this.Ha.kR[a-8],b=b.replace("{1}",this.Ha.No[a-8]),b=b.replace("{0}",this.Ha.vx[a-8]));this.kg(b)};q.parse=function(a,b,c){return this.K_(a,b,c||0,!1)};q.OCa=function(a,b,c){return this.K_(a,b,c||0,!0)};
q.K_=function(a,b,c,e){for(var f=new JD,g=[c],h=-1,l=0,p=0,r=0;r<this.gc.length;r++)if(0<this.gc[r].count)if(0>h&&this.gc[r].Po&&(h=r,l=c,p=0),0<=h){var z=this.gc[r].count;if(r==h&&(z-=p,p++,0==z))return 0;this.v8(a,g,this.gc[r],z,f)||(r=h-1,g[0]=l)}else{if(h=-1,!this.v8(a,g,this.gc[r],0,f))return 0}else{h=-1;if(" "==this.gc[r].text.charAt(0)){if(z=g[0],this.W7(a,g),g[0]>z)continue}else if(a.indexOf(this.gc[r].text,g[0])==g[0]){g[0]+=this.gc[r].text.length;continue}return 0}return f.ada(b,e)?g[0]-
c:0};q.Kja=function(a,b){for(var c=a.charAt(b),e=b+1;e<a.length&&a.charAt(e)==c;)e++;return e-b};q.TK=function(a){if(0>=a.count)return!1;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return 0<b||0==b&&3>a.count};q.esa=function(){for(var a=!1,b=0;b<this.gc.length;b++)this.TK(this.gc[b])?!a&&b+1<this.gc.length&&this.TK(this.gc[b+1])&&(a=!0,this.gc[b].Po=!0):a=!1};q.W7=function(a,b){(a=a.substring(b[0]).match(/^\s+/))&&(b[0]+=a[0].length)};
q.v8=function(a,b,c,e,f){this.W7(a,b);var g=b[0],h=c.text.charAt(0),l=-1;if(this.TK(c))if(0<e){if(g+e>a.length)return!1;l=this.Hv(a.substring(0,g+e),b)}else l=this.Hv(a,b);switch(h){case "G":return l=this.Fn(a,b,this.Ha.nR),0<=l&&(f.era=l),!0;case "M":case "L":return this.TCa(a,b,f,l);case "E":return this.RCa(a,b,f);case "a":return l=this.Fn(a,b,this.Ha.cR),0<=l&&(f.rS=l),!0;case "y":return this.VCa(a,b,g,l,c,f);case "Q":return this.UCa(a,b,f,l);case "d":return 0<=l&&(f.day=l),!0;case "S":return this.SCa(l,
b,g,f);case "h":12==l&&(l=0);case "K":case "H":case "k":return 0<=l&&(f.yc=l),!0;case "m":return 0<=l&&(f.Ed=l),!0;case "s":return 0<=l&&(f.kd=l),!0;case "z":case "Z":case "v":return this.YCa(a,b,f);default:return!1}};q.VCa=function(a,b,c,e,f,g){if(0>e){var h=a.charAt(b[0]);if("+"!=h&&"-"!=h)return!1;b[0]++;e=this.Hv(a,b);if(0>e)return!1;"-"==h&&(e=-e)}h||2!=b[0]-c||2!=f.count?g.year=e:g.iBa(e);return!0};
q.TCa=function(a,b,c,e){if(0>e){e=this.Fn(a,b,this.Ha.uR.concat(this.Ha.ls).concat(this.Ha.CR).concat(this.Ha.FR));if(0>e)return!1;c.month=e%12}else c.month=e-1;return!0};q.UCa=function(a,b,c,e){if(0>e){e=this.Fn(a,b,this.Ha.zR);0>e&&(e=this.Fn(a,b,this.Ha.DR));if(0>e)return!1;c.month=3*e;c.day=1;return!0}return!1};q.RCa=function(a,b,c){var e=this.Fn(a,b,this.Ha.JR);0>e&&(e=this.Fn(a,b,this.Ha.ER));if(0>e)return!1;c.XG=e;return!0};
q.SCa=function(a,b,c,e){b=b[0]-c;e.$L=3>b?a*Math.pow(10,3-b):Math.round(a/Math.pow(10,b-3));return!0};q.YCa=function(a,b,c){a.indexOf("GMT",b[0])==b[0]&&(b[0]+=3);return this.Oua(a,b,c)};q.Oua=function(a,b,c){if(b[0]>=a.length)return c.xQ=0,!0;var e=1;switch(a.charAt(b[0])){case "-":e=-1;case "+":b[0]++}var f=b[0],g=this.Hv(a,b);if(0>g)return!1;if(b[0]<a.length&&":"==a.charAt(b[0])){var h=60*g;b[0]++;g=this.Hv(a,b);if(0>g)return!1;h+=g}else h=g,h=24>h&&2>=b[0]-f?60*h:h%100+h/100*60;c.xQ=-(h*e);return!0};
q.Hv=function(a,b){if(this.Ha.lF){for(var c=[],e=b[0];e<a.length;e++){var f=a.charCodeAt(e)-this.Ha.lF;c.push(0<=f&&9>=f?String.fromCharCode(f+48):a.charAt(e))}a=c.join("")}else a=a.substring(b[0]);a=a.match(/^\d+/);if(!a)return-1;b[0]+=a[0].length;return parseInt(a[0],10)};q.Fn=function(a,b,c){var e=0,f=-1;a=a.substring(b[0]).toLowerCase();for(var g=0;g<c.length;g++){var h=c[g].length;h>e&&0==a.indexOf(c[g].toLowerCase())&&(f=g,e=h)}0<=f&&(b[0]+=e);return f};var JD=function(){};
JD.prototype.iBa=function(a){var b=(new Date).getFullYear()-80,c=b%100;this.nca=a==c;return this.year=a+=100*Math.floor(b/100)+(a<c?100:0)};
JD.prototype.ada=function(a,b){if(null==a)throw Error("Parameter 'date' should not be null.");void 0!=this.era&&void 0!=this.year&&0==this.era&&0<this.year&&(this.year=-(this.year-1));void 0!=this.year&&a.setFullYear(this.year);var c=a.getDate();a.setDate(1);void 0!=this.month&&a.setMonth(this.month);if(void 0!=this.day)a.setDate(this.day);else{var e=sB(a.getFullYear(),a.getMonth());a.setDate(c>e?e:c)}Nq(a.setHours)&&(void 0==this.yc&&(this.yc=a.getHours()),void 0!=this.rS&&0<this.rS&&12>this.yc&&
(this.yc+=12),a.setHours(this.yc));Nq(a.setMinutes)&&void 0!=this.Ed&&a.setMinutes(this.Ed);Nq(a.setSeconds)&&void 0!=this.kd&&a.setSeconds(this.kd);Nq(a.setMilliseconds)&&void 0!=this.$L&&a.setMilliseconds(this.$L);if(b&&(void 0!=this.year&&this.year!=a.getFullYear()||void 0!=this.month&&this.month!=a.getMonth()||void 0!=this.day&&this.day!=a.getDate()||24<=this.yc||60<=this.Ed||60<=this.kd||1E3<=this.$L))return!1;void 0!=this.xQ&&(b=a.getTimezoneOffset(),a.setTime(a.getTime()+6E4*(this.xQ-b)));
this.nca&&(b=new Date,b.setFullYear(b.getFullYear()-80),a.getTime()<b.getTime()&&a.setFullYear(b.getFullYear()+100));if(void 0!=this.XG)if(void 0==this.day)b=(7+this.XG-a.getDay())%7,3<b&&(b-=7),c=a.getMonth(),a.setDate(a.getDate()+b),a.getMonth()!=c&&a.setDate(a.getDate()+(0<b?-7:7));else if(this.XG!=a.getDay())return!1;return!0};var KD=function(a,b){V.call(this,b);this.Ua=a||""},LD;B(KD,V);KD.prototype.oi=null;KD.prototype.tra=10;var MD=function(){null!=LD||(LD="placeholder"in py(document,Jc));return LD};q=KD.prototype;q.oq=!1;q.g=function(){this.Na(this.j().g(Jc,{type:$o}))};q.Ka=function(a){KD.c.Ka.call(this,a);this.Ua||(this.Ua=a.getAttribute(Cj)||"");Sy(Zx(a))==a&&(this.oq=!0,a=this.b(),C(a),dC(a,this.bv));MD()&&(this.b().placeholder=this.Ua);a=this.b();C(a,Ed);T(a,Cj,this.Ua)};
q.B=function(){KD.c.B.call(this);this.$o();this.zk();this.b().Mf=this};q.Pa=function(){KD.c.Pa.call(this);this.rj();this.b().Mf=null};q.$o=function(){var a=new jC(this);a.listen(this.b(),zh,this.hn);a.listen(this.b(),hf,this.gq);if(MD())this.G=a;else{yt&&a.listen(this.b(),[Aj,zj,Bj],this.gma);var b=Zx(this.b());a.listen(ky(b),Nj,this.Foa);this.G=a;this.LS()}};q.LS=function(){!this.hha&&this.G&&this.b().form&&(this.G.listen(this.b().form,Uo,this.lma),this.hha=!0)};
q.rj=function(){this.G&&(this.G.dispose(),this.G=null)};q.o=function(){KD.c.o.call(this);this.rj()};q.bv="label-input-label";q.hn=function(){this.oq=!0;var a=this.b();C(a);dC(a,this.bv);if(!MD()&&!this.cl()&&!this.vpa){var b=this;a=function(){b.b()&&(b.b().value="")};E?M(a,10):a()}};q.gq=function(){MD()||(this.G.ta(this.b(),Bf,this.hn),this.oi=null);this.oq=!1;this.zk()};
q.gma=function(a){27==a.keyCode&&(a.type==zj?this.oi=this.b().value:a.type==Aj?this.b().value=this.oi:a.type==Bj&&(this.oi=null),a.preventDefault())};q.lma=function(){this.cl()||(this.b().value="",M(this.qla,10,this))};q.qla=function(){this.cl()||(this.b().value=this.Ua)};q.Foa=function(){this.zk()};q.hasFocus=function(){return this.oq};q.cl=function(){return!!this.b()&&""!=this.b().value&&this.b().value!=this.Ua};q.clear=function(){this.b().value="";null!=this.oi&&(this.oi="")};
q.reset=function(){this.cl()&&(this.clear(),this.zk())};q.setValue=function(a){null!=this.oi&&(this.oi=a);this.b().value=a;this.zk()};q.getValue=function(){return null!=this.oi?this.oi:this.cl()?this.b().value:""};q.Ra=function(a){var b=this.b();MD()?(b&&(b.placeholder=a),this.Ua=a):this.cl()||(b&&(b.value=""),this.Ua=a,this.q4());b&&T(b,Cj,this.Ua)};q.wg=function(){return this.Ua};
q.zk=function(){var a=this.b();C(a,Ed);MD()?this.b().placeholder!=this.Ua&&(this.b().placeholder=this.Ua):this.LS();T(a,Cj,this.Ua);this.cl()?(a=this.b(),C(a),dC(a,this.bv)):(this.vpa||this.oq||(a=this.b(),C(a),U(a,this.bv)),MD()||M(this.q4,this.tra,this))};q.U=function(a){this.b().disabled=!a;var b=this.b();C(b);fC(b,this.bv+Ka,!a)};q.isEnabled=function(){return!this.b().disabled};q.q4=function(){!this.b()||this.cl()||this.oq||(this.b().value=this.Ua)};var ND=function(a,b,c,e){V.call(this,e);this.fV=a;this.gV=b;this.Ic=new HD(c,e);this.ca(this.Ic);this.Ic.Pl(!1)};B(ND,V);q=ND.prototype;q.fV=null;q.gV=null;q.Ic=null;q.c3=null;q.Az=function(){return this.Ic.Az()};q.getDate=function(){var a=this.bJ(),b=this.Ic.getDate();a&&b?a.ad(b)||this.Ic.setDate(a):this.Ic.setDate(null);return a};q.setDate=function(a){this.Ic.setDate(a)};q.b6=function(a){var b=this.b();b.Mf?b.Mf.setValue(a):b.value=a};
q.eja=function(){var a=this.b();return a.Mf?a.Mf.getValue():a.value};q.c6=function(a){this.b6(a?this.fV.format(a):"")};q.bJ=function(){var a=cr(this.eja());if(a){var b=new vB;if(0<this.gV.OCa(a,b))return b}return null};q.g=function(){this.Na(this.j().g(Jc,{type:$o}));this.Ic.g()};q.B=function(){(this.c3||this.j().K().body).appendChild(this.Ic.b());ND.c.B.call(this);var a=this.b();this.Ic.pd(a);this.Ic.setDate(this.bJ());a=this.A();a.listen(this.Ic,tf,this.Bv);a.listen(this.Ic,Cn,this.Vta)};
q.Pa=function(){ND.c.Pa.call(this);var a=this.b();this.Ic.detach(a);this.Ic.Pa();xy(this.Ic.b())};q.Ka=function(a){ND.c.Ka.call(this,a);this.Ic.g()};q.o=function(){ND.c.o.call(this);this.Ic.dispose();this.c3=this.Ic=null};q.ZJ=function(){this.Ic.ZJ()};q.Vta=function(){var a=this.bJ();this.setDate(a);a&&this.c6(this.Az().getDate())};q.Bv=function(a){this.c6(a.ka)};var OD=function(){};B(OD,cD);Kq(OD);q=OD.prototype;q.wd=function(){return mf};q.Wi=function(a,b,c){switch(b){case 8:case 16:C(a,"The button DOM element cannot be null.");T(a,"pressed",c);break;default:case 64:case 1:OD.c.Wi.call(this,a,b,c)}};q.g=function(a){var b=OD.c.g.call(this,a);this.Wc(b,a.zg());var c=a.getValue();c&&this.setValue(b,c);a.pb(16)&&this.Wi(b,16,a.bf());return b};q.R=function(a,b){b=OD.c.R.call(this,a,b);a.nBa(this.getValue(b));a.Er(this.zg(b));a.pb(16)&&this.Wi(b,16,a.bf());return b};
q.getValue=Jq;q.setValue=Jq;q.zg=function(a){return a.title};q.Wc=function(a,b){a&&(b?a.title=b:a.removeAttribute(ip))};q.Yg=function(a,b){var c=a.Eh(),e=this.If()+"-collapse-left",f=this.If()+"-collapse-right";a.Gp(c?f:e,!!(b&1));a.Gp(c?e:f,!!(b&2))};q.S=function(){return Qh};var PD=function(){};B(PD,OD);Kq(PD);q=PD.prototype;q.wd=function(){};q.g=function(a){this.Y6(a);return a.j().g(Mb,{"class":this.Zd(a).join(" "),disabled:!a.isEnabled(),title:a.zg()||"",value:a.getValue()||""},a.pi()||"")};q.tc=function(a){return a.tagName==Mb||a.tagName==Jc&&(a.type==mf||a.type==Uo||a.type==Nm)};q.R=function(a,b){this.Y6(a);if(b.disabled){var c=Qr(this.Wm(1));U(b,c)}return PD.c.R.call(this,a,b)};q.Bd=function(a){a.A().listen(a.b(),Bf,a.Tc)};q.qr=Jq;q.oo=Jq;q.Uj=function(a){return a.isEnabled()};
q.Me=Jq;q.setState=function(a,b,c){PD.c.setState.call(this,a,b,c);(a=a.b())&&1==b&&(a.disabled=c)};q.getValue=function(a){return a.value};q.setValue=function(a,b){a&&(a.value=b)};q.Wi=Jq;q.Y6=function(a){a.AD(!1);a.sD(255,!1);a.tb(32,!1)};var QD=function(a,b,c){gD.call(this,a,b||PD.H(),c)};B(QD,gD);q=QD.prototype;q.getValue=function(){return this.qb};q.setValue=function(a){this.qb=a;this.M.setValue(this.b(),a)};q.nBa=function(a){this.qb=a};q.zg=function(){return this.kb};q.Wc=function(a){this.kb=a;this.M.Wc(this.b(),a)};q.Er=function(a){this.kb=a};q.Yg=function(a){this.M.Yg(this,a)};q.o=function(){QD.c.o.call(this);delete this.qb;delete this.kb};
q.B=function(){QD.c.B.call(this);if(this.pb(32)){var a=this.Zb();a&&this.A().listen(a,Bj,this.wc)}};q.wc=function(a){return 13==a.keyCode&&a.type==yj||32==a.keyCode&&a.type==Bj?this.Tc(a):32==a.keyCode};ZC(Qh,function(){return new QD(null)});var RD=function(){};B(RD,OD);Kq(RD);q=RD.prototype;q.g=function(a){var b=this.Zd(a);b=a.j().g(d,Yh+b.join(" "),this.Ss(a.zb(),a.j()));this.Wc(b,a.zg());return b};q.wd=function(){return mf};q.J=function(a){return a&&a.firstChild&&a.firstChild.firstChild};q.Ss=function(a,b){return b.g(d,Yh+(this.S()+Qa),b.g(d,Yh+(this.S()+Ma),a))};q.tc=function(a){return a.tagName==d};q.JZ=function(a,b){b=a.j().Ym(b);var c=this.S()+Qa;return b&&bC(b,c)&&(a=a.j().Ym(b),b=this.S()+Ma,a&&bC(a,b))?!0:!1};
q.R=function(a,b){C(b);SD(b,!0);SD(b,!1);this.JZ(a,b)||b.appendChild(this.Ss(b.childNodes,a.j()));cC(b,[Xh,this.S()]);return RD.c.R.call(this,a,b)};q.S=function(){return Uh};var SD=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,e;c&&c.parentNode==a;){e=b?c.nextSibling:c.previousSibling;if(3==c.nodeType){var f=c.nodeValue;if(""==cr(f))a.removeChild(c);else{c.nodeValue=b?f.replace(/^[\s\xa0]+/,""):f.replace(/[\s\xa0]+$/,"");break}}else break;c=e}};var TD=function(){};B(TD,RD);Kq(TD);TD.prototype.J=function(a){return TD.c.J.call(this,a&&a.firstChild)};TD.prototype.R=function(a,b){var c=by("*",$h,b)[0];if(c){R(c,!1);Zx(c).body.appendChild(c);var e=new vD;e.R(c);a.Zg(e)}return TD.c.R.call(this,a,b)};TD.prototype.Ss=function(a,b){return TD.c.Ss.call(this,[this.createCaption(a,b),this.wy(b)],b)};TD.prototype.createCaption=function(a,b){return UD(a,this.S(),b)};var UD=function(a,b,c){return c.g(d,Yh+(b+Ha),a)};
TD.prototype.wy=function(a){return a.g(d,Yh+(this.S()+La),"\u00a0")};TD.prototype.S=function(){return ai};var VD=function(a,b,c,e,f){QD.call(this,a,c||TD.H(),e);this.tb(64,!0);this.vl=new WC(null,9);b&&this.Zg(b);this.xsa=null;this.wa=new Qv(500);!tA&&!uA||Qt("533.17.9")||this.R5(!0);this.ysa=f||tD.H()};B(VD,QD);q=VD.prototype;q.QA=!1;q.V3=!1;q.Hxa=!1;q.B=function(){VD.c.B.call(this);this.NS(!0);this.fa&&this.Rx(this.fa,!0);T(this.Ta(),wi,!!this.fa)};q.Pa=function(){VD.c.Pa.call(this);this.NS(!1);if(this.fa){this.Hb(!1);this.fa.Pa();this.Rx(this.fa,!1);var a=this.fa.b();a&&xy(a)}};
q.o=function(){VD.c.o.call(this);this.fa&&(this.fa.dispose(),delete this.fa);delete this.fva;this.wa.dispose()};q.Qc=function(a){VD.c.Qc.call(this,a);this.Rb()&&(this.Hb(!this.Qd(),a),this.fa&&this.fa.Rl(this.Qd()))};q.Kf=function(a){VD.c.Kf.call(this,a);this.fa&&!this.Rb()&&this.fa.Rl(!1)};q.Tc=function(){this.setActive(!1);return!0};q.Yla=function(a){this.fa&&this.fa.N()&&!this.mg(a.target)&&this.Hb(!1)};q.mg=function(a){return a&&Ey(this.b(),a)||this.fa&&this.fa.mg(a)||!1};
q.wc=function(a){if(32==a.keyCode){if(a.preventDefault(),a.type!=Bj)return!0}else if(a.type!=yj)return!1;if(this.fa&&this.fa.N()){var b=13==a.keyCode||32==a.keyCode,c=this.fa.ec(a);return 27==a.keyCode||b?(this.Hb(!1),!0):c}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.Hb(!0,a),!0):!1};q.vu=function(){this.Hb(!1)};q.Yma=function(){this.Rb()||this.Hb(!1)};q.af=function(a){this.QA||this.Hb(!1);VD.c.af.call(this,a)};
q.Qa=function(){this.fa||this.Zg(new vD(this.j(),this.ysa));return this.fa||null};q.Zg=function(a){var b=this.fa;a!=b&&(b&&(this.Hb(!1),this.V&&this.Rx(b,!1),delete this.fa),this.V&&T(this.Ta(),wi,!!a),a&&(this.fa=a,a.Ea(this),a.C(!1),a.Pl(this.QA),this.V&&this.Rx(a,!0)));return b};q.sc=function(a){this.Qa().ca(a,!0)};q.om=function(a,b){this.Qa().pe(a,b,!0)};q.removeItem=function(a){(a=this.Qa().removeChild(a,!0))&&a.dispose()};q.cd=function(a){return this.fa?this.fa.pa(a):null};
q.Xk=function(){return this.fa?this.fa.Xa():0};q.C=function(a,b){(a=VD.c.C.call(this,a,b))&&!this.N()&&this.Hb(!1);return a};q.U=function(a){VD.c.U.call(this,a);this.isEnabled()||this.Hb(!1)};q.Q_=function(){var a=this.vl.Dk;return 9==a||8==a};q.o5=function(a){this.vl.Dk=a?9:13};q.zAa=function(a){this.vl.yr&&this.vl.yr(1|(a?32:4))};q.ZA=function(){return this.vl.jja&&!!(this.vl.En&32)};q.R5=function(a){this.QA=a};q.z6=function(a){this.V3=a};q.y7=function(){this.Hb(!0)};
q.Hb=function(a,b){VD.c.Hb.call(this,a);if(this.fa&&this.Cg(64)==a){if(a){if(!this.fa.V)if(this.V3){var c=Cy(this.b());c?this.fa.S3(c):this.fa.render(this.b().parentNode)}else this.fa.render();this.b$=Qz(this.b());this.iT=bA(this.b());this.UM();c=!!b&&(13==b.keyCode||32==b.keyCode);b&&(40==b.keyCode||38==b.keyCode)||c&&this.Hxa?this.fa.Hu():this.fa.oc(-1)}else{this.setActive(!1);this.fa.Rl(!1);if(c=this.b())T(c,ee,""),T(c,ml,"");null!=this.lC&&(this.lC=void 0,(c=this.fa.b())&&$z(c,"",""))}this.fa.C(a,
!1,b);this.isDisposed()||this.Jca(a)}this.fa&&this.fa.b()&&OB(this.fa.Ta(),yi)};q.UM=function(){if(this.fa.V){var a=this.fva||this.b(),b=this.vl;this.vl.element=a;a=this.fa.b();this.fa.N()||(a.style.visibility=yi,R(a,!0));!this.lC&&this.ZA()&&(this.lC=aA(a));b.ha(a,b.Dk^1,this.xsa,this.lC);this.fa.N()||(R(a,!1),a.style.visibility=fq)}};
q.Qq=function(){var a=bA(this.b()),b=Qz(this.b());var c=this.iT;(c=!(c==a||c&&a&&c.left==a.left&&c.width==a.width&&c.top==a.top&&c.height==a.height))||(c=this.b$,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.iT=a,this.b$=b,this.UM())};q.Rx=function(a,b){var c=this.A();b=b?c.listen:c.ta;b.call(c,a,k,this.vu);b.call(c,a,Cf,this.xJ);b.call(c,a,Ai,this.zJ);b.call(c,a,xp,this.LJ)};q.NS=function(a){var b=this.A();(a?b.listen:b.ta).call(b,this.b(),zj,this.Ema)};
q.zJ=function(a){(a=a.target.b())&&this.r5(a)};q.Ema=function(a){this.pb(32)&&this.Zb()&&this.fa&&this.fa.N()&&a.stopPropagation()};q.LJ=function(){if(!this.fa.Ff()){var a=this.b();C(a,Fd);T(a,ee,"");T(a,ml,"")}};q.xJ=function(a){if(this.Qd()&&a.target instanceof qD){a=a.target;var b=a.b();a.N()&&a.OK()&&null!=b&&this.r5(b)}};q.r5=function(a){var b=this.b();C(b,Fd);a=QB(a)||a;if(!a.id){var c=pC.H();a.id=c.Nd()}RB(b,a);T(b,ml,a.id)};
q.Jca=function(a){var b=this.A(),c=a?b.listen:b.ta;c.call(b,this.j().K(),nk,this.Yla,!0);this.QA&&c.call(b,this.fa,hf,this.Yma);c.call(b,this.wa,fp,this.Qq);a?this.wa.start():this.wa.stop()};ZC(ai,function(){return new VD(null)});var WD=function(a){J.call(this);this.Tb=[];this.gS(a)};B(WD,J);q=WD.prototype;q.Vc=null;q.Fd=null;q.H6=function(a){this.Fd=a};q.Xk=function(){return this.Tb.length};q.s_=function(a){return a?Xr(this.Tb,a):-1};q.Pia=function(){return this.Tb[0]};q.cd=function(a){return this.Tb[a]||null};q.gS=function(a){a&&(D(a,function(a){this.mr(a,!1)},this),ss(this.Tb,a))};q.sc=function(a){this.om(a,this.Xk())};q.om=function(a,b){a&&(this.mr(a,!1),us(this.Tb,b,0,a))};
q.removeItem=function(a){a&&os(this.Tb,a)&&a==this.Vc&&(this.Vc=null,this.dispatchEvent(en))};q.xa=function(){return this.Vc};q.Gj=function(){return rs(this.Tb)};q.Bb=function(a){a!=this.Vc&&(this.mr(this.Vc,!1),this.Vc=a,this.mr(a,!0));this.dispatchEvent(en)};q.yg=function(){return this.s_(this.Vc)};q.kf=function(a){this.Bb(this.cd(a))};q.clear=function(){ls(this.Tb);this.Vc=null};q.o=function(){WD.c.o.call(this);delete this.Tb;this.Vc=null};
q.mr=function(a,b){a&&(typeof this.Fd==Ih?this.Fd(a,b):typeof a.ag==Ih&&a.ag(b))};var XD=function(a,b,c,e,f){VD.call(this,a,b,c,e,f||new tD(Lj));this.$G=this.zb();this.xK=null;this.RO(Lj)};B(XD,VD);q=XD.prototype;q.O=null;q.B=function(){XD.c.B.call(this);this.BQ();this.a1()};q.Ka=function(a){XD.c.Ka.call(this,a);(a=this.pi())?this.Rya(a):this.xa()||this.kf(0)};q.o=function(){XD.c.o.call(this);this.O&&(this.O.dispose(),this.O=null);this.$G=null};q.vu=function(a){this.Bb(a.target);XD.c.vu.call(this,a);a.stopPropagation();this.dispatchEvent(k)};
q.yu=function(){var a=this.xa();XD.c.setValue.call(this,a&&a.getValue());this.BQ()};q.Zg=function(a){var b=XD.c.Zg.call(this,a);a!=b&&(this.O&&this.O.clear(),a&&(this.O?a.Ia(function(a){this.yD(a);this.O.sc(a)},this):this.IG(a)));return b};q.Rya=function(a){this.$G=a;this.BQ()};q.sc=function(a){this.yD(a);XD.c.sc.call(this,a);this.O?this.O.sc(a):this.IG(this.Qa());this.AQ()};q.om=function(a,b){this.yD(a);XD.c.om.call(this,a,b);this.O?this.O.om(a,b):this.IG(this.Qa())};
q.removeItem=function(a){XD.c.removeItem.call(this,a);this.O&&this.O.removeItem(a)};q.Bb=function(a){if(this.O){var b=this.xa();this.O.Bb(a);a!=b&&this.dispatchEvent(tf)}};q.kf=function(a){this.O&&this.Bb(this.O.cd(a))};q.setValue=function(a){if(null!=a&&this.O)for(var b=0,c;c=this.O.cd(b);b++)if(c&&typeof c.getValue==Ih&&c.getValue()==a){this.Bb(c);return}this.Bb(null)};q.getValue=function(){var a=this.xa();return a?a.getValue():null};q.xa=function(){return this.O?this.O.xa():null};
q.yg=function(){return this.O?this.O.yg():-1};q.IG=function(a){this.O=new WD;a&&a.Ia(function(a){this.yD(a);this.O.sc(a)},this);this.a1()};q.a1=function(){this.O&&this.A().listen(this.O,en,this.yu)};q.BQ=function(){var a=this.xa();this.eb(a?a.pi():this.$G);var b=this.M.J(this.b());b&&this.j().Vu(b)&&(null==this.xK&&(this.xK=SB(b)),a=a?a.b():null,TB(b,a?SB(a):this.xK),this.AQ())};
q.AQ=function(){var a=this.M;if(a&&(a=a.J(this.b()))){var b=this.Ta();a.id||(a.id=pC.H().Nd());MB(a,cl);T(b,ee,a.id);if(this.O){b=this.O.Gj();T(a,"setsize",this.cY(b));var c=this.O.yg();T(a,sm,0<=c?this.cY(ts(b,0,c+1)):0)}}};q.cY=function(a){return es(a,function(a){return a instanceof qD})};q.yD=function(a){a.RO(a instanceof qD?cl:kn)};q.Hb=function(a,b){XD.c.Hb.call(this,a,b);this.Qd()?this.Qa().oc(this.yg()):this.AQ()};ZC("goog-select",function(){return new XD(null)});var YD=function(a){this.qb=void 0;this.rd={};a&&this.iya(a)};q=YD.prototype;q.set=function(a,b){this.t6(a,b,!1)};q.add=function(a,b){this.t6(a,b,!0)};q.t6=function(a,b,c){for(var e=this,f=0;f<a.length;f++){var g=a.charAt(f);e.rd[g]||(e.rd[g]=new YD);e=e.rd[g]}if(c&&void 0!==e.qb)throw Error('The collection already contains the key "'+a+'"');e.qb=b};q.iya=function(a){var b=Av(a);a=zv(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
q.gia=function(a){for(var b=this,c=0;c<a.length;c++)if(b=b.rd[a.charAt(c)],!b)return;return b};q.get=function(a){return(a=this.gia(a))?a.qb:void 0};q.nb=function(){var a=[];this.LY(a);return a};q.LY=function(a){void 0!==this.qb&&a.push(this.qb);for(var b in this.rd)this.rd[b].LY(a)};q.bb=function(a){var b=[];if(a){for(var c=this,e=0;e<a.length;e++){var f=a.charAt(e);if(!c.rd[f])return[];c=c.rd[f]}c.dJ(a,b)}else this.dJ("",b);return b};
q.dJ=function(a,b){void 0!==this.qb&&b.push(a);for(var c in this.rd)this.rd[c].dJ(a+c,b)};q.Xb=function(a){return void 0!==this.get(a)};q.nj=function(a){if(this.qb===a)return!0;for(var b in this.rd)if(this.rd[b].nj(a))return!0;return!1};q.clear=function(){this.rd={};this.qb=void 0};
q.remove=function(a){for(var b=this,c=[],e=0;e<a.length;e++){var f=a.charAt(e);if(!b.rd[f])throw Error('The collection does not have the key "'+a+'"');c.push([b,f]);b=b.rd[f]}a=b.qb;for(delete b.qb;0<c.length;)if(f=c.pop(),b=f[0],f=f[1],b.rd[f].Sb())delete b.rd[f];else break;return a};q.clone=function(){return new YD(this)};q.sa=function(){return yv(this.nb())};q.Sb=function(){return void 0===this.qb&&Us(this.rd)};var $D=function(a,b,c){V.call(this,c);this.v=b||ZD;this.xA=lx(a);this.ye=this.he=!1;this.R8=null;this.fca=yx;this.Fh=!0;this.Fy=-1};B($D,V);var aE={};q=$D.prototype;q.o=function(){$D.c.o.call(this);this.yo&&(this.yo.removeNode(this),this.yo=null);this.Na(null)};
q.FA=function(){var a=this.b();if(a){var b=this.fu();b&&!b.id&&(b.id=this.getId()+".label");MB(a,"treeitem");T(a,hn,!1);T(a,"level",this.Tk());b&&T(a,Dj,b.id);(b=this.bu())&&MB(b,vm);(b=this.Dz())&&MB(b,vm);if(b=this.Vm())if(MB(b,"group"),b.hasChildNodes())for(T(a,lh,!1),a=this.Xa(),b=1;b<=a;b++){var c=this.pa(b-1).b();C(c,"The child element cannot be null");T(c,"setsize",a);T(c,sm,b)}}};q.g=function(){var a=this.j().Nh(this.Ti());this.Na(a)};
q.B=function(){$D.c.B.call(this);aE[this.getId()]=this;this.FA()};q.Pa=function(){$D.c.Pa.call(this);delete aE[this.getId()]};q.pe=function(a,b){C(!a.getParent());Wr(a,$D);var c=this.pa(b-1),e=this.pa(b);$D.c.pe.call(this,a,b);a.Ei=c;a.fe=e;c?c.fe=a:this.TW=a;e?e.Ei=a:this.J0=a;(b=this.zd())&&a.hP(b);a.dO(this.Tk()+1);if(b=this.b())if(this.Ao(),T(b,lh,this.Md()),this.Md()){b=this.Vm();a.b()||a.g();var f=a.b(),g=e&&e.b();b.insertBefore(f,g);this.V&&a.B();e||(c?c.Ao():(R(b,!0),this.Td(this.Md())))}};
q.add=function(a,b){C(!b||b.getParent()==this,"Can only add nodes before siblings");a.getParent()&&a.getParent().removeChild(a);this.pe(a,b?this.De(b):this.Xa());return a};
q.removeChild=function(a){var b=this.zd(),c=b?b.xa():null;if(c==a||a.contains(c))b.hasFocus()?(this.select(),M(this.cua,10,this)):this.select();$D.c.removeChild.call(this,a);this.J0==a&&(this.J0=a.Ei);this.TW==a&&(this.TW=a.fe);a.Ei&&(a.Ei.fe=a.fe);a.fe&&(a.fe.Ei=a.Ei);c=a.UA();a.yo=null;a.Fy=-1;if(b&&(b.removeNode(a),this.V)){b=this.Vm();if(a.V){var e=a.b();b.removeChild(e);a.Pa()}c&&(c=this.TX())&&c.Ao();this.Ad()||(b.style.display=Ek,this.Ao(),this.JE(),(c=this.b())&&OB(c,lh))}return a};
q.remove=$D.prototype.removeChild;q.cua=function(){this.select()};q.Tk=function(){var a=this.Fy;0>a&&(a=this.Oda(),this.dO(a));return a};q.Oda=function(){var a=this.getParent();return a?a.Tk()+1:0};q.dO=function(a){if(a!=this.Fy){this.Fy=a;var b=this.Od();if(b){var c=this.hY()+n;this.Eh()?b.style.paddingRight=c:b.style.paddingLeft=c}this.Ia(function(b){b.dO(a+1)})}};q.contains=function(a){for(;a;){if(a==this)return!0;a=a.getParent()}return!1};
q.Pc=function(){var a=[];this.Ia(function(b){a.push(b)});return a};q.si=function(){return this.pa(0)};q.TX=function(){return this.pa(this.Xa()-1)};q.UA=function(){return!this.fe};q.Rd=function(){return this.he};q.select=function(){var a=this.zd();a&&a.Bb(this)};q.VO=function(a){if(this.he!=a){this.he=a;this.gx();var b=this.b();b&&(T(b,hn,a),a&&(a=this.zd().b(),C(a,"The DOM element for the tree cannot be null"),T(a,ee,this.getId())))}};q.Md=function(){return this.ye};q.vw=function(a){this.ye=a};
q.Td=function(a){var b=a!=this.ye;if(!b||this.dispatchEvent(a?"beforeexpand":"beforecollapse")){this.ye=a;var c=this.zd();var e=this.b();if(this.Ad()){if(!a&&c&&this.contains(c.xa())&&this.select(),e){if(c=this.Vm())if(R(c,a),T(e,lh,a),a&&this.V&&!c.hasChildNodes()){var f=[];this.Ia(function(a){f.push(a.Ti())});Ox(c,vx(f));this.Ia(function(a){a.B()})}this.Ao()}}else(c=this.Vm())&&R(c,!1);e&&this.JE();b&&this.dispatchEvent(a?kh:"collapse")}};q.toggle=function(){this.Td(!this.Md())};q.expand=function(){this.Td(!0)};
q.collapse=function(){this.Td(!1)};q.Jda=function(){this.Ia(function(a){a.Ks()})};q.Ks=function(){this.Jda();this.collapse()};q.Dga=function(){this.Ia(function(a){a.bz()})};q.bz=function(){this.Dga();this.expand()};q.Yv=function(){var a=this.getParent();a&&(a.Td(!0),a.Yv())};q.DD=function(a){(this.Fh=a)||this.expand();this.b()&&this.Ao()};
q.Ti=function(){var a=this.zd(),b=!a.Lw||a==this.getParent()&&!a.Mw?this.v.TU:this.v.SU;a=this.Md()&&this.Ad();b={"class":b,style:this.oja()};var c=[];a&&this.Ia(function(a){c.push(a.Ti())});a=sx(Fg,b,c);return sx(Fg,{"class":this.v.PG,id:this.getId()},[this.oka(),a])};q.hY=function(){return Math.max(0,(this.Tk()-1)*this.v.r_)};q.oka=function(){var a={};a[nl+(this.Eh()?Pm:Ij)]=this.hY()+n;a={"class":this.an(),style:a};var b=[this.FX(),this.Xia(),this.ija()];return sx(Fg,a,b)};
q.an=function(){var a=this.Rd()?" "+this.v.$ea:"";return this.v.$U+a};q.ija=function(){var a=sx(Jo,{"class":this.v.QG,title:this.R8||null},this.xA);return vx(a,sx(Jo,{},this.fca))};q.Xia=function(){return sx(Jo,{style:{display:"inline-block"},"class":this.wz()})};q.FX=function(){return sx(Jo,{type:kh,style:{display:"inline-block"},"class":this.TI()})};
q.TI=function(){var a=this.zd(),b=!a.Lw||a==this.getParent()&&!a.Mw,c=this.v,e=new VA;e.append(c.op," ",c.Sea," ");if(this.Ad()){var f=0;a.zP&&this.Fh&&(f=this.Md()?2:1);b||(f=this.UA()?f+4:f+8);switch(f){case 1:e.append(c.XU);break;case 2:e.append(c.WU);break;case 4:e.append(c.VU);break;case 5:e.append(c.Uea);break;case 6:e.append(c.Tea);break;case 8:e.append(c.YU);break;case 9:e.append(c.Wea);break;case 10:e.append(c.Vea);break;default:e.append(c.zy)}}else b?e.append(c.zy):this.UA()?e.append(c.VU):
e.append(c.YU);return e.toString()};q.oja=function(){var a=this.Md()&&this.Ad();return Ww({"background-position":this.lX(),display:a?null:Ek})};q.lX=function(){return(this.UA()?"-100":(this.Tk()-1)*this.v.r_)+"px 0"};q.b=function(){var a=$D.c.b.call(this);a||(a=this.j().b(this.getId()),this.Na(a));return a};q.Od=function(){var a=this.b();return a?a.firstChild:null};q.Dz=function(){var a=this.Od();return a?a.firstChild:null};q.bu=function(){var a=this.Od();return a?a.childNodes[1]:null};
q.fu=function(){var a=this.Od();return a&&a.lastChild?a.lastChild.previousSibling:null};q.yI=function(){var a=this.Od();return a?a.lastChild:null};q.Vm=function(){var a=this.b();return a?a.lastChild:null};q.Y5=function(a){this.h_=a;this.V&&this.JE()};q.L5=function(a){this.AW=a;this.V&&this.JE()};q.fP=function(a){this.Rh(kx(a))};q.getText=function(){return ur(ix(this.xA))};q.Rh=function(a){this.xA=a;var b=this.fu();b&&Ox(b,a);(a=this.zd())&&a.r6(this)};q.YI=function(){return ix(this.xA)};
q.V6=function(a){this.R8=a;var b=this.fu();b&&(b.title=a)};q.gx=function(){var a=this.Od();a&&(a.className=this.an())};q.Ao=function(){var a=this.Dz();a&&(a.className=this.TI());if(a=this.Vm())a.style.backgroundPosition=this.lX()};q.JE=function(){this.bu().className=this.wz()};q.hC=function(a){a.target.getAttribute(tp)==kh&&this.Ad()?this.Fh&&this.toggle():(this.select(),this.gx())};q.g2=zu;q.Cv=function(a){a.target.getAttribute(tp)==kh&&this.Ad()||this.Fh&&this.toggle()};
q.Jta=function(a){var b=!0;switch(a.keyCode){case 39:if(a.altKey)break;this.Ad()&&(this.Md()?this.si().select():this.Td(!0));break;case 37:if(a.altKey)break;if(this.Ad()&&this.Md()&&this.Fh)this.Td(!1);else{var c=this.getParent(),e=this.zd();c&&(e.Yl||c!=e)&&c.select()}break;case 40:(c=this.$X())&&c.select();break;case 38:(c=this.lJ())&&c.select();break;default:b=!1}b&&(a.preventDefault(),(e=this.zd())&&e.Bda());return b};q.eJ=function(){return this.Md()&&this.Ad()?this.TX().eJ():this};
q.$X=function(){if(this.Ad()&&this.Md())return this.si();for(var a=this,b;a!=this.zd();){b=a.fe;if(null!=b)return b;a=a.getParent()}return null};q.lJ=function(){var a=this.Ei;if(null!=a)return a.eJ();a=this.getParent();var b=this.zd();return!b.Yl&&a==b||this==b?null:a};q.$d=$D.prototype.Cja;q.wD=$D.prototype.Dc;q.hP=function(a){this.yo!=a&&(this.yo=a,a.r6(this),this.Ia(function(b){b.hP(a)}))};
var ZD={r_:19,Zea:"goog-tree-root goog-tree-item",Xea:"goog-tree-hide-root",PG:"goog-tree-item",SU:"goog-tree-children",TU:"goog-tree-children-nolines",$U:"goog-tree-row",QG:"goog-tree-item-label",op:"goog-tree-icon",Sea:"goog-tree-expand-icon",XU:"goog-tree-expand-icon-plus",WU:"goog-tree-expand-icon-minus",Wea:"goog-tree-expand-icon-tplus",Vea:"goog-tree-expand-icon-tminus",Uea:"goog-tree-expand-icon-lplus",Tea:"goog-tree-expand-icon-lminus",YU:"goog-tree-expand-icon-t",VU:"goog-tree-expand-icon-l",
zy:"goog-tree-expand-icon-blank",OG:qi,NG:pi,Vs:"goog-tree-file-icon",ZU:qi,UU:pi,$ea:hn};var bE=function(a,b,c){$D.call(this,a,b,c)};B(bE,$D);bE.prototype.zd=function(){if(this.yo)return this.yo;var a=this.getParent();return a&&(a=a.zd())?(this.hP(a),a):null};bE.prototype.wz=function(){var a=this.Md(),b=this.AW;if(a&&b)return b;b=this.h_;if(!a&&b)return b;b=this.v;if(this.Ad()){if(a&&b.OG)return b.op+" "+b.OG;if(!a&&b.NG)return b.op+" "+b.NG}else if(b.Vs)return b.op+" "+b.Vs;return""};var cE=function(){this.Kn=new YD;this.Zc="";this.CB=this.RL=null;this.Iq=this.pv=0};q=cE.prototype;q.fna=function(a){var b=!1;switch(a.keyCode){case 40:case 38:a.ctrlKey&&(this.rra(40==a.keyCode?1:-1),b=!0);break;case 8:a=this.Zc.length-1;b=!0;0<a?(this.Zc=this.Zc.substring(0,a),this.D0(this.Zc)):0==a?this.Zc="":b=!1;break;case 27:this.Zc="",b=!0}return b};
q.voa=function(a){var b=!1;a.ctrlKey||a.altKey||(a=String.fromCharCode(a.charCode||a.keyCode).toLowerCase(),(1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a)&&(" "!=a||this.Zc)&&(this.Zc+=a,b=this.D0(this.Zc)));return b};q.gAa=function(a){var b=a.getText();if(b&&!ar(Ar(b))){b=b.toLowerCase();var c=this.Kn.get(b);c?c.push(a):this.Kn.set(b,[a])}};
q.O3=function(a){var b=a.getText();if(b&&!ar(Ar(b))){b=b.toLowerCase();var c=this.Kn.get(b);if(c){for(var e=a.Xa(),f=0;f<e;f++)this.O3(a.pa(f));os(c,a);c.length||this.Kn.remove(b)}}};q.D0=function(a){var b=!1;(a=this.Kn.bb(a))&&a.length&&(this.pv=this.Iq=0,b=this.Kn.get(a[0]),b=this.W4(b))&&(this.RL=a);return b};
q.rra=function(a){var b=!1,c=this.RL;if(c){b=null;var e=!1;if(this.CB){var f=this.Iq+a;0<=f&&f<this.CB.length?(this.Iq=f,b=this.CB):e=!0}b||(f=this.pv+a,0<=f&&f<c.length&&(this.pv=f),c.length>this.pv&&(b=this.Kn.get(c[this.pv])),b&&b.length&&e&&(this.Iq=-1==a?b.length-1:0));if(b=this.W4(b))this.RL=c}return b};q.W4=function(a){if(a){if(this.Iq<a.length){var b=a[this.Iq];this.CB=a}b&&(b.Yv(),b.select())}return!!b};q.clear=function(){this.Zc=""};var dE=function(a,b,c){$D.call(this,a,b,c);this.vw(!0);this.VO(!0);this.Vc=this;this.dx=new cE;this.vh=this.rb=null;this.F=ov("this");this.oI=!1;this.aha=null;this.Mw=this.Yl=this.zP=this.Lw=!0;if(E)try{document.execCommand(Nb,!1,!0)}catch(e){qv(this.F,"Failed to enable background image cache")}};B(dE,$D);q=dE.prototype;q.zd=function(){return this};q.Tk=function(){return 0};q.Yv=function(){};q.hn=function(){this.oI=!0;U(C(this.b()),"focused");this.Vc&&this.Vc.select()};
q.gq=function(){this.oI=!1;dC(C(this.b()),"focused")};q.hasFocus=function(){return this.oI};q.Md=function(){return!this.Yl||dE.c.Md.call(this)};q.Td=function(a){this.Yl?dE.c.Td.call(this,a):this.vw(a)};q.FX=function(){return yx};q.bu=function(){var a=this.Od();return a?a.firstChild:null};q.Dz=function(){return null};q.Ao=function(){};q.an=function(){return dE.c.an.call(this)+(this.Yl?"":" "+this.v.Xea)};
q.wz=function(){var a=this.Md(),b=this.AW;if(a&&b)return b;b=this.h_;if(!a&&b)return b;b=this.v;return a&&b.ZU?b.op+" "+b.ZU:!a&&b.UU?b.op+" "+b.UU:""};q.Bb=function(a){if(this.Vc!=a){var b=!1;this.Vc&&(b=this.Vc==this.aha,this.Vc.VO(!1));if(this.Vc=a)a.VO(!0),b&&a.select();this.dispatchEvent(tf)}};q.xa=function(){return this.Vc};q.ZO=function(a){this.Lw!=a&&(this.Lw=a,this.V&&this.EQ())};
q.EQ=function(){function a(f){var g=f.Vm();if(g){var h=!c||b==f.getParent()&&!e?f.v.TU:f.v.SU;g.className=h;if(g=f.Dz())g.className=f.TI()}f.Ia(a)}var b=this,c=b.Lw,e=b.Mw;a(this)};q.J6=function(a){this.Mw!=a&&(this.Mw=a,this.V&&this.EQ())};q.NAa=function(a){this.zP!=a&&(this.zP=a,this.V&&this.EQ())};q.$O=function(a){if(this.Yl!=a){this.Yl=a;if(this.V){var b=this.Od();b&&(b.className=this.an())}!a&&this.xa()==this&&this.si()&&this.Bb(this.si())}};
q.FA=function(){dE.c.FA.call(this);var a=this.b();C(a,"The DOM element for the tree cannot be null.");MB(a,"tree");T(a,Dj,this.fu().id)};q.B=function(){dE.c.B.call(this);var a=this.b();a.className=this.v.Zea;a.setAttribute("hideFocus",sp);this.$o();this.FA()};q.Pa=function(){dE.c.Pa.call(this);this.rj()};
q.$o=function(){var a=this.b();a.tabIndex=0;var b=this.rb=new MC(a),c=this.vh=new lC(a);this.A().listen(c,Bh,this.gq).listen(c,Ah,this.hn).listen(b,yj,this.ec).listen(a,nk,this.CJ).listen(a,Bf,this.CJ).listen(a,vg,this.CJ)};q.rj=function(){this.rb.dispose();this.rb=null;this.vh.dispose();this.vh=null};q.CJ=function(a){rv(this.F,"Received event "+a.type);var b=this.Nja(a);if(b)switch(a.type){case nk:b.hC(a);break;case Bf:b.g2(a);break;case vg:b.Cv(a)}};
q.ec=function(a){var b;(b=this.dx.fna(a)||this.Vc&&this.Vc.Jta(a)||this.dx.voa(a))&&a.preventDefault();return b};q.Nja=function(a){for(var b=a.target;null!=b;){if(a=aE[b.id])return a;if(b==this.b())break;b=b.parentNode}return null};q.createNode=function(a){return new bE(a||yx,this.v,this.j())};q.r6=function(a){this.dx.gAa(a)};q.removeNode=function(a){this.dx.O3(a)};q.Bda=function(){this.dx.clear()};var eE=ZD;var fE=function(a,b){b=a?N(a):b;V.call(this,b);this.QM=a||this.j().K().body;this.mC={};this.UQ=0;this.Rq=this.Ps=this.fi=null;this.J2=this.K2=0;this.Pg=null;this.DN=!0;this.Tm=this.Vq=!1};B(fE,V);var gE=[tm,op,Ij,kq,"cssFloat"],hE=[tm,op,Ij,"display","cssFloat","marginTop","marginLeft","marginRight","marginBottom"];q=fE.prototype;q.g=function(){fE.c.g.call(this);this.Ka(this.b())};q.Ka=function(a){fE.c.Ka.call(this,a);C(a);U(a,"goog-scrollfloater")};
q.B=function(){fE.c.B.call(this);this.Pg||(this.Pg=this.j().g(d,{style:"visibility:hidden"}));this.update();this.SO(this.DN);var a=this.j().getWindow();this.A().listen(a,bn,this.lq).listen(a,Om,this.update)};q.update=function(){if(this.V){this.Cp();this.fi&&(this.Ps=bA(this.fi));var a=Pz(this.b());this.Rq=bA(this.b());this.K2=a.y;this.J2=a.x;this.lq()}};q.o=function(){fE.c.o.call(this);this.Pg=null};q.SO=function(a){(this.DN=a)?(this.xca(),this.lq()):this.Cp()};
q.lq=function(){if(this.DN){var a=this.j().Df().y;if(this.Rq.top-a>=this.UQ)this.Cp();else{var b=this.Rq.height+this.UQ;if(this.fi&&a>this.Ps.top+this.Ps.height-b)this.Wua();else{var c=this.j().qu().height;this.UB()||b<c?this.XW(0):this.Rq.height+this.K2>c+a?this.Cp():this.XW(1)}}}};q.Wua=function(){if((!this.Tm||this.Cp())&&!this.Vq&&this.dispatchEvent("pin")){var a=this.b();this.s8();a.style.position=Mm;a.style.top=this.Ps.height-this.Rq.height-this.Rq.top+this.Ps.top+n;this.Vq=!0}};
q.XW=function(a){a=0==a;if((!this.Vq||this.Cp())&&this.dispatchEvent("float")){var b=jy(document).x;if(this.Tm)this.WDa();else{var c=this.b(),e=Pz(c).x,f=lA(c).width;this.s8();$z(this.Pg,c.offsetWidth,c.offsetHeight);Q(c,{left:e-b+n,width:f+n,cssFloat:Ek});c.parentNode==this.QM?c.parentNode.insertBefore(this.Pg,c):(c.parentNode.replaceChild(this.Pg,c),this.QM.appendChild(c));this.UB()?(c.style.position=be,c.style.setExpression(op,'document.compatMode=="CSS1Compat"?documentElement.scrollTop:document.body.scrollTop')):
(c.style.position=yh,a?(c.style.top=this.UQ+n,c.style.bottom=af):(c.style.top=af,c.style.bottom="0"));this.Tm=!0}}};q.Cp=function(){if(!this.Tm&&!this.Vq||!this.dispatchEvent("dock"))return!1;var a=this.b();this.Tm&&(this.r4(),this.UB()&&a.style.removeExpression(op),this.Pg.parentNode==this.QM?this.Pg.parentNode.removeChild(this.Pg):this.Pg.parentNode.replaceChild(a,this.Pg));this.Vq&&this.r4();this.Tm=this.Vq=!1;return!0};
q.WDa=function(){C(this.Tm);var a=jy(document).x;Q(this.b(),{left:this.J2-a+n})};q.s8=function(){var a=this.b();this.mC={};D(gE,function(b){this.mC[b]=a.style[b]},this);D(hE,function(b){this.Pg.style[b]=a.style[b]||(a.currentStyle?a.currentStyle[b]:null)||Gz(a,b)},this)};q.r4=function(){var a=this.b(),b;for(b in this.mC)a.style[b]=this.mC[b]};q.UB=function(){return E&&!(Qt("7")&&this.j().Tu())};
q.xca=function(){if(this.UB()){var a=this.j().K();a=Mz(a);a.currentStyle.backgroundImage==Ek&&(a.style.backgroundImage=this.j().getWindow().location.protocol==Hi?"url(https:///)":"url(about:blank)",a.style.backgroundAttachment=yh)}};var iE=function(a){J.call(this);this.wa=null;this.D=a;a=E||wt||zt&&!Qt("531")&&a.tagName==yd;this.G=new jC(this);this.G.listen(this.D,a?[zj,"paste","cut","drop",Vi]:Vi,this)};B(iE,J);
iE.prototype.handleEvent=function(a){if(a.type==Vi)E&&Qt(10)&&0==a.keyCode&&0==a.charCode||(this.hG(),this.dispatchEvent(this.AU(a)));else if(a.type!=zj||hB(a)){var b=a.type==zj?this.D.value:null;E&&229==a.keyCode&&(b=null);var c=this.AU(a);this.hG();this.wa=M(function(){this.wa=null;this.D.value!=b&&this.dispatchEvent(c)},0,this)}};iE.prototype.hG=function(){null!=this.wa&&(Rv(this.wa),this.wa=null)};iE.prototype.AU=function(a){a=new Cu(a.bd);a.type=Vi;return a};
iE.prototype.o=function(){iE.c.o.call(this);this.G.dispose();this.hG();delete this.D};var jE=function(a){V.call(this,a)};B(jE,V);q=jE.prototype;q.fd=null;q.Ka=function(a){jE.c.Ka.call(this,a);this.IA()};q.g=function(){this.Na(this.j().g(Jc,{type:$o}));this.IA()};q.IA=function(){this.eO();this.fd=new iE(this.b());I(this.fd,Vi,this.eO,!1,this)};q.eO=function(){var a=this.b();if(a){var b=this.getValue();switch(Bw(b)){case 1:a.dir=Tj;break;case -1:a.dir=Tm;break;default:a.removeAttribute("dir")}}};q.Ej=function(){var a=this.b().dir;""==a&&(a=null);return a};
q.setValue=function(a){var b=this.b();null!=b.value?b.value=a:Gy(b,a);this.eO()};q.getValue=function(){var a=this.b();return null!=a.value?a.value:Py(a)};q.o=function(){this.fd&&(Xu(this.fd),this.fd.dispose(),this.fd=null,jE.c.o.call(this))};var kE=function(a,b,c){F.call(this);this.Pf=null!=c?y(a,c):a;this.Fe=b;this.Mc=y(this.dua,this);this.GF=[]};B(kE,F);q=kE.prototype;q.Hr=!1;q.Iv=0;q.wa=null;q.Ht=function(a){this.GF=arguments;this.wa||this.Iv?this.Hr=!0:this.Bp()};q.stop=function(){this.wa&&(Rv(this.wa),this.wa=null,this.Hr=!1,this.GF=[])};q.pause=function(){this.Iv++};q.resume=function(){this.Iv--;this.Iv||!this.Hr||this.wa||(this.Hr=!1,this.Bp())};q.o=function(){kE.c.o.call(this);this.stop()};
q.dua=function(){this.wa=null;this.Hr&&!this.Iv&&(this.Hr=!1,this.Bp())};q.Bp=function(){this.wa=M(this.Mc,this.Fe);this.Pf.apply(null,this.GF)};var nE=function(a,b){var c=0,e=0;if(lE(a))c=a.selectionStart,e=b?-1:a.selectionEnd;else if(E&&!Qt("9")){var f=mE(a),g=f[0];f=f[1];if(g.inRange(f)){g.setEndPoint("EndToStart",f);if(a.type==cp){a=f.duplicate();var h=g.text;c=h;f=e=a.text;for(var l=!1;!l;)0==g.compareEndPoints("StartToEnd",g)?l=!0:(g.moveEnd(wf,-1),g.text==h?c+="\r\n":l=!0);if(b)b=[c.length,-1];else{for(b=!1;!b;)0==a.compareEndPoints("StartToEnd",a)?b=!0:(a.moveEnd(wf,-1),a.text==e?f+="\r\n":b=!0);b=[c.length,c.length+f.length]}return b}c=
g.text.length;e=b?-1:g.text.length+f.text.length}}return[c,e]},mE=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();a.type==cp?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]},oE=function(a,b){a.type==cp&&(b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length);return b},lE=function(a){try{return typeof a.selectionStart==Ik}catch(b){return!1}};var pE=function(a,b,c){for(var e=[],f=0;f<c.length;f++){var g=c[f],h=a.toLowerCase(),l=String(g).toLowerCase(),p=0;if(-1!=l.indexOf(h))p=parseInt((l.indexOf(h)/4).toString(),10);else for(var r=h.split(""),z=-1,O=10,ea=0,qa;qa=r[ea];ea++)qa=l.indexOf(qa),qa>z?(z=qa-z-1,z>O-5&&(z=O-5),p+=z,z=qa):(p+=O,O+=5);p<6*h.length&&e.push({MCa:g,N4:p,index:f})}e.sort(function(a,b){var c=a.N4-b.N4;return 0!=c?c:a.index-b.index});a=[];for(ea=0;ea<b&&ea<e.length;ea++)a.push(e[ea].MCa);return a};var qE=function(a,b,c){J.call(this);this.ov=a;this.Fd=c;this.M=b;I(b,["hilite",en,"canceldismiss",Eg],this.handleEvent,!1,this);this.I=null;this.mc=[];this.Pj=-1;this.Ze=0;this.vf=this.ab=null;this.F_={}};B(qE,J);q=qE.prototype;q.isa=10;q.VS=!0;q.oS=!1;q.l$=!1;q.d9=!1;q.getToken=function(){return this.I};
q.handleEvent=function(a){var b=this.ov;if(a.target==this.M)switch(a.type){case "hilite":this.Oj(a.row);break;case en:var c=!1;if(Hq(a.row)){a=a.row;var e=this.mc[this.cu(a)];c=!!e&&b.ZK&&b.ZK(e);e&&!c&&this.Pj!=a&&this.Oj(a)}c||this.mD();break;case "canceldismiss":this.eG();break;case Eg:this.sH()}};q.qya=function(a){this.VS=a};q.setToken=function(a,b){this.I!=a&&(this.I=a,this.ov.Wwa(this.I,this.isa,y(this.hsa,this),b),this.eG())};q.fBa=function(a){this.ab=a};q.Qd=function(){return this.M.N()};
q.gK=function(){for(var a=this.Ze+this.mc.length-1,b=this.Pj,c=0;c<this.mc.length;c++){if(b>=this.Ze&&b<a)b++;else if(-1==b)b=this.Ze;else if(this.oS&&b==a){this.Oj(-1);break}else if(this.l$&&b==a)b=this.Ze;else break;if(this.Oj(b))return!0}return!1};q.$Z=function(){for(var a=this.Ze+this.mc.length-1,b=this.Pj,c=0;c<this.mc.length;c++){if(b>this.Ze)b--;else if(this.oS&&b==this.Ze){this.Oj(-1);break}else if(!this.l$||-1!=b&&b!=this.Ze)break;else b=a;if(this.Oj(b))return!0}return!1};
q.Oj=function(a){var b=this.cu(a),c=this.mc[b];return c&&this.ov.ZK&&this.ov.ZK(c)?!1:(this.Pj=a,this.M.Oj(a),-1!=b)};q.mD=function(){var a=this.cu(this.Pj);if(-1!=a){var b=this.mc[a],c=this.Fd.JN(b);this.d9?(this.I=null,this.sH()):this.gi();c||(this.dispatchEvent({type:"update",row:b,index:a}),this.d9&&this.Fd.update(!0));return!0}this.gi();this.dispatchEvent({type:"update",row:null,index:null});return!1};q.Poa=function(){return this.Qd()&&-1!=this.cu(this.Pj)};
q.gi=function(){this.Pj=-1;this.I=null;this.Ze+=this.mc.length;this.mc=[];window.clearTimeout(this.vf);this.vf=null;this.M.gi();this.dispatchEvent(Wo);this.dispatchEvent(Eg)};q.sH=function(){this.vf||(this.vf=window.setTimeout(y(this.gi,this),100))};q.p_=function(){return this.vf?(window.clearTimeout(this.vf),this.vf=null,!0):!1};q.eG=function(){this.p_()||window.setTimeout(y(this.p_,this),10)};q.o=function(){qE.c.o.call(this);delete this.F_;this.M.dispose();this.Fd.dispose();this.ov=null};
q.hsa=function(a,b,c){this.I==a&&this.lN(b,c)};q.lN=function(a,b){var c=Lq(b)==Jk&&b;b=(c?c.GNa():b)?this.cu(this.Pj):-1;this.Ze+=this.mc.length;this.mc=a;for(var e=[],f=0;f<a.length;++f)e.push({id:this.QX(f),data:a[f]});a=null;this.ab&&(a=this.F_[Rq(this.ab)]||this.ab);this.M.Ql(a);this.M.lN(e,this.I,this.ab);a=this.VS;c&&void 0!==c.Wha()&&(a=c.Wha());this.Pj=-1;(a||0<=b)&&0!=e.length&&this.I&&(0<=b?this.Oj(this.QX(b)):this.gK());this.dispatchEvent(Wo)};
q.cu=function(a){a-=this.Ze;return 0>a||a>=this.mc.length?-1:a};q.QX=function(a){return this.Ze+a};q.update=function(a){this.Fd.update(a)};var rE=function(a,b,c,e){F.call(this);e=e||150;this.Lq=null!=c?c:!0;this.HAa(a||",;");this.Wj=b||"";this.rva=!1;this.qva=this.Lq;this.wa=0<e?new Qv(e):null;this.Jd=new jC(this);this.nF=new jC(this);this.rb=new MC;this.M0=-1};B(rE,F);var sE=(tA||uA)&&!Qt("533.17.9");q=rE.prototype;q.$Ea=!0;q.Mha=!0;q.I9=!1;q.Yxa=!0;q.Xxa=!0;q.pF=null;q.Ub=null;q.vL="";q.mm=!1;q.wN=!1;q.VDa=!0;q.Ica=function(a){this.Ib=a};q.Rt=function(){return this.Ub};q.getValue=function(){return this.Ub.value};
q.setValue=function(a){this.Ub.value=a};q.sX=function(){return nE(this.Ub,!0)[0]};q.Nya=function(a){var b=this.Ub,c=a;if(lE(b))b.selectionStart=c;else if(E&&!Qt("9")){var e=mE(b),f=e[0];f.inRange(e[1])&&(c=oE(b,c),f.collapse(!0),f.move(wf,c),f.select())}b=this.Ub;lE(b)?b.selectionEnd=a:E&&!Qt("9")&&(e=mE(b),c=e[1],e[0].inRange(c)&&(a=oE(b,a),b=oE(b,nE(b,!0)[0]),c.collapse(!0),c.moveEnd(wf,a-b),c.select()))};
q.MS=function(a){Dy(a)&&(MB(a,Ff),T(a,bf,Kj));this.Jd.listen(a,zh,this.Be);this.Jd.listen(a,hf,this.af);if(!this.Ub&&(this.nF.listen(a,zj,this.Kta),Dy(a))){var b=Zx(a);Sy(b)==a&&this.o3(a)}};q.JN=function(a,b){this.Ub&&this.hBa(a.toString(),b);return!1};
q.hBa=function(a,b){if(u(b)?b:this.Lq){b=this.AY(this.getValue(),this.sX());var c=this.OP(this.getValue());this.Wxa.test(a)||(a=a.replace(/[\s\xa0]+$/,"")+this.ifa);this.$Ea&&(0==b||ar(c[b-1])||(a=" "+a),b==c.length-1&&(a+=" "));if(a!=c[b]){c[b]=a;a=this.Ub;(yt||E&&Qt("9"))&&a.blur();a.value=c.join("");for(var e=0,f=0;f<=b;f++)e+=c[f].length;a.focus();this.Nya(e)}}else this.setValue(a);this.wN=!0};
q.o=function(){rE.c.o.call(this);null!=this.pF&&window.clearTimeout(this.pF);this.Jd.dispose();delete this.Jd;this.nF.dispose();this.rb.dispose();G(this.wa)};q.HAa=function(a,b){this.lw=a;this.ifa=null!=b?b:this.lw.substring(0,1);a=this.Lq?"[\\s"+this.lw+"]+":"[\\s]+";this.f9=new RegExp("^"+a+"|"+a+"$","g");this.Wxa=new RegExp("\\s*["+this.lw+"]$")};
q.ec=function(a){switch(a.keyCode){case 40:if(this.Ib.Qd())return this.eM(),a.preventDefault(),!0;if(!this.Lq)return this.update(!0),a.preventDefault(),!0;break;case 38:if(this.Ib.Qd())return this.hM(),a.preventDefault(),!0;break;case 9:if(!this.Ib.Qd()||a.shiftKey||this.rva)this.Ib.gi();else if(this.update(),this.Ib.mD()&&this.qva)return a.preventDefault(),!0;break;case 13:if(this.Ib.Qd()){if(this.update(),this.Ib.mD())return a.preventDefault(),a.stopPropagation(),!0}else this.Ib.gi();break;case 27:if(this.Ib.Qd())return this.Ib.gi(),
a.preventDefault(),a.stopPropagation(),!0;break;case 229:if(!this.mm)return this.HCa(),!0;break;default:this.wa&&!this.VDa&&(this.wa.stop(),this.wa.start())}return this.uZ(a)};q.uZ=function(a){var b=this.Lq&&a.charCode&&-1!=this.lw.indexOf(String.fromCharCode(a.charCode));this.Yxa&&b&&this.update();return this.Xxa&&b&&this.Ib.mD()?(a.preventDefault(),!0):!1};q.Fma=function(){return!1};
q.zba=function(){this.rb.pd(this.Ub);this.Jd.listen(this.rb,yj,this.Nn);this.Jd.listen(this.Ub,nk,this.r2);E&&this.Jd.listen(this.Ub,Aj,this.o2)};q.fwa=function(){this.Jd.ta(this.rb,yj,this.Nn);this.rb.detach();this.Jd.ta(this.Ub,Bj,this.Fma);this.Jd.ta(this.Ub,nk,this.r2);E&&this.Jd.ta(this.Ub,Aj,this.o2);this.mm&&this.WP()};q.Be=function(a){this.o3(a.target||null)};
q.o3=function(a){this.nF.removeAll();this.Ib&&this.Ib.eG();a!=this.Ub&&(this.Ub=a,this.wa&&(this.wa.start(),this.Jd.listen(this.wa,fp,this.Qq)),this.vL=this.getValue(),this.zba())};q.af=function(){sE?this.pF=window.setTimeout(y(this.k3,this),0):this.k3()};q.k3=function(){this.Ub&&(this.fwa(),this.Ub=null,this.wa&&(this.wa.stop(),this.Jd.ta(this.wa,fp,this.Qq)),this.Ib&&this.Ib.sH())};q.Qq=function(){this.update()};q.Kta=function(a){this.Be(a)};q.Nn=function(a){this.M0=a.keyCode;this.Ib&&this.ec(a)};
q.p2=function(){this.mm&&229!=this.M0&&this.WP()};q.q2=function(a){this.mm&&(13==a.keyCode||77==a.keyCode&&a.ctrlKey)&&this.WP()};q.r2=function(a){this.Ib&&this.Qc(a)};q.Qc=function(){};q.HCa=function(){this.mm||(this.Jd.listen(this.Ub,Bj,this.q2),this.Jd.listen(this.Ub,Aj,this.p2),this.mm=!0)};q.WP=function(){this.mm&&(this.mm=!1,this.Jd.ta(this.Ub,Aj,this.p2),this.Jd.ta(this.Ub,Bj,this.q2))};q.o2=function(a){this.uZ(a)};
q.update=function(a){if(this.Ub&&(a||this.getValue()!=this.vL)){if(a||!this.wN)a=this.Pua(),this.Ib&&(this.Ib.fBa(this.Ub),this.Ib.setToken(a,this.getValue()));this.vL=this.getValue()}this.wN=!1};q.Pua=function(){return this.Qua()};q.hM=function(){return this.I9?this.Ib.gK():this.Ib.$Z()};q.eM=function(){return this.I9?this.Ib.$Z():this.Ib.gK()};q.Qua=function(){var a=this.sX(),b=this.getValue();return this.HDa(this.OP(b)[this.AY(b,a)])};
q.HDa=function(a){return this.f9?String(a).replace(this.f9,""):a};q.AY=function(a,b){var c=this.OP(a);if(b==a.length)return c.length-1;for(var e=a=0,f=0;e<c.length&&f<=b;e++)f+=c[e].length,a=e;return a};
q.OP=function(a){if(!this.Lq)return[a];a=String(a).split("");for(var b=[],c=[],e=0,f=!1;e<a.length;e++)this.Wj&&-1!=this.Wj.indexOf(a[e])?(this.Mha&&!f&&(b.push(c.join("")),c.length=0),c.push(a[e]),f=!f):f||-1==this.lw.indexOf(a[e])?c.push(a[e]):(c.push(a[e]),b.push(c.join("")),c.length=0);b.push(c.join(""));return b};var tE=function(a,b,c,e){J.call(this);this.ea=a||document.body;this.Z=N(this.ea);this.ir=!a;this.D=null;this.I="";this.mc=[];this.ho=[];this.g8=this.wA=-1;this.Cb=!1;this.className="ac-renderer";this.dD="ac-row";this.V0=de;this.WR="ac-active";this.fpa="ac-highlighted";this.rp=b||null;this.HEa=null!=e?e:!0;this.v1=!0;this.vA=!1;this.jxa=!!c;this.xE=!1;this.IB=0;this.I7=!1};B(tE,J);q=tE.prototype;q.Sca=0;q.b=function(){return this.D};q.Rza=function(a){this.v1=a};q.Ql=function(a){this.ej=a};
q.lN=function(a,b,c){this.I=b;this.mc=a;this.wA=-1;this.g8=A();this.ab=c;this.ho=[];this.fN()};q.gi=function(){this.Cb&&(this.Cb=!1,this.N8(!1),0<this.IB?(G(this.qm),this.qm=new KA(this.D,this.IB),this.qm.play()):R(this.D,!1))};q.show=function(){this.Cb||(this.Cb=!0,this.N8(!0),0<this.IB?(G(this.qm),this.qm=new LA(this.D,this.IB),this.qm.play()):R(this.D,!0))};q.N8=function(a){this.ab&&(T(this.ab,wi,a),T(C(this.D),lh,a),T(this.ab,lh,a),a?T(this.ab,ml,this.D.id):(OB(this.ab,ml),RB(this.ab,null)))};
q.N=function(){return this.Cb};q.a_=function(a){var b=0<=a&&a<this.mc.length?this.mc[a]:void 0,c=0<=a&&a<this.ho.length?this.ho[a]:void 0;this.dispatchEvent({type:"rowhilite",gOa:c,row:b?b.data:null})&&(this.gpa(),this.wA=a,c&&(cC(c,[this.WR,this.V0]),this.ab&&RB(this.ab,c),Uz(c,this.D)))};q.gpa=function(){0<=this.wA&&eC(C(this.ho[this.wA]),[this.WR,this.V0])};q.Oj=function(a){if(-1==a)this.a_(-1);else for(var b=0;b<this.mc.length;b++)if(this.mc[b].id==a){this.a_(b);break}};
q.Yza=function(a){C(a);cC(a,cr(this.className).split(" "))};q.lsa=function(){if(!this.D){var a=this.Z.g(d,{style:"display:none"});this.I7&&(a.style.overflowY=af);this.D=a;this.Yza(a);MB(a,Lj);a.id=pC.H().Nd();this.Z.appendChild(this.ea,a);I(a,Bf,this.Jj,!1,this);I(a,nk,this.jA,!1,this);I(a,qk,this.nZ,!1,this)}};
q.fN=function(){this.lsa();this.xE&&(this.D.style.visibility=yi);this.aFa&&(this.D.style.minWidth=this.aFa.clientWidth-this.Sca+n);this.ho.length=0;this.Z.Ke(this.D);if(this.rp&&this.rp.render)this.rp.render(this,this.D,this.mc,this.I);else{var a=null;D(this.mc,function(b){b=this.Lwa(b,this.I);this.xE?this.D.insertBefore(b,a):this.Z.appendChild(this.D,b);a=b},this)}0==this.mc.length?this.gi():(this.show(),this.ha(),hA(this.D,!0))};q.Tha=function(){var a=this.jxa?5:1;this.xE&&(a^=1);return a};
q.ha=function(){if(this.ab&&this.ir){var a=this.ej||this.ab,b=this.Tha(),c=65;this.I7&&(this.D.style.height="",c|=32);HB(a,b,this.D,b^1,null,null,c);this.xE&&(this.D.style.visibility=fq)}};q.o=function(){this.D&&(Vu(this.D,Bf,this.Jj,!1,this),Vu(this.D,nk,this.jA,!1,this),Vu(this.D,qk,this.nZ,!1,this),this.Z.removeNode(this.D),this.D=null,this.Cb=!1);G(this.qm);this.ea=null;tE.c.o.call(this)};q.Kwa=function(a,b,c){Gy(c,a.data.toString())};q.BCa=function(a,b){this.h$=!1;this.fK(a,b)};
q.fK=function(a,b){if(this.vA||!this.h$)if(3==a.nodeType){var c=null;x(b)&&1<b.length&&!this.vA&&(c=ts(b,1));b=this.Nka(b);if(0!=b.length){var e=a.nodeValue,f=this.v1?new RegExp("\\b(?:"+b+")","gi"):new RegExp(b,"gi");b=[];for(var g=0,h=f.exec(e),l=0;h;)l++,b.push(e.substring(g,h.index)),b.push(e.substring(h.index,f.lastIndex)),g=f.lastIndex,h=f.exec(e);b.push(e.substring(g));if(1<b.length){c=this.vA?l:1;for(e=0;e<c;e++)f=2*e,a.nodeValue=b[f],g=this.Z.createElement("B"),g.className=this.fpa,this.Z.appendChild(g,
this.Z.createTextNode(b[f+1])),g=a.parentNode.insertBefore(g,a.nextSibling),a.parentNode.insertBefore(this.Z.createTextNode(""),g.nextSibling),a=g.nextSibling;b=ts(b,2*c);a.nodeValue=b.join("");this.h$=!0}else c&&this.fK(a,c)}}else for(a=a.firstChild;a;)c=a.nextSibling,this.fK(a,b),a=c};
q.Nka=function(a){var b="";if(!a)return b;x(a)&&(a=$r(a,function(a){return!ar(Ar(a))}));this.vA?x(a)?b=as(a,xr).join("|"):(b=a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,""),b=xr(b),b=b.replace(/ /g,"|")):x(a)?b=0<a.length?xr(a[0]):"":/^\W/.test(a)||(b=xr(a));return b};q.Lwa=function(a,b){var c=this.Z.g(d,{className:this.dD,id:pC.H().Nd()});MB(c,cl);this.rp&&this.rp.Jwa?this.rp.Jwa(a,b,c):this.Kwa(a,b,c);b&&this.HEa&&this.BCa(c,b);U(c,this.dD);this.ho.push(c);return c};
q.nY=function(a){for(;a&&a!=this.D&&!bC(a,this.dD);)a=a.parentNode;return a?Xr(this.ho,a):-1};q.Jj=function(a){var b=this.nY(a.target);0<=b&&this.dispatchEvent({type:en,row:this.mc[b].id});a.stopPropagation()};q.jA=function(a){a.stopPropagation();a.preventDefault()};q.nZ=function(a){a=this.nY(a.target);0<=a&&!(300>A()-this.g8)&&this.dispatchEvent({type:"hilite",row:this.mc[a].id})};var uE=function(){};B(uE,RD);Kq(uE);var vE=[];q=uE.prototype;q.J=function(a){return a&&a.firstChild.firstChild.firstChild.lastChild};q.Ss=function(a,b){var c=this.If();return b.g(d,Yh+(c+Qa),b.g(d,Yh+(c+Ma),b.g(d,c+"-pos",b.g(d,c+"-top-shadow","\u00a0"),b.g(d,c+Ia,a))))};q.JZ=function(a,b){var c=this.If();return(b=a.j().Ym(b))&&bC(b,c+Qa)&&(b=a.j().Ym(b))&&bC(b,c+Ma)&&(b=a.j().Ym(b))&&bC(b,c+"-pos")&&(b=a.j().Ym(b))&&bC(b,c+"-top-shadow")&&(a=a.j().Lja(b))&&bC(a,c+Ia)?!0:!1};q.S=function(){return Qh};
q.If=function(){return"goog-button-base"};q.RX=function(){return vE};ZC(Qh,function(){return new QD(null,uE.H())});var xE=function(a){wE();return jx(a,null)},yE=function(a){wE();return Iw(a)},wE=Jq;var zE={lOa:!0},AE={pOa:!0},BE={oOa:!0},CE={jOa:!0},DE={iOa:!0},EE={mOa:!0},FE=function(){throw Error("Do not instantiate directly");};FE.prototype.nh=null;FE.prototype.zb=function(){return this.content};FE.prototype.toString=function(){return this.content};
FE.prototype.Ti=function(){if(this.te===EE)return kx(this.toString());if(this.te!==zE)throw Error("Sanitized content was not of kind TEXT or HTML.");return Ax(ow("Soy SanitizedContent of kind HTML produces SafeHtml-contract-compliant value."),this.toString(),this.nh)};var GE=function(a,b){this.content=String(a);this.nh=null!=b?b:null};B(GE,FE);GE.prototype.te=EE;var JE=function(){FE.call(this)};B(JE,FE);JE.prototype.te=zE;var KE=function(){FE.call(this)};B(KE,FE);KE.prototype.te={kOa:!0};
KE.prototype.nh=1;var LE=function(){FE.call(this)};B(LE,FE);LE.prototype.te=AE;LE.prototype.nh=1;var ME=function(){FE.call(this)};B(ME,FE);ME.prototype.te=BE;ME.prototype.nh=1;var NE=function(){FE.call(this)};B(NE,FE);NE.prototype.te=CE;NE.prototype.nh=1;var OE=function(){FE.call(this)};B(OE,FE);OE.prototype.te={nOa:!0};OE.prototype.nh=1;var PE=function(){FE.call(this)};B(PE,FE);PE.prototype.te=DE;PE.prototype.nh=1;var SE=function(a,b,c,e){C(b,pd);a.innerHTML=QE(b(c||RE,void 0,e))},UE=function(a,b,c,e){C(a,pd);e=e||N();a=a(b||RE,void 0,c);b=QE(a);TE(b);a=a instanceof FE?a.Ti():xE(b);return e.Nh(a)},VE=function(a,b,c,e){C(a,pd);a=a(b||RE,void 0,c);e=(e||N()).createElement(d);a=QE(a);TE(a);e.innerHTML=a;1==e.childNodes.length&&(a=e.firstChild,1==a.nodeType&&(e=a));return e},QE=function(a){if(!Oq(a))return String(a);if(a instanceof FE){if(a.te===zE)return Qr(a.zb());if(a.te===EE)return qr(a.zb())}Or("Soy template output is unsafe for use as HTML: "+
a);return"zSoyz"},TE=function(a){var b=a.match(WE);C(!b,"This template starts with a %s, which cannot be a child of a <div>, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",b&&b[0],a)},WE=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i,RE={};var ZE=function(a){return ur(cr(a.replace(XE,function(a,c){return YE.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))},YE=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i,XE=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;var $E=function(a,b){this.re=a;this.zfa=!!b;this.CS={0:this.re+"-arrowright",1:this.re+"-arrowup",2:this.re+"-arrowdown",3:this.re+"-arrowleft"}};B($E,SC);q=$E.prototype;q.S_=!1;q.HF=2;q.ES=20;q.Wx=3;q.c$=null;q.uM=-5;q.DF=!1;q.Ql=function(a){this.ej=a};q.setPosition=function(a,b,c,e){null!=a&&(this.Wx=a);null!=b&&(this.HF=b);Hq(c)&&(this.ES=Math.max(c,15));Hq(e)&&(this.uM=e)};q.kO=function(a,b){this.bi=a;this.DS=b};q.zya=function(a){this.DF=a};
q.ha=function(a,b,c){C(this.DS,"Must call setElements first.");this.ir(this.Wx,this.Iia(this.Wx,this.HF),this.Jia(),0,c)};q.Jia=function(){return 2==this.HF?aF(this.Wx)?this.bi.offsetHeight/2:this.bi.offsetWidth/2:this.ES};q.Iia=function(a,b){2==b&&(b=0);return b};q.pw=function(a){this.S_=a};
q.ir=function(a,b,c,e,f){if(this.ej){var g=bF(a,b);var h=this.ej;var l=this.bi,p=this.c$,r=aA(h);a:{r=(aF(a)?r.height/2:r.width/2)-c;var z=FB(h,g);if(p)p=p.clone(),l&&(l=EB(l),p.left+=l.x,p.right+=l.x,p.top+=l.y,p.bottom+=l.y);else if(p=Qz(h),!p){h=r;break a}h=bA(h).rDa();aF(a)?h.top<p.top&&!(z&1)?r-=p.top-h.top:h.bottom>p.bottom&&z&1&&(r-=h.bottom-p.bottom):h.left<p.left&&!(z&4)?r-=p.left-h.left:h.right>p.right&&z&4&&(r-=h.right-p.right);h=r}h=aF(a)?new Tx(this.uM,h):new Tx(h,this.uM);r=aF(a)?6:
9;this.DF&&2==e&&(r=aF(a)?4:1);z=a^3;aF(a)&&this.ej.dir==Tm&&(z=a);g=HB(this.ej,bF(z,b),this.bi,g,h,f,this.S_?r:0,void 0,this.c$);if(2!=e&&g&496){this.ir(a^3,b,c,this.DF&&0==e?1:2,f);return}!this.zfa||g&496||(e=parseFloat(this.bi.style.left),f=parseFloat(this.bi.style.top),C(!isNaN(e)&&!isNaN(f),"Could not parse position."),isFinite(e)&&0==e%1&&isFinite(f)&&0==f%1||Kz(this.bi,Math.round(e),Math.round(f)))}this.dva(a,b,c)};
q.dva=function(a,b,c){var e=this.DS;Js(this.CS,function(a){fC(e,a,!1)},this);U(e,this.CS[a]);e.style.top=e.style.left=e.style.right=e.style.bottom="";this.ej?(b=Wz(this.ej,this.bi),c=cF(this.ej,a),aF(a)?e.style.top=dF(b.y+c.y,15,this.bi.offsetHeight-15)+n:e.style.left=dF(b.x+c.x,15,this.bi.offsetWidth-15)+n):e.style[0==b?aF(a)?op:Ij:aF(a)?lf:Pm]=c+n};
var dF=function(a,b,c){return b>c?b:Math.min(Math.max(a,b),c)},bF=function(a,b){switch(a){case 2:return 0==b?1:5;case 1:return 0==b?0:4;case 0:return 0==b?12:13;default:return 0==b?8:9}},cF=function(a,b){var c=0,e=0;a=aA(a);switch(b){case 2:c=a.width/2;break;case 1:c=a.width/2;e=a.height;break;case 0:e=a.height/2;break;case 3:c=a.width,e=a.height/2}return new Tx(c,e)},aF=function(a){return 0==a||3==a};var eF=function(a){F.call(this);this.dom=a||N()};B(eF,F);eF.prototype.t_=function(){MB(this.b(),this.wd());T(this.b(),Mj,rm)};eF.prototype.wd=function(){return"tooltip"};var fF=function(a){eF.call(this,a);this.Pb=this.dom.g(d,"jfk-tooltip-contentId");this.IF=this.dom.g(d,"jfk-tooltip-arrow",this.dom.g(d,"jfk-tooltip-arrowimplbefore"),this.dom.g(d,"jfk-tooltip-arrowimplafter"));this.oQ=this.dom.g(d,{"class":mj,role:"tooltip"},this.Pb,this.IF);this.t_()};B(fF,eF);fF.prototype.b=function(){return this.oQ};fF.prototype.J=function(){return this.Pb};fF.prototype.o=function(){this.oQ&&xy(this.oQ)};var gF=function(a){fF.call(this,a)};B(gF,fF);gF.prototype.t_=function(){MB(this.b(),this.wd())};var jF=function(a){a=a||N();var b=Rq(a.K());hF[b]||(hF[b]=new iF(a))},lF=function(a,b,c){kF(a,b,c)},kF=function(a,b,c){c||(c=b instanceof hx?ZE(ix(b)):b);a.removeAttribute(ip);a.removeAttribute(tg);a.removeAttribute(qg);b?(b instanceof hx?a.av=b:(a.setAttribute(qg,b),a.av=null),a.setAttribute(Te,c)):(a.av=null,a.removeAttribute(Te));jF(N(a))},hF={},iF=function(a){jC.call(this);this.L=a;this.pg=new jz(this.nDa,0,this);this.Y(this.pg);var b=ky();this.QB=Nq(b.MutationObserver)?new b.MutationObserver(y(this.sla,
this)):null;a=a.K();this.listen(a,[pk,nk,Bf,hf,Bu,zj],this.wda,!0);this.listen(a,[qk,zh,Au],this.fya,!0)};B(iF,jC);q=iF.prototype;q.o=function(){this.PT();iF.c.o.call(this)};q.V8=function(a){switch(a.type){case nk:case qk:case pk:case Bf:this.e0=!1;break;case zj:this.e0=!0}};
q.fya=function(a){this.QB&&this.QB.disconnect();this.V8(a);var b=a.target;a=a.type==zh||a.type==Au;var c=this.kb&&Ey(this.kb.J(),b);if(this.e0||!a||c){this.qqa=a;if(a=b&&b.getAttribute&&this.QB)a=b.getAttribute(Qm)||null,a=is(LB,a);a&&(this.dta(b),(a=QB(b))&&(b=a));this.pc=b}else this.pc=null;this.rN()};q.dta=function(a){this.QB.observe(a,{attributes:!0})};q.wda=function(a){this.V8(a);var b=a.target;a=a.type==nk||a.type==Bf;b=this.kb&&Ey(this.kb.J(),b);a&&b||(this.pc=null,this.rN())};
q.sla=function(a){D(a,y(function(a){var b=QB(a.target);b&&"aria-activedescendant"==a.attributeName&&(this.pc=b,this.rN())},this))};q.rN=function(){this.PT();this.pg.start(this.wi?50:300)};q.PT=function(){this.jD&&(Rv(this.jD),this.jD=0,this.wi=null)};
q.nDa=function(){if(!this.pc)this.WZ();else if(!(this.wi&&this.kb&&Ey(this.kb.b(),this.pc))||this.wi.getAttribute("data-tooltip-unhoverable")){var a=Qy(this.pc,function(a){return a.getAttribute&&(a.getAttribute(tg)||a.getAttribute(qg)||a.av)&&!a.getAttribute("data-tooltip-suspended")},!0),b=!1;this.wi&&this.wi!=a&&(this.WZ(),b=!0);if(!this.wi&&a&&(this.wi=a,this.LBa(a))){var c=yx;if(a.getAttribute(tg))for(var e=cy("jfk-tooltip-data",a),f=0;f<e.length;f++){if(e[f].parentNode==a){c=e[f].cloneNode(!0);
break}}else c=a.av?a.av:lx(a.getAttribute(qg));e=a.getAttribute(rg);f=a.getAttribute(sg);var g=a.getAttribute(ug);g=ar(Ar(g))?-1:Number(g);if(!b&&(a=a.getAttribute("data-tooltip-delay"),a=Math.max(0,a-300))){this.jD=M(Wq(this.L7,this.wi,c,e,g,f),a,this);return}this.L7(this.wi,c,e,g,f)}}};q.LBa=function(a){return a.getAttribute("data-tooltip-only-on-overflow")&&a.offsetWidth>=a.scrollWidth&&a.offsetHeight>=a.scrollHeight||this.qqa&&"mouse"==a.getAttribute("data-tooltip-trigger")?!1:!0};
var mF=function(a){if(a)switch(a.toLowerCase().split(",")[0]){case "l":return 0;case "t":return 2;case "r":return 3}return 1};
iF.prototype.L7=function(a,b,c,e,f){this.jD=0;if(!this.kb){this.kb=new gF(this.L);this.XZ();var g=this.L.K().body,h=this.kb.b();g.appendChild(h);this.Y(this.kb);this.Zr=new $E(mj,!0);this.Zr.pw(!0);this.Zr.zya(!0);this.Zr.kO(this.kb.b(),this.kb.IF)}a:{if(c)switch(c.toLowerCase().split(",")[1]){case "l":g=0;break a;case "r":g=1;break a}g=2}this.Zr.setPosition(mF(c),g,void 0,e);dC(this.kb.b(),nj);this.wE!=f&&(this.wE&&!ar(Ar(this.wE))&&dC(this.kb.b(),this.wE),ar(Ar(f))||U(this.kb.b(),f),this.wE=f);
Kz(this.kb.b(),0,0);if(b instanceof hx)Ox(this.kb.J(),b);else for(ty(this.kb.J());c=b.firstChild;)this.kb.J().appendChild(c);this.Zr.Ql(a);this.Zr.ha(null,0)};iF.prototype.XZ=function(){this.kb&&U(this.kb.b(),nj)};iF.prototype.WZ=function(){this.XZ();this.wi=null};var nF=function(a,b,c){this.t3=null;C(a.length==b.length,"rangeArray and valueArray must have the same length.");this.LCa(a,c);this.values=b};nF.prototype.LCa=function(a,b){this.t3=a;for(var c=1;c<a.length;c++)null==a[c]?a[c]=a[c-1]+1:b&&(a[c]+=a[c-1])};nF.prototype.Hca=function(a){a=this.kja(a);return 0>a?null:this.values[a]};nF.prototype.kja=function(a){for(var b=this.t3,c=0,e=b.length;8<e-c;){var f=e+c>>1;b[f]<=a?c=f:e=f}for(;c<e&&!(a<b[c]);++c);return c-1};var oF=null,rF=function(a,b,c){var e=v(a)?pF(a,a.length-1):a,f=v(b)?pF(b,0):b;b=qF(e);f=qF(f);var g=v(a);if(12===b&&13===f)return!1;if(1===b||12===b||13===b||1===f||12===f||13===f)return!0;if(7===b&&(7===f||8===f||10===f||11===f)||!(10!==b&&8!==b||8!==f&&9!==f)||(11===b||9===b)&&9===f||2===f||15===f||6===f||c&&(3===b||4===f)||c&&6===b&&5===f)return!1;var h;if(g){if(18===f){c=a;var l=c.length-1;var p=e;for(h=b;0<l&&2===h;)l-=65536<=p&&1114111>=p?2:1,p=pF(c,l),h=qF(p);if(16===h||19===h)return!1}}else if((16===
b||19===b)&&18===f)return!1;if(15===b&&(17===f||19===f))return!1;if(g){if(14===f){f=0;c=a;l=c.length-1;p=e;for(h=b;0<l&&14===h;)f++,l-=65536<=p&&1114111>=p?2:1,p=pF(c,l),h=qF(p);14===h&&f++;if(1===f%2)return!1}}else if(14===b&&14===f)return!1;return!0},qF=function(a){if(44032<=a&&55203>=a)return 16===a%28?10:11;oF||(oF=new nF([0,10,1,2,1,18,95,33,13,1,594,112,275,7,263,45,1,1,1,2,1,2,1,1,56,6,10,11,1,1,46,21,16,1,101,7,1,1,6,2,2,1,4,33,1,1,1,30,27,91,11,58,9,34,4,1,9,1,3,1,5,43,3,120,14,1,32,1,17,
37,1,1,1,1,3,8,4,1,2,1,7,8,2,2,21,7,1,1,2,17,39,1,1,1,2,6,6,1,9,5,4,2,2,12,2,15,2,1,17,39,2,3,12,4,8,6,17,2,3,14,1,17,39,1,1,3,8,4,1,20,2,29,1,2,17,39,1,1,2,1,6,6,9,6,4,2,2,13,1,16,1,18,41,1,1,1,12,1,9,1,40,1,3,17,31,1,5,4,3,5,7,8,3,2,8,2,29,1,2,17,39,1,1,1,1,2,1,3,1,5,1,8,9,1,3,2,29,1,2,17,38,3,1,2,5,7,1,1,8,1,10,2,30,2,22,48,5,1,2,6,7,1,18,2,13,46,2,1,1,1,6,1,12,8,50,46,2,1,1,1,9,11,6,14,2,58,2,27,1,1,1,1,1,4,2,49,14,1,4,1,1,2,5,48,9,1,57,33,12,4,1,6,1,2,2,2,1,16,2,4,2,2,4,3,1,3,2,7,3,4,13,1,1,
1,2,6,1,1,14,1,98,96,72,88,349,3,931,15,2,1,14,15,2,1,14,15,2,15,15,14,35,17,2,1,7,8,1,2,9,1,1,9,1,45,3,1,118,2,34,1,87,28,3,3,4,2,9,1,6,3,20,19,29,44,84,23,2,2,1,4,45,6,2,1,1,1,8,1,1,1,2,8,6,13,48,84,1,14,33,1,1,5,1,1,5,1,1,1,7,31,9,12,2,1,7,23,1,4,2,2,2,2,2,11,3,2,36,2,1,1,2,3,1,1,3,2,12,36,8,8,2,2,21,3,128,3,1,13,1,7,4,1,4,2,1,3,2,198,64,523,1,1,1,2,24,7,49,16,96,33,1324,1,34,1,1,1,82,2,98,1,14,1,1,4,86,1,1418,3,141,1,96,32,554,6,105,2,30164,4,1,10,32,2,80,2,272,1,3,1,4,1,23,2,2,1,24,30,4,4,3,
8,1,1,13,2,16,34,16,1,1,26,18,24,24,4,8,2,23,11,1,1,12,32,3,1,5,3,3,36,1,2,4,2,1,3,1,36,1,32,35,6,2,2,2,2,12,1,8,1,1,18,16,1,3,6,1,1,1,3,48,1,1,3,2,2,5,2,1,1,32,9,1,2,2,5,1,1,201,14,2,1,1,9,8,2,1,2,1,2,1,1,1,18,11184,27,49,1028,1024,6942,1,737,16,16,16,207,1,158,2,89,3,513,1,226,1,149,5,1670,15,40,7,1,165,2,1305,1,1,1,53,14,1,56,1,2,1,45,3,4,2,1,1,2,1,66,3,36,5,1,6,2,62,1,12,2,1,48,3,9,1,1,1,2,6,3,95,3,3,2,1,1,2,6,1,160,1,3,7,1,21,2,2,56,1,1,1,1,1,12,1,9,1,10,4,15,192,3,8,2,1,2,1,1,105,1,2,6,1,1,
2,1,1,2,1,1,1,235,1,2,6,4,2,1,1,1,27,2,82,3,8,2,1,1,1,1,106,1,1,1,2,6,1,1,101,3,2,4,1,4,1,1283,1,14,1,1,82,23,1,7,1,2,1,2,20025,5,59,7,1050,62,4,19722,2,1,4,5313,1,1,3,3,1,5,8,8,2,7,30,4,148,3,1979,55,4,50,8,1,14,1,22,1424,2213,7,109,7,2203,26,264,1,53,1,52,1,17,1,13,1,16,1,3,1,25,3,2,1,2,3,30,1,1,1,13,5,66,2,2,11,21,4,4,1,1,9,3,1,4,3,1,3,3,1,30,1,16,2,106,1,4,1,71,2,4,1,21,1,4,2,81,1,92,3,3,5,48,1,17,1,16,1,16,3,9,1,11,1,587,5,1,1,7,1,9,10,3,2,788162,31],[1,13,1,12,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,
0,2,0,2,0,3,0,2,0,1,0,2,0,2,0,2,3,0,2,0,2,0,2,0,3,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,3,2,4,0,5,2,4,2,0,4,2,4,6,4,0,2,5,0,2,0,5,0,2,4,0,5,2,0,2,4,2,4,6,0,2,5,0,2,0,5,0,2,4,0,5,2,4,2,6,2,5,0,2,0,2,4,0,5,2,0,4,2,4,6,0,2,0,2,4,0,5,2,0,2,4,2,4,6,2,5,0,2,0,5,0,2,0,5,2,4,2,4,6,0,2,0,2,4,0,5,0,5,0,2,4,2,6,2,5,0,2,0,2,4,0,5,2,0,4,2,4,2,4,2,4,2,6,2,5,0,2,0,2,4,0,5,0,2,4,2,4,6,3,0,2,0,2,0,4,0,5,6,2,4,2,4,2,0,4,0,5,0,2,0,4,2,6,0,2,0,5,0,2,0,4,2,0,2,0,5,0,2,0,2,0,2,0,2,0,4,5,2,4,2,6,0,2,0,2,0,2,0,5,0,2,4,
2,0,6,4,2,5,0,5,0,4,2,5,2,5,0,5,0,5,2,5,2,0,4,2,0,2,5,0,2,0,7,8,9,0,2,0,5,2,6,0,5,2,6,0,5,2,0,5,2,5,0,2,4,2,4,2,4,2,6,2,0,2,0,2,1,0,2,0,2,0,5,0,2,4,2,4,2,4,2,0,5,0,5,0,5,2,4,2,0,5,0,5,4,2,4,2,6,0,2,0,2,4,2,0,2,4,0,5,2,4,2,4,2,4,2,4,6,5,0,2,0,2,4,0,5,4,2,4,2,6,2,5,0,5,0,5,0,2,4,2,4,2,4,2,6,0,5,4,2,4,2,0,5,0,2,0,2,4,2,0,2,0,4,2,0,2,0,2,0,1,2,15,1,0,1,0,1,0,2,0,16,0,17,0,17,0,17,0,16,0,17,0,16,0,17,0,2,0,6,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,6,5,2,5,4,2,4,0,5,0,5,0,5,0,5,0,4,0,5,4,6,2,0,2,0,5,0,2,0,5,
2,4,6,0,7,2,4,0,5,0,5,2,4,2,4,2,4,6,0,2,0,5,2,4,2,4,2,0,2,0,2,4,0,5,0,5,0,5,0,2,0,5,2,0,2,0,2,0,2,0,2,0,5,4,2,4,0,4,6,0,5,0,5,0,5,0,4,2,4,2,4,0,4,6,0,11,8,9,0,2,0,2,0,2,0,2,0,1,0,2,0,1,0,2,0,2,0,2,0,2,0,2,6,0,2,0,4,2,4,0,2,6,0,6,2,4,0,4,2,4,6,2,0,3,0,2,0,2,4,2,6,0,2,0,2,4,0,4,2,4,6,0,3,0,2,0,4,2,4,2,6,2,0,2,0,2,4,2,6,0,2,4,0,2,0,2,4,2,4,6,0,2,0,4,2,0,4,2,4,6,2,4,2,0,2,4,2,4,2,4,2,4,2,4,6,2,0,2,4,2,4,2,4,6,2,0,2,0,4,2,4,2,4,6,2,0,2,4,2,4,2,6,2,0,2,4,2,4,2,6,0,4,2,4,6,0,2,4,2,4,2,4,2,0,2,0,2,0,4,2,
0,2,0,1,0,2,4,2,0,4,2,1,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,14,0,17,0,17,0,17,0,16,0,17,0,17,0,17,0,16,0,16,0,16,0,17,0,17,0,18,0,16,0,16,0,19,0,16,0,16,0,16,0,16,0,16,0,17,0,16,0,17,0,17,0,17,0,16,0,16,0,16,0,16,0,17,0,16,0,16,0,17,0,17,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,1,2],!0));return oF.Hca(a)},pF=function(a,b){var c=a.charCodeAt(b);55296<=c&&56319>=c&&b+1<a.length?(a=a.charCodeAt(b+1),56320<=a&&57343>=a&&(c=55296<=c&&56319>=c&&56320<=a&&57343>=a?(c<<10)-56623104+(a-56320+
65536):null)):56320<=c&&57343>=c&&0<b&&(a=a.charCodeAt(b-1),55296<=a&&56319>=a&&(c=-(55296<=a&&56319>=a&&56320<=c&&57343>=c?(a<<10)-56623104+(c-56320+65536):0)));return 0>c?-c:c};var sF=function(a){return 32>=a||4096<=a&&(8192<=a&&8198>=a||8200<=a&&8203>=a||5760==a||6158==a||8232==a||8233==a||8287==a||12288==a)},tF=E&&Qt(8),uF=zt?"<wbr></wbr>":vt?"&shy;":tF?"&#8203;":"<wbr>";var vF=function(a,b){this.np=typeof a==Ik?0<a?1:0>a?-1:null:null==a?null:a?-1:1;this.lca=!!b};q=vF.prototype;q.wga=Bw;q.Aca=function(a,b){return 0>Number(a)*Number(b)};q.ufa=function(a,b,c,e){return e&&(this.Aca(b,this.np)||1==this.np&&xw.test(rw(a,c))||-1==this.np&&ww.test(rw(a,c)))?1==this.np?"\u200e":"\u200f":""};q.Y7=function(a,b){return this.Z7(null,a,b)};q.Z7=function(a,b,c){null==a&&(a=this.wga(ix(b),!0));return this.xCa(a,b,c)};
q.xCa=function(a,b,c){c=c||void 0==c;var e=0!=a&&a!=this.np;if(this.lca||e){var f;e&&(f=-1==a?Tm:Tj);e=sx(Jo,{dir:f},b)}else e=b;b=ix(b);return e=wx(0,e,this.ufa(b,a,!0,c))};q.mark=function(){switch(this.np){case 1:return"\u200e";case -1:return"\u200f";default:return""}};var wF=function(a,b){return null!=a&&a.te===b},xF=function(a){if(null!=a)switch(a.nh){case 1:return 1;case -1:return-1;case 0:return 0}return null},W=function(a){return null!=a&&a.te===zE?(C(a.constructor===JE),a):a instanceof hx?yF(ix(a),a.Ej()):yF(qr(String(String(a))),xF(a))},zF=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}},AF=function(a,b){return new GE(a,b)},yF=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,
e){a=new b(String(a));void 0!==e&&(a.nh=e);return a}}(JE);zF(KE);zF(LE);zF(ME);zF(NE);zF(OE);zF(PE);var BF=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return(a=String(a))?new b(a):""}},CF=function(a,b){return(a=String(a))?new GE(a,b):""},DF=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,e){a=String(a);if(!a)return"";a=new b(a);void 0!==e&&(a.nh=e);return a}}(JE);BF(KE);BF(ME);BF(LE);var EF=BF(NE);BF(OE);
var FF=BF(PE),GF=/^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\b/,MF=function(a,b){if(!b)return String(a).replace(HF,"").replace(IF,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],e=[];a=a.replace(HF,function(a,f){if(f&&(f=f.toLowerCase(),b.hasOwnProperty(f)&&b[f])){var g=c.length,h="</",r="";if("/"!=a.charAt(1)){h="<";for(var z;z=JF.exec(a);)if(z[1]&&"dir"==z[1].toLowerCase()){if(a=z[2]){if("'"==a.charAt(0)||'"'==a.charAt(0))a=a.substr(1,a.length-
2);a=a.toLowerCase();if(a==Tj||a==Tm||a==af)r=' dir="'+a+'"'}break}JF.lastIndex=0}c[g]=h+f+">";e[g]=r;return"["+g+"]"}return""});a=KF(a);var f=LF(c);a=a.replace(/\[(\d+)\]/g,function(a,b){return e[b]&&c[b]?c[b].substr(0,c[b].length-1)+e[b]+">":c[b]});return a+f},NF=function(a){return a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>")},LF=function(a){for(var b=[],c=0,e=a.length;c<e;++c){var f=a[c];"/"==f.charAt(1)?(f=Yr(b,f),0>f?a[c]="":(a[c]=b.slice(f).reverse().join(""),b.length=f)):"<li>"==f&&0>
Yr(b,"</ol>")&&0>Yr(b,"</ul>")?a[c]="":GF.test(f)||b.push("</"+f.substring(1))}return b.reverse().join("")},X=function(a){return wF(a,zE)?(C(a.constructor===JE),KF(MF(a.zb()))):qr(String(a))},PF=function(a){if(wF(a,CE))return C(a.constructor===NE),a.zb().replace(/([^"'\s])$/,"$1 ");a=String(a);OF.test(a)||(Or("Bad value `%s` for |filterHtmlAttributes",[a]),a="zSoyz");return a},UF=function(a){if(wF(a,AE))return C(a.constructor===LE),QF(a);if(wF(a,BE))return C(a.constructor===ME),QF(a);a instanceof
Lw?a=QF(Mw(a)):a instanceof Dw?a=QF(Ew(a)):(a=String(a),RF.test(a)?a=a.replace(SF,TF):(Or("Bad value `%s` for |filterNormalizeUri",[a]),a=ae));return a},WF=function(a){if(wF(a,DE))return Wr(a,PE),NF(a.zb());null==a?a="":a instanceof Sw?a=NF(Tw(a)):a instanceof bx?a=NF(cx(a)):(a=String(a),VF.test(a)||(Or("Bad value `%s` for |filterCssValue",[a]),a="zSoyz"));return a},XF=function(a){return wF(a,EE)?(Or("Tainted SanitizedContentKind.TEXT for |noAutoescape: `%s`",[a.zb()]),"zSoyz"):a},YF={},ZF=function(a,
b){a=YF[a]||(YF[a]=new vF(a));var c=Ax(ow("Soy |bidiSpanWrap is applied on an autoescaped text."),String(b));b=a.Z7(xF(b),c);return ix(b)},$F=function(a,b,c,e){a||(a=c instanceof Function?c.displayName||c.name||yp:c instanceof Object?c.constructor.displayName||c.constructor.name||Object.prototype.toString.call(c):null===c?Gk:typeof c,Or("expected param "+b+" of type "+e+(", but got "+a)+"."));return c},aG={"\x00":"&#0;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",
'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},bG=function(a){return aG[a]},cG={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11","\u0012":"%12","\u0013":"%13","\u0014":"%14",
"\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87","\uff08":"%EF%BC%88","\uff09":"%EF%BC%89",
"\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},TF=function(a){return cG[a]},dG=/[\x00\x22\x27\x3c\x3e]/g,SF=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,VF=/^(?!-*(?:expression|(?:moz-)?binding))(?!\s+)(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|(?:rgb|hsl)a?\([0-9.%,\u0020]+\)|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|\s+)*$/i,
RF=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,eG=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,OF=/^(?!on|src|(?:style|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,KF=function(a){return String(a).replace(dG,bG)},QF=function(a){return String(a).replace(SF,TF)},HF=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,IF=/</g,JF=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var fG=function(a){var b;a=a||{};var c=yF,e='<div role="button"'+(a.id?' id="'+X(a.id)+'"':"")+' class="';var f=a||{};var g="goog-inline-block jfk-button ",h=f.style;switch(Oq(h)?h.toString():h){case 0:g+=ij;break;case 2:g+=gj;break;case 3:g+=hj;break;case 1:g+="jfk-button-default";break;case 4:g+="jfk-button-flat";break;case 5:g+="jfk-button-mini";break;case 6:g+="jfk-button-contrast";break;default:g+=ij}g+=(1==f.width?" jfk-button-narrow":"")+(f.checked?" jfk-button-checked":"")+(f.Xd?" "+f.Xd:
"")+(f.disabled?" jfk-button-disabled":"");return c(e+X(AF(g))+'"'+(a.disabled?' aria-disabled="true"':' tabindex="'+(a.nE?X(a.nE):"0")+'"')+(a.title?a.Fo?' data-tooltip="'+X(a.title)+'"':' title="'+X(a.title)+'"':"")+(a.value?' value="'+X(a.value)+'"':"")+(a.attributes?" "+PF(a.attributes):"")+">"+W(null==(b=a.content)?"":b)+lb)};fG.ra="jfk.templates.button.strict";var hG=function(a,b,c,e){QD.call(this,a,gG.H(),b);this.$P=c||0;this.gg=e||0;this.TQ=!1};B(hG,QD);q=hG.prototype;q.getStyle=function(){return this.$P};q.Ag=function(){return this.gg};q.Dr=function(a){this.$P!=a&&(this.$P=a,this.WL())};q.UD=function(a){this.gg!=a&&(this.gg=a,this.WL())};q.TD=function(a){this.TQ=a};q.Wc=function(a){this.Er(a);var b=this.b();b&&(this.TQ?kF(b,a,void 0):a?b.title=a:b.removeAttribute(ip))};q.U=function(a){this.isEnabled()!=a&&(hG.c.U.call(this,a),this.WL())};
q.focus=function(){var a=this.Ta();try{a.focus()}catch(b){}};q.mo=function(a){hG.c.mo.call(this,a);this.Ar(!1)};q.Qc=function(a){hG.c.Qc.call(this,a);this.isEnabled()&&this.Ar(!0)};q.Kf=function(a){hG.c.Kf.call(this,a);this.isEnabled()&&this.Ar(!0)};q.Ar=function(a){this.b()&&fC(this.b(),"jfk-button-clear-outline",a)};q.WL=function(){this.b()&&this.M.QDa(this)};
var iG=function(a,b){return new hG(a,b,2)},jG=function(a,b){return new hG(a,b,4)},lG=function(a){return iG(kG("//ssl.gstatic.com/ui/v1/button/search-white.png"),a)},kG=function(a,b){if(v(a)){var c=a;a=my(Gc);a.src=c;$z(a,21,21)}U(a,"jfk-button-img");c=[];c.push(a);b&&(a=my(gd,"jfk-button-label",b),c.push(a));return c},gG=function(){this.b8=this.S()+"-standard";this.RR=this.S()+"-action";this.j3=this.S()+"-primary";this.kV=this.S()+Ja;this.WW=this.S()+"-flat";this.U1=this.S()+"-narrow";this.L1=this.S()+
"-mini";this.mU=this.S()+"-contrast"};B(gG,OD);Kq(gG);q=gG.prototype;q.hm=function(a,b,c){a&&c.Dr(a);b&&c.UD(b)};q.S=function(){return fj};q.g=function(a){Wr(a,hG,"Button is expected to be instance of jfk.Button");var b=a.j(),c=VE(fG,{disabled:!a.isEnabled(),checked:a.bf(),style:a.getStyle(),title:a.zg(),Fo:a.TQ,value:a.getValue(),width:a.Ag()},void 0,b);b.append(c,a.zb());this.R(a,c);return c};
q.R=function(a,b){gG.c.R.call(this,a,b);this.LT||(this.LT=bt(this.b8,Wq(this.hm,0,null),this.RR,Wq(this.hm,2,null),this.j3,Wq(this.hm,3,null),this.kV,Wq(this.hm,1,null),this.WW,Wq(this.hm,4,null),this.L1,Wq(this.hm,5,null),this.mU,Wq(this.hm,6,null),this.U1,Wq(this.hm,null,1)));for(var c=$B(b),e=0;e<c.length;++e){var f=this.LT[c[e]];f&&f(a)}if(c=b.getAttribute(qg))a.Er(c),a.TD(!0);return b};q.getValue=function(a){return a.getAttribute(Rp)||""};q.setValue=function(a,b){a&&a.setAttribute(Rp,b)};
q.QDa=function(a){function b(a,b){(a?c:e).push(b)}C(a.b(),"Button element must already exist when updating style.");var c=[],e=[],f=a.getStyle();b(0==f,this.b8);b(2==f,this.RR);b(3==f,this.j3);b(4==f,this.WW);b(5==f,this.L1);b(1==f,this.kV);b(6==f,this.mU);b(1==a.Ag(),this.U1);b(!a.isEnabled(),this.S()+Ka);eC(a.b(),e);cC(a.b(),c)};ZC(fj,function(){return new hG(null)});var nG=function(a,b){x(b)||(b=[b]);C(0<b.length,"At least one Css3Property should be specified.");b=as(b,function(a){if(v(a))return a;Sr(a,"Expected css3 property to be an object.");var b=a.$M+" "+a.duration+"s "+a.timing+" "+a.wp+"s";C(a.$M&&Hq(a.duration)&&a.timing&&Hq(a.wp),"Unexpected css3 property value: %s",b);return b});mG(a,b.join(","))},oG=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(E)return Qt("10.0");var a=py(document,d),b=zt?"-webkit":yt?"-moz":E?
"-ms":vt?"-o":null,c={transition:Sk};b&&(c[b+"-transition"]=Sk);Ox(a,sx(Fg,{style:c}));a=a.firstChild;C(a.nodeType==Node.ELEMENT_NODE);return""!=Fz(a,"transition")}),mG=function(a,b){Q(a,"transition",b)};var pG=function(a,b,c,e,f){pz.call(this);this.D=a;this.st=b;this.Opa=c;this.LW=e;this.as=x(f)?f:[f]};B(pG,pz);q=pG.prototype;q.play=function(){if(this.Zu())return!1;this.Mg();this.w2();this.startTime=A();this.N6();if(oG())return Q(this.D,this.Opa),this.mf=M(this.Zua,void 0,this),!0;this.XP(!1);return!1};q.Zua=function(){aA(this.D);nG(this.D,this.as);Q(this.D,this.LW);this.mf=M(y(this.XP,this,!1),1E3*this.st)};q.stop=function(){this.Zu()&&this.XP(!0)};
q.XP=function(a){mG(this.D,"");Rv(this.mf);Q(this.D,this.LW);this.endTime=A();this.eP();a?this.C2():this.l2();this.dk()};q.o=function(){this.stop();pG.c.o.call(this)};q.pause=function(){C(!1,"Css3 transitions does not support pause action.")};var qG=function(a,b,c,e,f){return new pG(a,b,{opacity:e},{opacity:f},{$M:"opacity",duration:b,timing:c,wp:0})},rG=function(a,b){return qG(a,b,"ease-out",0,1)},sG=function(a,b){return qG(a,b,"ease-in",1,0)};var vG=function(a,b){b=Wq(tG,a,b);a.V?b():E?Ou(a,Cn,b):Ou(a,ff,b);var c=null;I(a,Cn,function(){a.Ny&&(c=new uG(a))});I(a,zi,function(){G(c)})},tG=function(a,b){a.ZN(.75);var c=a.Wb;c&&b&&(b=c.Cj(b))&&U(b,"goog-buttonset-action");b=rG(a.b(),.13);c=sG(a.b(),.13);var e=qG(a.Rk(),.13,"ease-out",0,.75),f=qG(a.Rk(),.13,"ease-in",.75,0);a.SD(b,c,e,f)},xG=function(a,b,c,e,f,g,h){b=lx(b);c=c||null;f=f?(new xC).Gd({key:Lk,caption:f},!0,!0):IC();return wG(a,b,c,c,e,g||"jfk-alert",f,h)},wG=function(a,b,c,e,f,
g,h,l){g=g||"jfk-confirm";var p=new wC(void 0,!0,l);p.fb(a);p.Dw(b);p.Ph(h||vC());p.Ni(!0);p.render();a=p.b();C(a,"The dialog element cannot be null");U(a,g);vG(p,Lk);b=p.Ig("msg");p.J().id=b;MB(a,"alertdialog");T(a,zg,b);Ou(p,Cg,function(a){c&&a.key==p.Wb.qj?c.call(f):e&&e.call(f)});p.C(!0);return p},uG=function(a){nC.call(this,a.b());this.La=a;I(this,Oo,this.ABa,!1,this)};B(uG,nC);
uG.prototype.ABa=function(a){a=a.TF;if(this.La.Ny&&bC(a.target,this.La.jia())){var b=aA(this.La.b());b=new Bz(0,b.width,b.height,0);var c=kA(this.La.b());b.expand(-1*c.top,-1*c.right,-1*c.bottom,-1*c.left);if(!b.contains(new Tx(a.offsetX,a.offsetY)))return this.gO(),!0}return!1};
uG.prototype.gO=function(){var a=this.La.j().K(),b=hy(ky(a)),c=aA(this.La.b());if(Iz(this.La.b())==yh)a=b.width-c.width,b=b.height-c.height;else{var e=Math.max(a.body.scrollHeight,b.height);a=Math.max(a.body.scrollWidth,b.width)-c.width;b=e-c.height}this.BO(new Cz(0,0,Math.max(0,a),Math.max(0,b)))};var yG={8:"backspace",9:"tab",13:fh,16:"shift",17:"ctrl",18:"alt",19:"pause",20:"caps-lock",27:"esc",32:"space",33:"pg-up",34:"pg-down",35:eh,36:"home",37:Ij,38:"up",39:Pm,40:"down",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:jn,61:"equals",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",93:"context",96:"num-0",97:"num-1",
98:"num-2",99:"num-3",100:"num-4",101:"num-5",102:"num-6",103:"num-7",104:"num-8",105:"num-9",106:"num-multiply",107:"num-plus",109:"num-minus",110:"num-period",111:"num-division",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",186:jn,187:"equals",189:"dash",188:",",190:".",191:"/",192:"`",219:"open-square-bracket",220:"\\",221:"close-square-bracket",222:"single-quote",224:"win"};var zG=function(){};B(zG,OD);Kq(zG);q=zG.prototype;q.g=function(a){var b=this.Zd(a);b=a.j().g(d,Yh+b.join(" "),a.zb());this.Wc(b,a.zg());return b};q.wd=function(){return mf};q.tc=function(a){return a.tagName==d};q.R=function(a,b){C(b);U(b,Xh);return zG.c.R.call(this,a,b)};q.getValue=function(){return""};q.S=function(){return Vh};ZC(Vh,function(){return new QD(null,zG.H())});var AG=function(){};B(AG,zG);Kq(AG);q=AG.prototype;q.g=function(a){var b=this.Zd(a);b=a.j().g(d,Yh+b.join(" "),[this.createCaption(a.zb(),a.j()),this.wy(a.j())]);this.Wc(b,a.zg());return b};q.J=function(a){return a&&a.firstChild};
q.R=function(a,b){var c=by("*",$h,b)[0];if(c){R(c,!1);a.j().K().body.appendChild(c);var e=new vD;e.R(c);a.Zg(e)}by("*",this.S()+Ha,b)[0]||b.appendChild(this.createCaption(b.childNodes,a.j()));by("*",this.S()+La,b)[0]||b.appendChild(this.wy(a.j()));return AG.c.R.call(this,a,b)};q.createCaption=function(a,b){return b.g(d,Yh+(this.S()+Ha),a)};q.wy=function(a){return a.g(d,{"class":Yh+(this.S()+La),"aria-hidden":!0},"\u00a0")};q.S=function(){return Wh};ZC(Wh,function(){return new VD(null,null,AG.H())});var CG=function(a,b,c){XD.call(this,a,b,AG.H(),c);this.Nv=new BG(1E3);this.Y(this.Nv)};B(CG,XD);q=CG.prototype;q.g=function(){CG.c.g.call(this);U(this.b(),"jfk-select")};
q.UM=function(){if(this.Qa().V){var a=this.b(),b=this.Q_()?8:12,c=this.Qa().b(),e=!1;this.Qa().N()||(e=!0,c.style.visibility=yi,R(c,!0));var f=Math.max(this.yg(),0);f=this.Qa().pa(f);var g=0;if(this.ZA()){var h=c.scrollTop;c.style.overflowY=fq;c.style.height=af;e||(g=Vz(f.b()).y-Vz(this.b()).y,g=h-g)}e=f?f.b().offsetTop:0;h=Qz(a);var l=0;h&&(l=Qz(c),l=Math.min(Math.max(h.top,l.top+2),l.bottom-2)-h.top);HB(a,b,c,this.Q_()?8:12,new Tx(0,l-e),null,65|(this.ZA()?32:132),null);this.ZA()&&(a=Vz(f.b()).y-
Vz(this.b()).y,c.style.overflowY=af,c.scrollTop=g+a);this.Qa().N()||(R(c,!1),c.style.visibility=fq)}};q.wc=function(a){var b=CG.c.wc.call(this,a);return a.type!=yj||!this.Qa()||a.altKey||a.ctrlKey||a.metaKey||a.yC?b:this.Qd()||32!=a.keyCode?b?(!this.Qd()||38!=a.keyCode&&40!=a.keyCode||this.mW(),!0):iB(a.keyCode)?(a=a.charCode?String.fromCharCode(a.charCode):" ",this.Nv.add(a),b=this.Nv.Zs,this.Nv.Cy?this.QW(a,!1):this.QW(b,1<b.length),!0):!1:(this.Nv.h4(),b)};
q.mW=function(){var a=this.Qa().Ff();a&&Uz(a.b(),this.Qa().J())};q.QW=function(a,b){var c=this.Qd()?this.Qa().ib:this.yg();a=new RegExp("^"+xr(a),"i");b||++c;b=0>c?0:c;c=this.Qa();for(var e=0,f=c.Xa();e<f;++e){var g=(b+e)%f,h=c.pa(g),l=h.pi();if(h.isEnabled()&&l&&a.test(l)){this.EAa(g);break}}};q.EAa=function(a){this.Qd()?(this.Qa().oc(a),this.mW()):this.kf(a)};var BG=function(a){F.call(this);this.pg=new jz(this.h4,a,this);this.Y(this.pg)};B(BG,F);
BG.prototype.add=function(a){C(1==a.length,"nextLetter: '"+a+"' must be a single character");a==this.Zs?this.Cy=!0:this.Cy||(this.Zs+=a);this.pg.start()};BG.prototype.h4=function(){this.Zs="";this.Cy=!1};BG.prototype.Cy=!1;BG.prototype.Zs="";var DG=function(){};B(DG,cD);Kq(DG);q=DG.prototype;q.g=function(a){var b=a.j().g(gd,this.Zd(a).join(" "));this.w5(b,a.kj);return b};q.R=function(a,b){b=DG.c.R.call(this,a,b);C(b);var c=$B(b),e=!1;is(c,this.Tt(null))?e=null:is(c,this.Tt(!0))?e=!0:is(c,this.Tt(!1))&&(e=!1);a.Eya(e);C(b,"The element cannot be null.");T(b,yf,this.BS(e));return b};q.wd=function(){return xf};
q.w5=function(a,b){if(a){C(a);var c=this.Tt(b);C(c);C(a);bC(a,c)||(Js(EG,function(b){b=this.Tt(b);C(a);fC(a,b,b==c)},this),T(a,yf,this.BS(b)))}};q.BS=function(a){return null==a?"mixed":1==a?sp:oh};q.S=function(){return"goog-checkbox"};q.Tt=function(a){var b=this.If();if(1==a)return b+"-checked";if(0==a)return b+"-unchecked";if(null==a)return b+"-undetermined";throw Error("Invalid checkbox state: "+a);};var FG=function(a,b,c){c=c||DG.H();gD.call(this,null,c,b);this.kj=u(a)?a:!1};B(FG,gD);var EG={v$:!0,nMa:!1,oMa:null};q=FG.prototype;q.Ua=null;q.bf=function(){return 1==this.kj};q.ira=function(){return null==this.kj};q.ke=function(a){a!=this.kj&&(this.kj=a,this.M.w5(this.b(),this.kj))};q.Eya=function(a){this.kj=a};q.Ra=function(a){if(this.V){var b=this.RA();this.Pa();this.Ua=a;this.B();b&&this.Ta().focus()}else this.Ua=a};q.toggle=function(){this.ke(this.kj?!1:!0)};
q.B=function(){FG.c.B.call(this);if(this.jn){var a=this.A();this.Ua&&a.listen(this.Ua,Bf,this.wJ).listen(this.Ua,qk,this.Bg).listen(this.Ua,pk,this.xu).listen(this.Ua,nk,this.Qc).listen(this.Ua,rk,this.Kf);a.listen(this.b(),Bf,this.wJ)}a=this.Ta();this.Ua&&a!=this.Ua&&ar(SB(a))&&(this.Ua.id||(this.Ua.id=this.Ig("lbl")),T(a,Dj,this.Ua.id))};q.U=function(a){FG.c.U.call(this,a);if(a=this.b())a.tabIndex=this.isEnabled()?0:-1};
q.wJ=function(a){a.stopPropagation();var b=this.kj?"uncheck":"check";this.isEnabled()&&!a.target.href&&this.dispatchEvent(b)&&(a.preventDefault(),this.toggle(),this.dispatchEvent(tf))};q.wc=function(a){32==a.keyCode&&(this.Tc(a),this.wJ(a));return!1};ZC("goog-checkbox",function(){return new FG});var GG=function(a,b,c){VD.call(this,null,null,a,c);this.A_=b||null};B(GG,VD);q=GG.prototype;q.hw=2;q.U=function(a){GG.c.U.call(this,a);this.v5(a)};q.v5=function(a){this.Op().disabled=!a};q.Qc=function(a){this.j().contains(this.Op(),a.target)||GG.c.Qc.call(this,a)};q.Op=function(){return this.j().ri(Jc,gi,this.J())[0]};q.SY=function(){2==this.hw?(this.Gw(0),this.cd(0)&&this.cd(0).dispatchEvent(k)):(this.Gw(2),this.cd(1)&&this.cd(1).dispatchEvent(k))};q.Xma=function(a){0==a.target.$?this.Gw(0):this.Gw(2)};
q.wF=function(){this.cd(0)&&this.cd(1)&&(this.A().listen(this.Qa(),k,this.Xma),this.cd(0).Dc(0),this.cd(1).Dc(2))};q.rF=function(){this.A().listen(this.Op(),Bf,this.SY)};q.g=function(){GG.c.g.call(this);this.sU();var a=new qD("All",null,this.j(),this.A_),b=new qD("None",null,this.j(),this.A_);this.sc(a);this.sc(b);this.rF();this.wF()};q.sU=function(){var a=this.j().createElement(Jc);a.type=xf;a.className=gi;this.eb(a)};q.Ka=function(a){GG.c.Ka.call(this,a);this.rF();this.wF()};
q.Zg=function(a){GG.c.Zg.call(this,a);this.wF()};q.Gw=function(a){if(this.hw!=a){var b=this.Op();0==a?(b.checked=!0,cA(b,1)):1==a?(b.checked=!0,cA(b,.5)):(b.checked=!1,cA(b,1));this.hw=a}};ZC("goog-selectionmenubutton-button",function(){return new GG});var HG=function(a){a=a||{};var b=a.i9?" "+X("jfk-checkbox-undetermined"):a.checked?" "+X("jfk-checkbox-checked"):" "+X("jfk-checkbox-unchecked");var c=a.i9?"mixed":a.checked?sp:oh;var e=a.Eca?' aria-labelledby="'+X(a.Eca)+'"':a.Dca?' aria-label="'+X(a.Dca)+'"':"";return yF(Bb+X(jj)+" "+X(Xh)+b+(a.disabled?" "+X("jfk-checkbox-disabled"):"")+(a.Xd?" "+X(a.Xd):"")+'" role="checkbox" aria-checked="'+c+'"'+e+(a.id?' id="'+X(a.id)+'"':"")+(a.disabled?' aria-disabled="true" tabindex="-1"':' tabindex="'+
(a.nE?X(a.nE):"0")+'"')+(a.attributes?" "+PF(a.attributes):"")+' dir="ltr"><div class="'+X(kj)+'" role="presentation"></div></span>')};HG.ra="jfk.templates.checkbox.main";var IG=function(a,b){var c=eD(DG,jj);FG.call(this,a,b,c);this.tb(4,!0)};B(IG,FG);q=IG.prototype;q.g=function(){this.Na(VE(HG,{checked:this.bf(),disabled:!this.isEnabled(),i9:this.ira()},void 0,this.j()))};q.Ka=function(a){IG.c.Ka.call(this,a);U(a,Xh);this.b().dir=Tj;this.Fc(kj)||this.fea();MB(this.ze(kj),vm)};q.fea=function(){var a=this.j().g(d,kj);this.b().appendChild(a)};q.mo=function(a){IG.c.mo.call(this,a);this.Ar(!1)};q.Qc=function(a){IG.c.Qc.call(this,a);this.isEnabled()&&this.Ar(!0)};
q.Ar=function(a){this.b()&&fC(this.b(),"jfk-checkbox-clearOutline",a)};var JG=function(a){GG.call(this,AG.H(),null,a);this.Hd=new IG;this.Hd.tb(32,!1)};B(JG,GG);q=JG.prototype;q.Op=function(){return this.Hd.b()};q.sU=function(){this.Hd.render();this.eb(this.Hd.b())};q.Ka=function(a){JG.c.Ka.call(this,a);this.Hd.R(this.Fc(jj))};q.v5=function(a){this.Hd.U(a)};q.rF=function(){this.A().listen(this.Hd,tf,this.SY)};q.Gw=function(a){this.hw!=a&&(0==a?this.Hd.ke(!0):1==a?this.Hd.ke(null):this.Hd.ke(!1),this.hw=a)};q.o=function(){G(this.Hd);JG.c.o.call(this)};ZC("jfk-selectionmenubutton",function(){return new JG});var KG=function(a,b){this.Ck=a instanceof Tx?a:new Tx(a,b)};B(KG,SC);KG.prototype.ha=function(a,b,c,e){HB(Mz(a),0,a,b,this.Ck,c,null,e)};var LG=function(a){this.sb=new L;a&&this.addAll(a)},MG=function(a){var b=typeof a;return b==Jk&&a||b==Ih?"o"+Rq(a):b.substr(0,1)+a};q=LG.prototype;q.sa=function(){return this.sb.sa()};q.add=function(a){this.sb.set(MG(a),a)};q.addAll=function(a){a=zv(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};q.removeAll=function(a){a=zv(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};q.remove=function(a){return this.sb.remove(MG(a))};q.clear=function(){this.sb.clear()};q.Sb=function(){return this.sb.Sb()};
q.contains=function(a){return this.sb.Xb(MG(a))};q.GK=function(a){var b=new LG;a=zv(a);for(var c=0;c<a.length;c++){var e=a[c];this.contains(e)&&b.add(e)}return b};q.nb=function(){return this.sb.nb()};q.clone=function(){return new LG(this)};q.ad=function(a){return this.sa()==yv(a)&&this.bra(a)};
q.bra=function(a){var b=yv(a);if(this.sa()>b)return!1;!(a instanceof LG)&&5<b&&(a=new LG(a));return Cv(this,function(b){var c=a;return c.contains&&typeof c.contains==Ih?c.contains(b):c.nj&&typeof c.nj==Ih?c.nj(b):Mq(c)||v(c)?is(c,b):Ss(c,b)})};q.ig=function(){return this.sb.ig(!1)};var NG=function(a,b,c){this.Z=c||(a?N(P(a)):N());GD.call(this,this.Z.g(d,{style:"position:absolute;display:none;"}));this.TG=new Tx(1,1);this.Nm=new LG;this.xo=null;a&&this.pd(a);null!=b&&this.fP(b)};B(NG,GD);var OG=[];q=NG.prototype;q.pc=null;q.className="goog-tooltip";q.r7=500;q.$oa=0;q.j=function(){return this.Z};q.pd=function(a){a=P(a);this.Nm.add(a);I(a,qk,this.Bg,!1,this);I(a,pk,this.kA,!1,this);I(a,ok,this.mZ,!1,this);I(a,zh,this.Be,!1,this);I(a,hf,this.kA,!1,this)};
q.detach=function(a){if(a)a=P(a),this.yV(a),this.Nm.remove(a);else{for(var b=this.Nm.nb(),c=0;a=b[c];c++)this.yV(a);this.Nm.clear()}};q.yV=function(a){Vu(a,qk,this.Bg,!1,this);Vu(a,pk,this.kA,!1,this);Vu(a,ok,this.mZ,!1,this);Vu(a,zh,this.Be,!1,this);Vu(a,hf,this.kA,!1,this)};q.MAa=function(a){this.r7=a};q.fP=function(a){Gy(this.b(),a)};q.Rh=function(a){var b=this.b();b&&Ox(b,a)};
q.ur=function(a){var b=this.b();b&&xy(b);NG.c.ur.call(this,a);a?(b=this.Z.K().body,b.insertBefore(a,b.lastChild),this.Vva()):(G(this.xo),this.xo=null)};q.Vva=function(){G(this.xo);this.xo=new lC(C(this.b()));this.Y(this.xo);I(this.xo,Ah,this.Is,void 0,this);I(this.xo,Bh,this.gE,void 0,this)};q.getText=function(){return Oy(this.b())};q.YI=function(){return this.b().innerHTML};q.getState=function(){return this.Kr?this.N()?4:1:this.Gu?3:this.N()?2:0};
q.vM=function(){if(!tC.prototype.vM.call(this))return!1;if(this.anchor)for(var a,b=0;a=OG[b];b++)Ey(a.b(),this.anchor)||a.C(!1);ms(OG,this);a=this.b();a.className=this.className;this.Is();I(a,qk,this.yZ,!1,this);I(a,pk,this.xZ,!1,this);this.oG();return!0};q.Ng=function(){os(OG,this);for(var a=this.b(),b,c=0;b=OG[c];c++)b.anchor&&Ey(a,b.anchor)&&b.C(!1);this.S2&&this.S2.gE();Vu(a,qk,this.yZ,!1,this);Vu(a,pk,this.xZ,!1,this);this.anchor=void 0;0==this.getState()&&(this.kD=!1);tC.prototype.Ng.call(this)};
q.rsa=function(a,b){this.anchor==a&&this.Nm.contains(this.anchor)&&(this.kD||!this.dOa?(this.C(!1),this.N()||this.cva(a,b)):this.anchor=void 0);this.Kr=void 0};q.Rt=function(){return this.pc};q.cva=function(a,b){this.anchor=a;this.setPosition(b||this.kJ(0));this.C(!0)};q.psa=function(a){this.Gu=void 0;if(a==this.anchor){a=this.j();var b=a.Rt();a=b&&this.b()&&a.contains(this.b(),b);null!=this.pc&&(this.pc==this.b()||this.Nm.contains(this.pc))||a||this.Koa()||this.C(!1)}};
q.Koa=function(){return!(!this.KT||!this.KT.pc)};q.H4=function(a){var b=this.Z.Df();this.TG.x=a.clientX+b.x;this.TG.y=a.clientY+b.y};q.Bg=function(a){var b=this.rz(a.target);this.pc=b;this.Is();b!=this.anchor&&(this.anchor=b,this.i8(b),this.ET(),this.H4(a))};q.rz=function(a){try{for(;a&&!this.Nm.contains(a);)a=a.parentNode;return a}catch(b){return null}};q.mZ=function(a){this.H4(a);this.kD=!0};
q.Be=function(a){this.pc=a=this.rz(a.target);this.kD=!0;if(this.anchor!=a){this.anchor=a;var b=this.kJ(1);this.Is();this.i8(a,b);this.ET()}};q.kJ=function(a){return 0==a?(a=this.TG.clone(),new PG(a)):new QG(this.pc)};q.ET=function(){if(this.anchor)for(var a,b=0;a=OG[b];b++)Ey(a.b(),this.anchor)&&(a.KT=this,this.S2=a)};
q.kA=function(a){var b=this.rz(a.target),c=this.rz(a.relatedTarget);b!=c&&(b==this.pc&&(this.pc=null),this.oG(),this.kD=!1,!this.N()||a.relatedTarget&&Ey(this.b(),a.relatedTarget)?this.anchor=void 0:this.gE())};q.yZ=function(){var a=this.b();this.pc!=a&&(this.Is(),this.pc=a)};q.xZ=function(a){var b=this.b();this.pc!=b||a.relatedTarget&&Ey(b,a.relatedTarget)||(this.pc=null,this.gE())};q.i8=function(a,b){this.Kr||(this.Kr=M(y(this.rsa,this,a,b),this.r7))};
q.oG=function(){this.Kr&&(Rv(this.Kr),this.Kr=void 0)};q.gE=function(){2==this.getState()&&(this.Gu=M(y(this.psa,this,this.anchor),this.$oa))};q.Is=function(){this.Gu&&(Rv(this.Gu),this.Gu=void 0)};q.o=function(){this.C(!1);this.oG();this.detach();this.b()&&xy(this.b());this.pc=null;delete this.Z;NG.c.o.call(this)};var PG=function(a,b){KG.call(this,a,b)};B(PG,KG);
PG.prototype.ha=function(a,b,c){b=Mz(a);b=Qz(b);c=c?new Bz(c.top+10,c.right,c.bottom,c.left+10):new Bz(10,0,0,10);GB(this.Ck,a,8,c,b,9)&496&&GB(this.Ck,a,8,c,b,5)};var QG=function(a){TC.call(this,a,5)};B(QG,TC);QG.prototype.ha=function(a,b,c){var e=new Tx(10,0);HB(this.element,this.Dk,a,b,e,c,9)&496&&HB(this.element,4,a,1,e,c,5)};var RG=function(a,b,c,e,f){e=e||(b?N(P(b)):N());this.M=a;a=e.K().body;var g=this.M.b();a.appendChild(g);R(this.M.b(),!1);this.className=mj;NG.call(this,b,c,e);this.Y(this.M);this.ur(this.M.b());b=rG(this.M.b(),.13);c=sG(this.M.b(),.13);this.SD(b,c);this.vs=new $E(mj,!0);this.vs.setPosition(null!=f?f:1,void 0,void 0,-1);this.vs.kO(this.M.b(),this.M.IF);this.vs.pw(!0);this.MAa(300)};B(RG,NG);q=RG.prototype;q.kJ=function(){this.vs.Ql(this.Rt());return this.vs};q.J=function(){return this.M.J()};
q.fP=function(a){Gy(this.J(),a)};q.Rh=function(a){Ox(this.J(),a)};q.getText=function(){return Oy(this.J())};q.YI=function(){return this.J().innerHTML};var SG=function(a){var b=vb+X("jfk-bubble")+'" role="alertdialog"'+(a.uid?' aria-describedby="'+X(a.uid)+'"':"")+'><div class="'+X("jfk-bubble-content-id")+'"'+(a.uid?' id="'+X(a.uid)+'"':"")+"></div>";a.PBa&&(b+=vb+X("jfk-bubble-closebtn-id")+" "+X("jfk-bubble-closebtn")+la+KF(bc)+'" role="button" tabindex=0></div>');b+=vb+X("jfk-bubble-arrow-id")+" "+X("jfk-bubble-arrow")+Aa+X("jfk-bubble-arrowimplbefore")+xa+X("jfk-bubble-arrowimplafter")+'"></div></div></div>';return yF(b)};SG.ra="jfk.templates.bubble.main";var TG=function(a,b,c,e){c=c||(a?N(P(a)):N());var f=new fF(c);RG.call(this,f,a,b,c,e)};B(TG,RG);var UG=function(a,b){F.call(this);this.eV=a;this.Qf=b};B(UG,F);UG.prototype.qxa=function(a,b,c,e){this.UBa("Running script","Running script "+qr(b));a=this.Oha(a,b,e);c=this.Pha(c).toString();b=y(this.ona,this,b);a=a.toString();e=new bw;ew.push(e);b&&e.listen(Gf,b);e.Of(Gm,e.uda);e.send(c,Zc,a,void 0)};
UG.prototype.ona=function(a,b){b=b.target.Ba();switch(b.result){case "AUTH_REQUIRED":this.CP("Script requires authorization","Script "+(qr(a)+" requires authorization"));this.WBa(b.authPanelUrl,b.authPanel);break;case "OK":this.CP("Finished script","Finished script "+qr(a));break;default:this.CP("Script experienced an error","Script "+(qr(a)+" experienced an error")),this.NBa(b.error)}};
UG.prototype.Pha=function(a){var b=new Ty;b.$g((""==this.eV?"/macros":"/a/macros/"+this.eV)+"/macroClient");this.qBa(b,a);return b};UG.prototype.Oha=function(a,b,c){var e=new Uy;e.set("cmd",2);null!=a&&e.set("lib",a);e.set("funcName",b);c&&e.set("authMae",c);this.Qf&&e.set("hl",this.Qf);e.set("authVersion","2");return e};var VG=function(a,b,c,e){wC.call(this,void 0,!0,e);this.ya=a;a=this.J();c=N(a);e=c.g(d);e.innerHTML=b;c.appendChild(a,e);this.Ph(AC);this.fb("Authorization Required");this.C(!0);this.Ni(!0);this.addEventListener(Cg,this.$ca)};B(VG,wC);VG.prototype.$ca=function(a){this.Una(a.key);a.uN=!1};VG.prototype.Una=function(a){a!=qf&&eB(this.ya,{target:Xd,height:500,width:600,top:(screen.height-500)/2,left:(screen.width-600)/2,scrollbars:!0});this.C(!1)};var WG=function(a,b,c){UG.call(this,a.domain!=yg?a.domain:"",b);this.L=c||N();this.$i=a};B(WG,UG);w("gsites.pages.view.SitesMaestroRunner",WG,void 0);q=WG.prototype;q.gaa="Running Apps Scripts is available for signed in users only";q.qBa=function(a,b){a.T("mid",b)};q.WBa=function(a,b){(new VG(a,b,"sitesAppsScriptAuthDialog"+this.$i.name.replace(/-/g,""))).C(!0)};q.UBa=function(a,b){S(qr(a+": "+b))};q.CP=function(a,b){S(qr(a+": "+b))};q.NBa=function(a){var b=new wC;b.fb("Alert");b.bg(a);b.Ph(zC);b.C(!0)};
q.Ee=function(){this.Dpa();this.Cpa()};WG.prototype.initListeners=WG.prototype.Ee;WG.prototype.Dpa=function(){for(var a=this.L.bR("a","apps-script-run-link"),b=0;b<a.length;b++){var c=a[b],e=c.id.split("#");3==e.length&&I(c,Bf,this.Pja(e[1],e[2],e[0]),!1,this)}};WG.prototype.Cpa=function(){for(var a=this.L.bR("a","apps-script-disabled-link"),b=0;b<a.length;b++)I(a[b],Bf,this.XBa,!1,this)};WG.prototype.Zpa=function(){JOT_addListener(If,y(this.Ee,this))};WG.prototype.installEditRender=WG.prototype.Zpa;
WG.prototype.XBa=function(){S(this.gaa)};WG.prototype.Pja=function(a,b,c){return function(){this.qxa(a,b,c)}};var YG=function(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Template required");return e.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,e,l,p,r,z,O){if("%"==r)return"%";var f=c.shift();if("undefined"==typeof f)throw Error("[goog.string.format] Not enough arguments");arguments[0]=f;return XG[r].apply(null,arguments)})},XG={s:function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?
a+yr(" ",Number(c)-a.length):yr(" ",Number(c)-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||""==f||(e=parseFloat(a).toFixed(f));var g=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(e=g+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-g.length;return e=0<=b.indexOf("-",0)?g+e+yr(" ",a):g+yr(0<=b.indexOf("0",0)?"0":" ",a)+e},d:function(a,b,c,e,f,g,h,l){return XG.f(parseInt(a,
10),b,c,e,0,g,h,l)}};XG.i=XG.d;XG.u=XG.d;var ZG=!1,$G=[],cH=function(a){$G.push(a);Oq(Iq("google.visualization.ChartEditor"))?aH():ZG||(ZG=!0,webspace.features.googleChartsOverGstatic?bH.tB("https://www.gstatic.com/charts/loader.js",function(){google.charts.load(webspace.gvizGstaticVersion,{packages:["charteditor"],language:webspace.page.locale||"en"});google.charts.setOnLoadCallback(aH)}):(a=YG("//www.google.com/jsapi?client=google-gviz&autoload={modules:[%s]}",lv({name:"visualization",packages:["charteditor_base"],version:webspace.gvizVersion||
"1",language:webspace.page.locale||"en",callback:Do})),bH.tB(a)))},aH=function(){ZG=!1;D($G,function(a){a()});$G=[]};w(Do,aH,void 0);var dH=function(a){for(var b=0;b<a.length;b++){var c=a[b],e=By(c);null!=e&&"chartSpec"==e.name&&e.value&&google.visualization.drawChart(ur(e.value),c)}},eH=function(){var a=P($n);a&&(a=by(d,"sites-gviz-chart",a))&&0<a.length&&cH(Wq(dH,a))},fH=function(){var a=P($n);if(a){a=by("FORM","sites-iframe-gviz-form",a);for(var b=0;b<a.length;b++)a[b].submit()}};JOT_addListener(If,eH);JOT_addListener("decorateGvizCharts",eH);JOT_addListener(If,fH);JOT_addListener(Hf,fH);var gH=/^[\w+/]+[=]{0,2}$/;var hH=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var e=c||t,f=e.document,g;a:{if((g=(e||t).document.querySelector("script[nonce]"))&&(g=g.nonce||g.getAttribute("nonce"))&&gH.test(g))break a;g=void 0}g&&(a.nonce=g);if("help"==a.flow){var h=Iq("document.location.href",e);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var l=JSON.stringify(b);(h=1200>=l.length)&&(a.psdJson=l)}h||(b={invalidPsd:!0})}b=[a,b,c];e.GOOGLE_FEEDBACK_START_ARGUMENTS=
b;c=a.serverUri||"//www.google.com/tools/feedback";if(h=e.GOOGLE_FEEDBACK_START)h.apply(e,b);else{e=c+"/load.js?";for(var p in a)b=a[p],null!=b&&!Oq(b)&&(e+=encodeURIComponent(p)+"="+encodeURIComponent(b)+"&");a=N(f).createElement(ed);g&&a.setAttribute("nonce",g);Rx(a,yE(e));f.body.appendChild(a)}};w("userfeedback.api.startFeedback",hH,void 0);var iH=function(a,b,c){try{c=c||"en";if(0<=b.indexOf("/")){var e=b.split("?#",2)[0];"/"==e.slice(-1)&&(e=e.slice(0,-1));b=e.slice(e.lastIndexOf("/")+1);if(!b||0<=b.indexOf(".")||b==Pn||b==Rn)b="dashboard"}hH({productId:"70",flow:"help",helpCenterContext:b,helpCenterPath:"/sites",anchor:P(a),locale:c})}catch(f){window.open("http://support.google.com/sites/?hl="+c)}};w("sites.util.helpBox",iH,void 0);var jH=function(a,b,c,e){this.ZEa=a;this.DE=b;this.rxa=c;this.X8=e};q=jH.prototype;q.create=function(){ga("create",this.ZEa,{name:this.DE,sampleRate:this.rxa})};q.W8=function(){this.OO();var a={};a.hitCallback=y(function(){ga[this.X8]=!0},this);ga(this.DE+".send","pageview",a)};q.U8=function(a,b,c,e){if(e&&e.hitCallback){var f=e.hitCallback;if(this.Eqa()){var g=M(f,1E3);e.hitCallback=function(){Rv(g);f()}}else{f();return}}ga(this.DE+".send",ih,a,b,c,e)};q.OO=function(){};
q.set=function(a,b){ga(this.DE+".set",a,b)};q.Eqa=function(){return!!ga[this.X8]};var kH=function(){jH.call(this,"UA-38003561-1","SitesTracker",100,"__sites_ga_loaded__")};B(kH,jH);
kH.prototype.OO=function(){this.set("anonymizeIp",!0);this.set("page",webspace.page.path+window.location.search+window.location.hash);var a="Guest";webspace.domain==yg?a="Default domain":"nodomain"==webspace.domain?a="No domain":webspace.user.domainUser&&webspace.user.domain==webspace.domain&&(a="Domain user");var b=webspace.user.hasWriteAccess?"Write access":"No write access",c=webspace.user.hasAdminAccess?"Admin access":"No admin access",e=webspace.isPublic?"Public":"Restricted",f=webspace.isConsumer?
"Consumer":"Hosted",g="Not Embedded";if(window.self!=window.top)try{g=null!=window.top.location?"Embedded in Sites":yc}catch(h){g=yc}this.set("dimension1",a);this.set("dimension2",b);this.set("dimension3",c);this.set("dimension4",e);this.set("dimension5",f);this.set("dimension6",g);this.set("metric1",webspace.page.revision)};var lH=function(){jH.call(this,"UA-45214764-1","CorpSitesTracker",100,"__corp_sites_ga_loaded__")};B(lH,jH);
lH.prototype.OO=function(){this.set("anonymizeIp",!0);this.set("dimension1",webspace.domain);this.set("dimension2",webspace.name);this.set("dimension3",webspace.page.path);this.set("dimension4",webspace.page.wuid);this.set("metric1",webspace.page.revision)};var mH=new kH,nH=new lH,oH=function(){return"google.com"==webspace.domain};
w("sites.core.Analytics.createTracker",function(){window.GoogleAnalyticsObject="ga";window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)};window.ga.l=1*new Date;var a=document.createElement("script"),b=document.getElementsByTagName("script")[0];a.async=1;a.src=Ua;b.parentNode.insertBefore(a,b);mH.create();oH()&&nH.create()},void 0);w("sites.core.Analytics.trackPageview",function(){mH.W8();oH()&&nH.W8()},void 0);
var qH=function(a,b,c,e){oH()&&(pH(2,e),nH.U8(a,b,c,e));mH.U8(a,b,c,e)};w("sites.core.Analytics.trackEvent",qH,void 0);var pH=function(a,b){var c=b&&b.hitCallback;c&&(b.hitCallback=function(){var b=a;return function(){b--;b||c()}}())},rH=function(a,b,c,e){e=e||{};e.hitCallback=c;qH(a,b,void 0,e)};w("sites.core.Analytics.trackEventAndCall",rH,void 0);var sH=function(a,b,c,e){rH(a,b,function(){Sx(window.location,c)},e)};w("sites.core.Analytics.trackEventAndNavigate",sH,void 0);var tH=function(a){J.call(this);this.Mu={};this.Lu={};this.Ga=new jC(this);this.ea=a};B(tH,J);var uH=[E&&!Qt("11")?Hm:Nj,Yd,gh];q=tH.prototype;q.fS=function(a,b,c){(b=v(b)?b:b.src)&&(this.Mu[a]={src:b,nU:u(c)?c:null})};q.jwa=function(a){delete this.Mu[a];var b=this.Lu[a];b&&(delete this.Lu[a],this.Ga.ta(b,uH,this.s2),Us(this.Lu)&&Us(this.Mu)&&this.dispatchEvent(Gf))};q.start=function(){var a=this.Mu;D(Qs(a),function(b){var c=a[b];c&&(delete a[b],this.pB(c,b))},this)};
q.pB=function(a,b){if(!this.isDisposed()){var c=this.ea?N(this.ea).g(Gc):new Image;a.nU&&(c.crossOrigin=a.nU);this.Ga.listen(c,uH,this.s2);this.Lu[b]=c;c.id=b;c.src=a.src}};q.s2=function(a){var b=a.currentTarget;if(b){if(a.type==Hm)if(b.readyState==Gf)a.type=Nj;else return;"undefined"==typeof b.naturalWidth&&(a.type==Nj?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.isDisposed()||this.jwa(b.id)}};
q.o=function(){delete this.Mu;delete this.Lu;G(this.Ga);tH.c.o.call(this)};var vH=function(){this.Qj=new tH;I(this.Qj,Nj,this.gC,!1,this)};w("gsites.util.ImagePreloader",vH,void 0);var wH=new Wx(96,96);vH.prototype.init=function(a,b){a=by("img",b,P(a));b=!1;for(var c=0;c<a.length;c++){var e=a[c];e.height&&e.width?("undefined"==typeof e.naturalWidth&&(e.naturalWidth=e.width),"undefined"==typeof e.naturalHeight&&(e.naturalHeight=e.height),this.gC(null,e)):e.src&&(b=!0,this.Qj.fS(e.id,e.src))}b&&this.start()};
w("gsites.util.ImagePreloader.prototype.init",vH.prototype.init,void 0);vH.prototype.start=function(){this.Qj.start()};vH.prototype.gC=function(a,b){if((b=a?a.target:b)&&u(b.naturalWidth)&&u(b.naturalHeight)&&(a=P(b.id))){var c=new Wx(b.naturalWidth,b.naturalHeight);c.iz(wH)?(a.height=b.naturalHeight,a.width=b.naturalWidth):(b=c.aw(wH),a.height=b.height,a.width=b.width);a.style.display=""}};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var xH=function(a,b){this.qD=[];this.f2=a;this.oV=b||null;this.ru=this.Rm=!1;this.Ug=void 0;this.KP=this.cT=this.QF=!1;this.FE=0;this.ea=null;this.SF=0};q=xH.prototype;q.cancel=function(a){if(this.Rm)this.Ug instanceof xH&&this.Ug.cancel();else{if(this.ea){var b=this.ea;delete this.ea;a?b.cancel(a):b.Tca()}this.f2?this.f2.call(this.oV,this):this.KP=!0;this.Rm||this.sg(new yH(this))}};q.Tca=function(){this.SF--;0>=this.SF&&this.cancel()};q.lU=function(a,b){this.QF=!1;this.IQ(a,b)};
q.IQ=function(a,b){this.Rm=!0;this.Ug=b;this.ru=!a;this.Kt()};q.zk=function(){if(this.Rm){if(!this.KP)throw new zH(this);this.KP=!1}};q.callback=function(a){this.zk();this.HS(a);this.IQ(!0,a)};q.sg=function(a){this.zk();this.HS(a);this.IQ(!1,a)};q.HS=function(a){C(!(a instanceof xH),"An execution sequence may not be initiated with a blocking Deferred.")};q.ua=function(a,b){return this.os(a,null,b)};q.Zh=function(a,b){return this.os(null,a,b)};
q.os=function(a,b,c){C(!this.cT,"Blocking Deferreds can not be re-used");this.qD.push([a,b,c]);this.Rm&&this.Kt();return this};q.then=function(a,b,c){var e,f,g=new Gv(function(a,b){e=a;f=b});this.os(e,function(a){a instanceof yH?g.cancel():f(a)});return g.then(a,b,c)};Dv(xH);xH.prototype.isError=function(a){return a instanceof Error};xH.prototype.KZ=function(){return cs(this.qD,function(a){return Nq(a[1])})};
xH.prototype.Kt=function(){if(this.FE&&this.Rm&&this.KZ()){var a=this.FE,b=AH[a];b&&(b.j4(),delete AH[a]);this.FE=0}this.ea&&(this.ea.SF--,delete this.ea);a=this.Ug;for(var c=b=!1;this.qD.length&&!this.QF;){var e=this.qD.shift(),f=e[0],g=e[1];e=e[2];if(f=this.ru?g:f)try{var h=f.call(e||this.oV,a);u(h)&&(this.ru=this.ru&&(h==a||this.isError(h)),this.Ug=a=h);if(Ev(a)||typeof t.Promise===Ih&&a instanceof t.Promise)this.QF=c=!0}catch(l){a=l,this.ru=!0,this.KZ()||(b=!0)}}this.Ug=a;c&&(h=y(this.lU,this,
!0),c=y(this.lU,this,!1),a instanceof xH?(a.os(h,c),a.cT=!0):a.then(h,c));b&&(a=new BH(a),AH[a.ma]=a,this.FE=a.ma)};var zH=function(){Kr.call(this)};B(zH,Kr);zH.prototype.message="Deferred has already fired";zH.prototype.name="AlreadyCalledError";var yH=function(){Kr.call(this)};B(yH,Kr);yH.prototype.message="Deferred was canceled";yH.prototype.name="CanceledError";var BH=function(a){this.ma=t.setTimeout(y(this.oDa,this),0);this.Jp=a};
BH.prototype.oDa=function(){C(AH[this.ma],"Cannot throw an error that is not scheduled.");delete AH[this.ma];throw this.Jp;};BH.prototype.j4=function(){t.clearTimeout(this.ma)};var AH={};var GH=function(a,b){var c=b||{};b=c.document||document;var e=Ew(a),f=py(document,ed),g={O4:f,em:void 0},h=new xH(CH,g),l=null,p=null!=c.timeout?c.timeout:5E3;0<p&&(l=window.setTimeout(function(){DH(f,!0);h.sg(new EH(1,"Timeout reached for loading script "+e))},p),g.em=l);f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!=Qj&&f.readyState!=Gf||(DH(f,c.nNa||!1,l),h.callback(null))};f.onerror=function(){DH(f,!0,l);h.sg(new EH(0,"Error while loading script "+e))};g=c.attributes||{};
at(g,{type:ap,charset:"UTF-8"});fy(f,g);Rx(f,a);FH(b).appendChild(f);return h},FH=function(a){var b=$x("HEAD",a);return!b||ks(b)?a.documentElement:b[0]},CH=function(){if(this&&this.O4){var a=this.O4;a&&a.tagName==ed&&DH(a,!0,this.em)}},DH=function(a,b,c){null!=c&&t.clearTimeout(c);a.onload=Jq;a.onerror=Jq;a.onreadystatechange=Jq;b&&window.setTimeout(function(){xy(a)},0)},EH=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);Kr.call(this,c);this.code=a};B(EH,Kr);var HH=function(){this.Gl={}};HH.prototype.WAa=function(a){this.Gl["card/source"]=a;return this};HH.prototype.getSource=function(){var a=this.Gl["card/source"];return null!=a?String(a):""};HH.prototype.wo=function(){return this.Gl};var KH=function(a){a=a||N();a=Rq(a.K());IH[a]||(IH[a]=new JH);return IH[a]},IH={},JH=function(){F.call(this);this.Jv=[];this.v=new HH};B(JH,F);var LH=Jw(ow(Ji));q=JH.prototype;q.BW=!1;q.g0=!1;q.rk=null;q.WE=null;q.n9=null;q.uB=function(){var a=Iq("gapi.load");Nq(a)&&!this.g0?(this.g0=!0,a("card",y(this.mma,this))):this.BW||(this.BW=!0,GH(LH).ua(y(this.uB,this)))};
q.mma=function(){this.rk=Iq("gapi.config.update");this.WE=Iq("gapi.card.watch");this.n9=Iq("gapi.card.unwatch");this.configure(this.v);for(var a=0;a<this.Jv.length;a++){var b=this.Jv[a];this.i$(b.b(),b.getUserData())}this.Jv=[]};q.configure=function(a){this.v=a;a=a.wo();if(this.rk)for(var b in a)this.rk(b,a[b])};q.i$=function(a,b){this.WE?(aB(a,"g-hovercard"),b&&a.setAttribute("data-userid",b),this.WE(a)):(this.Jv.push(new MH(a,b)),this.uB())};
q.o=function(){JH.c.o.call(this);delete this.WE;delete this.n9;delete this.Jv};var MH=function(a,b){this.D=a;this.JEa=b};MH.prototype.b=function(){return this.D};MH.prototype.getUserData=function(){return this.JEa};var NH=function(a){J.call(this);this.nm=a||window;this.DL=I(this.nm,Om,this.Kj,!1,this);this.gb=hy(this.nm)};B(NH,J);NH.prototype.Ae=function(){return this.gb?this.gb.clone():null};NH.prototype.o=function(){NH.c.o.call(this);this.DL&&(Wu(this.DL),this.DL=null);this.gb=this.nm=null};NH.prototype.Kj=function(){var a=hy(this.nm);Xx(a,this.gb)||(this.gb=a,this.dispatchEvent(Om))};w("sites.Hovercard",function(){var a=(new HH).WAa(Rn);KH(void 0).configure(a);a=by(null,"sites-admininfobox-hovercard",null);for(var b=0;b<a.length;b++){var c=a[b],e=N(c);KH(e).i$(c,void 0)}},void 0);var OH=function(){this.gX=this.hX=!1};Kq(OH);var PH=function(a){OH.H().Hra(a)};w("sites.util.GapiLoader.loadGapi",PH,void 0);OH.prototype.Hra=function(a){if(this.gX)a();else{if(!this.hX){this.hX=!0;var b=y(this.rza,this);this.sV=GH(Jw(ow(Ki)));this.sV.ua(b)}this.sV.ua(a)}};OH.prototype.rza=function(){this.gX=!0};var QH=function(a,b,c){this.rca=a;webspace.features.contactStoreMigrationPollForGapi?(a=y(this.y_,this,b,c),a=y(this.c1,this,a),webspace.features.gapiLoaderUtil?PH(a):this.ava(a)):(a=y(this.y_,this,b,c),this.c1(a))};B(QH,F);w("sites.CommentPane",QH,void 0);q=QH.prototype;q.ava=function(a){var b=10,c=100,e=function(){window.gapi?a():0<b?(c*=2,b--,M(e,c)):console.log("Failed to load comments.")};e()};q.c1=function(a){GH(yE(this.rca)).ua(a)};
q.y_=function(a,b){var c=bt("c",!1,Docos.OptionName.PANE_DIV,P("sites-comment-docos-pane"),Docos.OptionName.RESOLVE,!1,Docos.OptionName.SHOW_ERRORS,!0,Docos.OptionName.HIDE_NOTIFICATION_SETTINGS,!0,Docos.OptionName.DISABLE_STREAM_PANE_FOCUS_WRAPPING,!0);b&&(c[Docos.OptionName.READONLY]=!0);this.BH=new Docos(c);this.render();a&&this.Gfa()};q.Gfa=function(){this.BH.displayNotificationControlDialog()};q.render=function(){this.BH.renderPaneSurface()};q.o=function(){QH.c.o.call(this);G(this.BH)};var RH=function(){this.yb=[];this.KH=[];this.wm=!1;this.result=this.mE=null},SH;q=RH.prototype;q.ua=function(a,b){if(typeof a!=Ih)throw"Callback must be a function";b&&(a=y(a,b));this.yb.push(a);this.wm&&this.mE&&this.HC(this.result)};q.Zh=function(a,b){if(typeof a!=Ih)throw"Errback must be a function";b&&(a=y(a,b));this.KH.push(a);this.wm&&!this.mE&&this.l3(this.result)};q.callback=function(a){Jr&&this.Zm().info("Got result: "+a);if(this.wm)throw kc;this.mE=this.wm=!0;this.HC(a)};
q.HC=function(a){this.result=a;if(this.yb.length){var b=this.yb.shift();try{Jr&&this.Zm().info("Passing result to callback handler");var c=b(a)}catch(e){Jr&&this.Zm().e$("Caught error running callback:"+e,e);this.wm=!1;this.sg(e);return}c instanceof RH?(Jr&&this.Zm().info("Callback returned Deferred, waiting for result"),c.ua(this.HC,this),c.Zh(this.sg,this)):this.yb.length?(Jr&&this.Zm().info(this.yb.length+" callbacks remaining."),this.HC(c)):this.result=c}};
q.sg=function(a){Jr&&this.Zm().info("Got error: "+a,a);if(this.wm)throw kc;this.wm=!0;this.mE=!1;this.l3(a)};q.l3=function(a){this.result=a;var b;if(this.KH.length)for(;b=this.KH.shift();)try{b(a)}catch(c){}else Jr&&this.Zm().pP("Unhandled error: "+a,a)};q.Zm=function(){SH||(SH=tu("goog.deferred.Deferred"));return SH};
var TH=function(a){this.tV=a;this.Ug=new RH;this.bD=[];for(var b=0;b<a.length;b++){var c=a[b];if(!(c instanceof RH))throw"All items in DeferredArray array must be Deferred objects";c.ua(this.wla,this);c.Zh(this.dma,this)}};TH.prototype.wla=function(a){this.bD.push([!0,a]);this.nT()};TH.prototype.dma=function(a){this.bD.push([!1,a]);this.nT()};TH.prototype.nT=function(){this.bD.length==this.tV.length&&this.Ug.callback(this.bD)};TH.prototype.ua=function(a){this.Ug.ua(a)};var VH=function(){if(UH)return UH;this.F=su();this.F.no(gu);this.F.eS(y(this.Qma,this));this.Sra=new Gx;UH=this},UH=null;VH.prototype.enabled=!0;VH.prototype.Sja=function(){var a=document.getElementById(Nn);a||(a=document.createElement(Fg),a.id=Nn,document.body.appendChild(a));return a};VH.prototype.Qma=function(a){if(this.enabled){var b=this.Sja().appendChild(document.createElement(Fg));b.className="sites-debug-log-logrecord";b.innerHTML=this.Sra.wha(a)}};w("DebugLogDisplay",VH,void 0);var bH={$Na:[],KL:{},j1:{}};w("ResourceLoader",bH,void 0);bH.hu=function(){bH.F||(bH.F=tu("sites.ResourceLoader"));return bH.F};bH.sB=function(a){var b=new RH;if(bH.j1[a])b.callback(!0);else{var c=bH.KL[a];c||(bH.hu().info("loading "+a),c=bH.uB(a));c.ua(b.callback,b);c.Zh(b.sg,b)}b.ua(function(){bH.hu().info("ready: "+a)});b.Zh(function(a){bH.hu().pP("error loading resource",a)});return b};bH.tB=function(a,b,c){a=bH.sB(a);b&&a.ua(b);c&&a.Zh(c)};bH.loadResourceWithCallback=bH.tB;
bH.jv=function(a){for(var b=[],c=0;c<a.length;c++)b.push(bH.sB(a[c]));a=new TH(b);a.ua(function(){bH.hu().info("Done.")});return a};
bH.uB=function(a){var b=new RH;b.ua(function(){delete bH.KL[a];bH.j1[a]=!0});var c=document.getElementsByTagName("head")[0];if(!c)throw"No head element found, aborting";var e=/\.css(\?|$)/.exec(a);if(e){var f=document.createElement("link");f.href=a;f.rel="stylesheet"}else/\.js$|\.js\?|\/jsapi$|\/jsapi\?/.exec(a)&&(f=document.createElement("script"),f.src=a);if("undefined"!=typeof f.readyState)f.onreadystatechange=function(){f.readyState!=Qj&&f.readyState!=Gf||b.callback(!0)};else if(e){var g=function p(){p.Wga||
(p.Wga=!0,window.clearInterval(h),b.callback(!0))};var h=window.setInterval(function(){try{g()}catch(p){15!=p.code&&g()}},100);window.setTimeout(g,3E3)}else f.onload=function(){b.callback(!0)};c.appendChild(f);b.ua(function(){bH.hu().info("loaded: "+a)});return bH.KL[a]=b};var WH=function(a,b){this.T1={};this.spa={};this.D4=b;JOT_addListener("registerForRpc",y(this.Xva,this));var c=this;this.D4.register("resize_iframe",function(a){c.xza(this.f,a)})};w("gsites.RpcHub",WH,void 0);WH.prototype.Xva=function(a){var b=a.payload[0],c=a.payload[1],e=document.getElementById(c);if(e&&e.name){var f=e.name;e.src=a.payload[2];this.D4.setAuthToken(f,b);this.T1[f]=c;this.spa[c]=f}};WH.prototype.xza=function(a,b){if(a=document.getElementById(this.T1[a]))a.style.height=b+n};(function(){function a(a){a&&"ping"==a.data&&a.source.postMessage("pong",a.origin)}window.addEventListener&&window.addEventListener(gk,a,!1)})();w("JOT_addParamToUri",function(a,b,c){a=a instanceof Ty?a:new Ty(new String(a));a.T(b,c);return a},void 0);function XH(a){for(var b="",c=!1,e=!0,f=0;f<arguments.length;f++){var g=arguments[f];if(typeof g==So){var h=0==g.indexOf("/");c&&h?g=g.substring(1):c||h||e||(b+="/");e=!1;c=g.lastIndexOf("/")==g.length-1;b+=g}}return b}webspace.getPath=XH;function YH(a){a=ZH(a);var b={};a&&$H(b,a);return b}w("JOT_getCompParts",YH,void 0);function ZH(a){return a.id&&0==a.id.indexOf(Pb)?a:ZH(a.parentNode)}
function $H(a,b){b=b.childNodes;for(var c=0;c<b.length;c++){var e=b[c];if(1==e.nodeType&&(!e.id||0!=e.id.indexOf(Pb))){var f=e.getAttribute("jotId");if(f){e.RNa=f;var g=a[f];if(g){if(!(g instanceof Array)){var h=[];h.push(g);g=a[f]=h}g.push(e)}else a[f]=e}$H(a,e)}}}
function aI(a){I(window,Nj,function(){var b=webspace.analyticsAccountId,c=webspace.enableUniversalAnalytics,e=webspace.baseUri;if(b&&c){var f="ga";window.GoogleAnalyticsObject?f=window.GoogleAnalyticsObject:(window[f]=window[f]||function(){(window[f].q=window[f].q||[]).push(arguments)},window[f].l=1*new Date,window.GoogleAnalyticsObject=f,bH.sB(Ua));var g=window[f];g("create",b,{cookieDomain:e});g("send","pageview");a&&g("set","admin",!0)}})}
function bI(a,b){I(window,Nj,function(){bH.tB((Hi==document.location.protocol?"https://ssl.":"http://www.")+"google-analytics.com/ga.js",function(){var c=webspace.analyticsAccountId,e=webspace.enableAnalytics,f=webspace.baseUri;c&&e&&b&&(c=window._gat._getTracker(c),c._setCookiePath(f),c._trackPageview(),c._trackPageLoadTime(),a&&c._setVar("admin"));if(c=webspace.domainAnalyticsAccountId)c=window._gat._getTracker(c),-1!=document.location.host.indexOf(".google.com")&&(f=f.slice(0,f.lastIndexOf("/")),
c._setCookiePath(f)),c._trackPageview(),c._trackPageLoadTime()})})}w("JOT_insertAnalyticsCode",function(a,b){b?(aI(a),webspace.domainAnalyticsAccountId&&bI(a,!1)):bI(a,!0)},void 0);
w("JOT_insertTranslateCode",function(a,b){Xq("translateCallback",function(){var a=Iq("google.translate.TranslateElement");new a({pageLanguage:b,floatPosition:a.FloatPosition.BOTTOM_RIGHT,autoDisplay:!1});document.documentElement.style.height=af});I(window,Nj,function(){bH.sB(document.location.protocol+"//translate.google.com/translate_a/element.js?cb=translateCallback&hl="+a)})},void 0);function cI(a,b,c,e){a=webspace.baseUri+a;b="json="+encodeURIComponent(lv(b));UA(a,c,e,Zc,b)}
w("JOT_callEndpoint",cI,void 0);function dI(a,b,c,e,f,g,h,l){var p=webspace.baseUri+"/system/services/gateway/?service="+encodeURIComponent(a);b.requestPath=b.requestPath||(new Ty(new String(window.location))).getPath();a=f||Zc;f=function(a,b){a&&(new Ty(new String(window.location))).mb(b)&&(p+="&"+b+"=true")};f(g,"nofwd");f(l,"ffwd");b=lv(b);var r;h=h||{};a==Zc?r="json="+encodeURIComponent(b):h.json=b;UA(p,c,e,a,r,void 0,h)}w("JOT_callGateway",dI,void 0);
function eI(a,b,c,e,f){var g=webspace.baseUri+"/system/services/gateway-upload/?service="+a,h=new WA;e&&I(h,Vo,e);f&&I(h,gh,f);c=c||{};c.service=a;a=lv(c);h.wS(b,"json",a);b.acceptCharset="utf-8";h.aca(b);h.e5(b,g)}w("JOT_postFormToGateway",eI,void 0);function fI(a){return-1==Bw(a,void 0)?Tm:Tj}w("JOT_getTextDir",fI,void 0);w("JOT_setTextDir",function(a){null!=a.value&&(a.dir=fI(a.value))},void 0);function gI(a,b){return a?(b=b==Tm?"\u200f":"\u200e",b+a+b):""}w("JOT_wrapTextDir",gI,void 0);
w("JOT_setMobilePreview",function(){var a=window.getComputedStyle(document.body,null),b=document.getElementById($n);b.style.backgroundColor=a.backgroundColor;b.style.backgroundImage=a.backgroundImage;b.style.backgroundRepeat=a.backgroundRepeat;b.style.backgroundAttachment=a.backgroundAttachment;b.style.backgroundPosition=a.backgroundPosition;document.body.style.background=jq},void 0);webspace.redirect=function(a){Sx(window.location,a)};webspace.search=function(a,b,c){dI("Search",a,b,c)};
webspace.shallowSearch=function(a,b,c){dI("ShallowSearch",a,b,c)};w("webspace.shallowSearch",webspace.shallowSearch,void 0);webspace.FNa=function(a,b,c){dI(Dc,a,b,c)};webspace.sOa=function(a,b,c){dI(jd,a,b,c)};function hI(a){var b=!1,c=a.getAttribute(hp);c&&(c=parseInt(c,10));if(c){var e=a.getAttribute("issitelocale");(e=e?window.JOT_formatRelativeToNow(c,e):window.JOT_formatRelativeToNow(c))?b=!0:(e=a.getAttribute(ip)||(new zB(10)).format(new Date(c)),a.removeAttribute(hp));Gy(a,e)}return b}
function iI(){var a=!1;if(window.JOT_formatRelativeToNow)for(var b=by(Jo),c=b.length-1;0<=c;c--)hI(b[c])&&(a=!0);a?jI():kI&&(window.clearInterval(kI),kI=null)}var kI;function jI(){kI||(kI=window.setInterval(iI,2E4),I(window,"pageshow",iI))}w("JOT_setInnerRelativeTime",function(a,b,c){for(var e=a.firstChild;e;e=e.nextSibling)if(e.getAttribute&&e.getAttribute(hp)){a=e;break}b?a.setAttribute(hp,b):a.removeAttribute(hp);a.setAttribute(ip,c||(new Date(b)).toLocaleString());hI(a);jI()},void 0);jI();
JOT_addListener(If,iI);window.JOT_SUBPAGE_click=function(a){a=new Cu(a||window.event);if(a.target.className==mh)return a=a.target.parentNode.parentNode,dB(a,Df)?cB(a,Df):aB(a,Df),!1};webspace.printUrl=new Ty(new String(window.location));webspace.printUrl.T("tmpl","/system/app/templates/print/");webspace.printUrl.T("showPrintDialog","1");var lI=function(){F.call(this);this.P4=iy(document);this.Ga=new jC(this);this.Y(this.Ga);this.lr=null;var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;a&&(a=y(a,window));this.c4=a};B(lI,F);Kq(lI);JOT_addListener("pageLoaded",function(){lI.H().Mpa()});q=lI.prototype;q.cra=function(){return!!document.querySelector};q.Mpa=function(){if(this.cra())for(var a=by(Fg,"goog-toc"),b=0;b<a.length;b++)this.Lpa(a[b])};
q.Lpa=function(a){a=by("a",null,a);for(var b=0;b<a.length;b++){var c=a[b],e=c.getAttribute("href"),f=e&&e.substring(1);if(e=e&&"#"==e[0]&&this.Hka(f))f=y(this.Dxa,this,e,f),this.Ga.listen(c,Bf,f)}};q.Hka=function(a){return a&&(a=document.querySelector("a[name="+a+"]"))&&a.parentNode&&a.parentNode.tagName&&a.parentNode.tagName.match(/H[1-9]/)?a.parentNode:null};
q.Dxa=function(a,b,c){a=Pz(a).y;this.lr=new qz([this.P4.scrollTop],[a],200,OA);this.Ga.listen(this.lr,pe,this.jC);this.Ga.listen(this.lr,eh,Wq(this.Yta,b));this.lr.play();c&&c.preventDefault()};q.jC=function(a){this.c4?this.c4(y(this.B6,this,a.x)):this.B6(a.x)};q.B6=function(a){this.P4.scrollTop=a};q.Yta=function(a){a&&(window.location.hash=a);G(this.lr);this.lr=null};var mI=function(a,b,c,e){hG.call(this,null);this.Jl=function(){Sx(window.location,a)};b&&c&&(this.Jl=function(){sH(b,c,a,e)})};B(mI,hG);w("sites.components.NavigationButton",mI,void 0);var nI=function(a){this.L=a||N()};w("sites.components.Paginator",nI,void 0);
nI.prototype.Ee=function(a,b,c,e,f,g,h){0>e&&(e=0);if("desc"==(g||"asc")){var l=e-f;g=e+f;f=g>=c;c=c-e==c}else g=e-f,l=e+f,f=0>g,c=l>=c;e=l;e=Wv(aw(String(window.location),Kk),Kk,e);g=Wv(aw(String(window.location),Kk),Kk,g);g=new mI(g);g.R(P(a));g.Yg(2);if(!f){if(l=P(a)){switch(h){case qe:a="View newer posts";break;case "revisions":a="View newer revisions";break;default:a="Previous"}kF(l,a,void 0)}I(g,k,g.Jl)}g.U(!f);f=new mI(e);f.R(P(b));f.Yg(1);if(!c){if(b=P(b)){switch(h){case qe:a="View older posts";
break;case "revisions":a="View older revisions";break;default:a="Next"}kF(b,a,void 0)}I(f,k,f.Jl)}f.U(!c)};nI.prototype.initListeners=nI.prototype.Ee;var oI=function(a,b,c){wD.call(this,null,c);this.lxa=a;this.S8=dy("sites-navigation-link",a);this.ST=!!b;b=dy(oo,a);this.pd(a,9,8);this.T6(!1);this.R(b)};B(oI,wD);w("gsites.HoverPopupMenu",oI,void 0);var pI=[],qI=function(a,b){ZC(po,function(){var a=eD(pD,po);return new qD(null,null,null,a)});var c=bD(tD,oo);a=by(null,a);for(var e=0;e<a.length;e++)pI.push(new oI(a[e],b,c))};w("gsites.HoverPopupMenu.createSiteDropdownMenus",qI,void 0);
w("gsites.HoverPopupMenu.setSiteDropdownMenusFocusable",function(a){for(var b=0;b<pI.length;b++)pI[b].Pl(a)},void 0);q=oI.prototype;q.ACa=function(){this.N()&&(this.tA=M(y(this.qsa,this),250))};q.mG=function(){this.tA&&(Rv(this.tA),this.tA=void 0)};q.qsa=function(){this.mG();this.Rb()||this.Ce()};q.B=function(){oI.c.B.call(this);this.ST?(this.zDa=this.S8.href,this.S8.href="javascript:void(0);"):this.A().listen(this.j().K(),qk,this.Tta,!0)};
q.pd=function(a,b,c,e,f){this.HK(a)||(a=this.qU(a,b,c,e,f),this.ST?this.A().listen(a.D,Bf,this.$ta):this.A().listen(a.D,qk,this.bua))};q.bua=function(a){this.zn=!0;this.mG();oI.c.kC.call(this,a)};q.$ta=function(a){this.Rb()?Sx(window.location,this.zDa):(this.zn=!0,this.mG(),oI.c.kC.call(this,a))};q.Tta=function(a){this.N()&&(this.zn=a.target instanceof Element&&this.mg(a.target),this.Rb()||this.tA||this.ACa())};q.Rb=function(){return this.zn};q.e2=function(){};q.af=function(){this.Rb()||this.Ce()};
q.mg=function(a){return this.j().contains(this.lxa,a)};var rI=function(){};w("sites.util.GearsMenu",rI,void 0);rI.prototype.Epa=function(){var a=P(no),b=dy("sites-gears-button-icon");a&&b&&(b=new VD(b,null,AG.H()),b.R(a),a=b.Qa(),this.x_(a))};var sI=function(a,b){iH(a,b||"viewPage")};
rI.prototype.x_=function(a){this.ul(a,"sites-view-page-help",Wq(sI,mk,"viewPage"));this.ul(a,"sites-help",Wq(sI,no,document.URL));var b=XH(webspace.baseUri,"/system/app/pages/meta/dashboard/userSettings");this.ul(a,"sites-user-settings",function(){Sx(window.location,b)});this.ul(a,"googleadmin-enabled-link",function(){document.cookie="JOT_GA=false; path=/";window.location.reload(!0)});this.ul(a,"googleadmin-disabled-link",function(){document.cookie="JOT_GA=true; path=/";window.location.reload(!0)});
var c=XH(webspace.baseUri,"/system/pages/siteAdminTool");this.ul(a,"sites-admin-page",function(){Sx(window.location,c)});var e=XH(webspace.baseUri,"/system/app/pages/meta/dashboard/domainAdminTool");this.ul(a,"sites-domain-admin-page",function(){Sx(window.location,e)});this.ul(a,"sites-internal-feedback",function(){window.open("http://sites.google.com/a/google.com/JotSpot_Help/")})};rI.prototype.ul=function(a,b,c){(a=a.Sk(b))&&I(a,k,c)};var tI=function(a,b){F.call(this);this.Zqa=!!a;(this.Mqa=!!b)||(new rI).Epa();this.Zqa&&this.Jpa()};B(tI,F);w("sites.util.OneGoogle",tI,void 0);var uI={my:"Search my sites",all:"Search all sites"};q=tI.prototype;q.ew=null;q.FN=null;q.Ml=null;
q.Jpa=function(){if(window.gbar){var a=window.gbar.qfae,b=window.gbar.qfgf;if(a&&b){this.ew=b();this.FN=this.ew.elements.scope;this.Ml=this.ew.elements.q;I(this.ew,Uo,y(function(a){this.s0()||a.preventDefault()},this));var c=new vD;Js(uI,function(a,b){c.sc(new qD(a,b))});b=new XD(null,c,new AG);var e=my(d,["sites-search-scope-selector",Xh]);b.o5(!1);b.z6(!0);b.render(e);var f=gB(this.FN);b.setValue(f);I(b,tf,y(this.Kna,this));a(e)}}};
q.Kna=function(a){a=a.target.xa().$;var b=this.FN,c=b.type;switch(v(c)&&c.toLowerCase()){case xf:case "radio":b.checked=a;break;case "select-one":b.selectedIndex=-1;if(v(a))for(var e=0;c=b.options[e];e++)if(c.value==a){c.selected=!0;break}break;case fn:c=a;v(c)&&(c=[c]);for(var f=0;e=b.options[f];f++)if(e.selected=!1,c)for(var g,h=0;g=c[h];h++)e.value==g&&(e.selected=!0);break;default:b.value=null!=a?a:""}this.Ml.placeholder=uI[a];this.s0()&&this.ew.submit()};
q.s0=function(){var a=gB(this.Ml);return v(a)&&!ar(a)};var vI=function(){this.Pb=dy("sites-admin-content-pane")||dy("goog-ws-dash-main")||P("sites-chrome-everything-scrollbar")||P($n);this.IP=dy("sites-admin-sidebar-wrapper");this.QZ=dy("sites-system-edit-header")||dy("sites-header-divider");this.$W=dy("sites-adminfooter")||dy("sites-dash-footer");var a=new NH(window);I(a,Om,y(this.resize,this))};B(vI,F);Kq(vI);w("sites.util.PageContentResizer.getInstance",vI.H,void 0);vI.prototype.gza=function(a){this.yga=!!a};vI.prototype.setExcludeFooter=vI.prototype.gza;
vI.prototype.bEa=function(a){a=hy().height-a;this.Pb&&(Q(this.Pb,xi,a+n),Q(this.Pb,hl,af));this.IP&&(Q(this.IP,xi,a+n),Q(this.IP,hl,af))};vI.prototype.resize=function(){var a=0;this.QZ&&(a+=aA(this.QZ).height);!this.yga&&this.$W&&(a+=aA(this.$W).height);this.bEa(a)};vI.prototype.resize=vI.prototype.resize;var wI=function(a){var b='<table width="500px">';a=a.rpa;for(var c=a.length,e=0;e<c;e++){var f=a[e];b+='<tr><td width="16px" id="upload-icon-'+W(f)+'" style="background-repeat: no-repeat; background-position: center center;"></td><td width="184px" id="upload-name-'+W(f)+'"></td><td width="300px"><div id="upload-status-text-'+W(f)+'"></div><div id="upload-status-progress-'+W(f)+'"></div></td></tr>'}return b+qb};wI.ra="soy.sites.attachments.Dialog.content";var xI=function(a){return yF(""+(a.R2?'<label><input jotId="showPageTitleEl" type="checkbox" '+PF(a.Q2)+"/>Show page title</label>":"")+(a.u8?'<br/><label><input jotId="allowSubpagesEl" type="checkbox" '+PF(a.t8)+"/>Show links to sub-pages</label>":"")+(a.OS?'<br/><label><input jotId="allowAttachmentsEl" type="checkbox" '+PF(a.PS)+"/>Allow attachments</label>":"")+(a.$T?'<br/><label><input jotId="allowCommentsEl" type="checkbox" '+PF(a.aU)+"/>Allow comments</label>":"")+"")},yI=function(a){return yF('<table cellspacing="10px">'+
(a.S1?'<tr><td style="width: 25%; vertical-align: top">Template name:</td><td><input jotId="pageTemplateName" type="text" size="30"'+(a.ll?ja:"")+' value="_pageURL_"/></td></tr>':"")+'<tr><td style="width: 25%; vertical-align: top">Description:</td><td><input jotId="pageTemplateDesc" type="text" size="30" value="'+X(a.description)+'"/><br/>Shown to the user in the create page on hover</td></tr></table>')},zI=function(a){return yF('<table cellspacing="10px"><tr><td style="width: 25%; vertical-align: top">Default location:</td><td><strong><span jotId="defaultLocationLabel">'+
W(a.defaultLocationPath)+'</span></strong>&nbsp; (<a href="javascript:;" id="templateDefaultLocationAnchor" onclick="JOT_postEvent(\'showSelectDefaultTemplateLocation\'); return false">change</a>)<input type="hidden" jotId="defaultLocationWuid" value="'+X(a.defaultLocationWuid)+'"/><br/><div id="sites-template-default-loc">When pages are created with this page template, they will be added to this location in your site.</div></td></tr></table>')},AI=function(a){var b=yF,c='<p jotId="confirmText" class="goog-ws-large">Really delete "'+
W(a.P2)+'"?</p><p jotId="errorPageText" class="goog-ws-deletePage-lockText" style="display:none">&#160;</p>';var e=yF;var f='<div jotId="pageList-'+X(a.O2)+'" class="goog-ws-tree-wrapper sites-delete-items-subtree jfk-scrollbar"><p><strong>Deleting "'+W(a.P2)+'" will delete the following items:</strong></p><div jotId="treeDiv-'+X(a.O2)+'">Loading page list&#8230;<span id="spinnerWait" class="goog-inline-block"><img src="';a=a.baseUri;wF(a,AE)?(C(a.constructor===LE),a=QF(a)):wF(a,BE)?(C(a.constructor===
ME),a=QF(a)):a instanceof Lw?a=QF(Mw(a)):a instanceof Dw?a=QF(Ew(a)):(a=String(a),eG.test(a)?a=a.replace(SF,TF):(Or("Bad value `%s` for |filterNormalizeMediaUri",[a]),a=ae));e=e(f+X(a)+'/system/app/images/spinner.gif"/></span></div></div>');return b(c+e+"")},BI=function(){return yF("<b>Oops!</b><br/>")},CI=function(a,b,c){return yF(""+BI(null,null,c||b)+"You cannot delete these pages because they include the landing page (<b>"+W(a.vra)+"</b>). Please either move the landing page or switch to a different landing page.")};
CI.ra="soy.sites.pageactions.deletePageErrorLandingPage";var DI=function(a,b,c){return yF(""+BI(null,null,c||b)+"This page no longer exists - maybe it was deleted by someone else?")};DI.ra="soy.sites.pageactions.deletePageErrorNotFound";var EI=function(a,b,c){return yF(""+BI(null,null,c||b)+"One or more of the pages to be deleted are locked because they are currently being edited. You must wait until they are finished editing before deleting.")};EI.ra="soy.sites.pageactions.deletePageErrorDescendants";
var FI=function(a,b,c){return yF(""+BI(null,null,c||b)+"This page is locked because it is currently being edited by <b>"+W(a.Qra)+"</b>. You must wait until they are finished before deleting it.")};FI.ra="soy.sites.pageactions.deletePageErrorCurrent";var GI=function(a,b,c){return yF(""+BI(null,null,c||b)+"You can not delete this page because you don't have editing rights on its parent. Ask the site's owner to grant you access to the parent page.")};GI.ra="soy.sites.pageactions.deletePageErrorParentPermission";
var HI=function(a,b,c){return yF(""+BI(null,null,c||b)+"You can not delete this page because you don't have editing rights on one of its subpages. Ask the site's owner to grant you access to the subpages.")};HI.ra="soy.sites.pageactions.deletePageErrorChildPermission";var II=function(a,b,c){return yF(""+BI(null,null,c||b)+"You can not delete this page because of an unknown error.")};II.ra="soy.sites.pageactions.deletePageErrorPageUnknown";
var JI=function(a){for(var b='<table class="goog-ws-deletePage-table"><tr><th>Page</th><th>Locked by</th></tr>',c=a.results,e=c.length,f=0;f<e;f++){var g=c[f];b+=g.wuid!=a.upa?'<tr><td><a href="'+X(UF(g.path))+ua+W(g.title)+"</a></td><td>"+W(g.lockUser)+rb:""}return yF(b+qb)};JI.ra="soy.sites.pageactions.deleteErrorLockTable";var KI=function(){return yF('<div class="goog-adsense-promo-popup"><div class="goog-adsense-promo-up-arrow"></div><div class="goog-adsense-promo-dismiss"><span class="modal-dialog-title-close"></span></div><div class="goog-adsense-promo-title"><strong>Make money with AdSense</strong></div><div class="goog-adsense-promo-content"><div class="goog-adsense-promo-img"></div><div class="goog-adsense-promo-text"><p>Use Google AdSense to earn revenue by displaying ads that are precisely targeted to your Site. Click to begin earning money with AdSense!</p></div></div><div class="goog-adsense-promo-monetize-btn"></div></div>')};
KI.ra="soy.sites.pageactions.adSensePromo";var LI=function(a){a=$F(v(a.message)||a.message instanceof FE,gk,a.message,ka);return yF('<div class="sites-cookie-notice-fit" tab-index="-1"><div>'+W(a)+"</div><br></div>")};LI.ra="soy.sites.notice.viewerNotice";var MI=function(a){return'<p>Link your Google+ page to your site.</p><p>The Google+ badge helps you grow your audience on Google+ and show more recommendations in Google search by letting people add you to their circles and +1 your page, all without leaving your site.</p><p><a href="https://developers.google.com/+/plugins/badge/" target="_blank">Learn more about Google+ badges</a></p><p id="'+W(a.Rc.Zaa)+'"'+(a.url?"":' style="visibility:none"')+'><span class="sites-plus-page-url-preview">This badge will link to: <a id="'+
W(a.Rc.$aa)+'" target="_new" href="'+W(a.url)+ua+W(a.url)+'</a></span> <span id="'+W(a.Rc.u$)+'" class="plus-page-change-url">Change</span></p><div><p><label for="size" class="sites-plusone-properties-label">Style:</label> <select jotId="style" id="style"><option value="badge"'+("badge"==a.style?ia:"")+'>Standard badge</option><option value="smallbadge"'+("smallbadge"==a.style?ia:"")+'>Small badge</option><option value="smallicon"'+("smallicon"==a.style?ia:"")+'>Small icon</option><option value="mediumicon"'+
("mediumicon"==a.style?ia:"")+'>Medium icon</option><option value="largeicon"'+("largeicon"==a.style?ia:"")+">Large icon</option></select></p></div>"};MI.ra="sites.editor.embed.templates.plusbadge.dialog";var NI=function(a){return'<div class="sites-sitelayout-chrome-hint">'+W(a.hpa)+lb};NI.ra="sites.editor.chrome.templates.chromeelementhint.main";var OI=function(a){return'<table style="width: 100%;"><tbody><tr><td class="goog-ws-edit-nav-title"><b>Text to display:</b></td><td><input type="text" id="sites-chrome-externalurl-title" value="'+W(a.title)+'" class="sites-chrome-externalurl-input"/></td></tr><tr><td class="goog-ws-edit-nav-title"><b>URL or email:</b></td><td><input type="text" id="sites-chrome-externalurl-url" value="'+W(a.url)+'" class="sites-chrome-externalurl-input"/></td></tr><tr><td colspan=2><span jotid="linkNewWindowSpan"><label><input id="sites-chrome-externalurl-opennewwin" type="checkbox"'+
(a.G2?ca:"")+"/>Open this link in a new window</label></span></td></tr></tbody></table>"};OI.ra="sites.editor.chrome.templates.externalurl.main";var PI=function(a){var b='<div class="goog-ws-edit-nav">'+(a.SA?"":'<div><table><tr><td style="vertical-align: baseline"><strong>Title:&nbsp;</strong></td><td style="vertical-align: baseline"><input id="navTitle" type="text" value="'+W(a.title)+'"/><br/><label><input type="checkbox" id="displayTitleCheckbox"/> Display title</label></td></tr></table><hr/></div>')+'<div id="fullNavEditor">'+(a.SA?"":'<label><input type="checkbox" id="dynamicModeCheckbox"/> Automatically organize my navigation</label><div style="margin-top: 12px" id="dynamicModeEditor">Levels of pages to show: <select id="depthSelector"><option>1</option><option>2</option><option>3</option><option>all</option></select></div>');
var c='<table class="goog-ws-edit-nav-table" id="manualModeEditor"><tr><td valign="top"><p><strong>Select pages to show</strong></p><div class="goog-ws-list-gadget"><div id="pageListEl"></div></div><p><a id="addPageBtn" class="sites-chrome-navigationdialog-addpage sites-chrome-navigationdialog-action" tabindex="0">Add page</a> <a id="addLinkBtn" class="sites-chrome-navigationdialog-addlink sites-chrome-navigationdialog-action" tabindex="0">Add URL</a></p></td><td valign="top" class="goog-ws-edit-nav-icons"><p><a id="moveUpBtn"><span class="sites-chrome-navigationdialog-btn sites-chrome-navigationdialog-icon-up" title="Move Up"></span></a></p><p><a id="moveDownBtn"><span class="sites-chrome-navigationdialog-btn sites-chrome-navigationdialog-icon-down" title="Move Down"></span></a></p>'+
(a.tK?'<p><a id="indentBtn"><span class="sites-chrome-navigationdialog-btn '+W(a.tK)+'" title="Indent"></span></a></p>':"")+(a.HM?'<p><a id="outdentBtn"><span class="sites-chrome-navigationdialog-btn '+W(a.HM)+'" title="Outdent"></span></a></p>':"")+'<p><a id="removeBtn"><span class="sites-chrome-navigationdialog-btn sites-chrome-navigationdialog-icon-remove" title="Remove"></span></a></p></td></tr></table>';return b+c+'</div><br/><p>Include a link to:<br/><label><input type="checkbox" id="showSitemap"/> Sitemap</label><br/><label><input type="checkbox" id="showRecentSiteActivity"/> Recent site activity</label></p></div>'+
(a.SA?'<hr/><div><table><tr><td><p><strong>Style</strong><br/></p></td><td></td></tr><tr><td><label><input type="radio" name="navbarTabType" id="navbarTabTypeBoxes"/>Boxes</label><br/><label><input type="radio" name="navbarTabType" id="navbarTabTypeTabs"/>Tabs</label><br/><label><input type="radio" name="navbarTabType" id="navbarTabTypeLinks"/>Links</label></td><td></td></tr></table></div>':"")};PI.ra="sites.editor.chrome.templates.navigationdialog.main";var QI=function(){return'<div><div>The Google Sites AdSense API has been shut down.</div><div>AdSense modifications are no longer supported within Google Sites.</div><div><a target="_blank" href="https://support.google.com/sites/answer/3156640">Learn more<a></div></div><div style="display: none"><select id="adlayout" name="adlayout"></select><span id="sites-pageelements-adsense-adunittype"></span><input id="sites-pageelements-adsense-text-and-image" name="adunittype"/><input id="sites-pageelements-adsense-text-only" name="adunittype"/><input id="sites-pageelements-adsense-five-link-unit" name="adunittype"/></div>'};
QI.ra="sites.editor.chrome.templates.sidebaradsensedialog.deprecatedDialog";var RI=function(a){a=$F(v(a.event)||a.event instanceof FE,ih,a.event,ka);return'<div class="goog-ws-text"><table><tr><td><label class="goog-ws-label-inline"><strong>Event:</strong></label></td><td><input id="eventEl" type="text" aria-label="Event:" value="'+W(a)+'" tabindex="0"/></td></tr><tr><td><label class="goog-ws-label-inline"><strong>Event date:</strong></label> </td><td><input id="dateEl" type="text" aria-label="Event date:" tabindex="0"/></td></tr></table></div>'};RI.ra="sites.editor.chrome.templates.sidebarcountdowndialog.main";var SI=function(a){return'<p>Number of activities to show: <input id="numItemsEl" type="text" value="'+W(a.oM)+'"/> <span style="display:none; color:red;" id="errEl">Must be a valid number of activities</span></p>'};SI.ra="sites.editor.chrome.templates.sidebarrecentsiteactivitydialog.main";var TI=function(a){return'<div class="goog-ws-text"><p><label class="goog-ws-label-inline"><strong>Title:</strong></label>&#160;<input id="titleEl" type="text" value="'+W(a.title)+'"/></p><p><label><strong>Content:</strong></label><div id="textBoxContent" class="goog-ws-text-content"></div></p></div>'};TI.ra="sites.editor.chrome.templates.sidebartextboxdialog.main";var UI=function(a){return'<div class="sites-sitelayouteditor-sidebar-widget-toolbar"><span class="sites-camelot-icon sites-sitelayouteditor-drag-icon"></span><span>'+W(a.title)+'</span><span id="'+W(a.id)+'_delete" class="sites-camelot-icon sites-camelot-delete-icon"></span></div>'};UI.ra="sites.editor.chrome.templates.sidebarwidgettoolbar.main";var VI=function(a){for(var b='<div class="sites-sitelayouteditor-toolbar-button" id='+W(a.id)+'><span class="',c=a.opa,e=c.length,f=0;f<e;f++)b+=W(c[f])+" ";return b+='sites-camelot-icon"></span><span>'+W(a.label)+"</span></div>"};VI.ra="sites.editor.chrome.templates.sitelayouttoolbar.button";
var WI=function(a){return'<div class="goog-inline-block sites-sitewidth-editor"><span class="sites-sitewidth-label">Site width:</span><div id="sites-sitewidth-radio-container" class="goog-inline-block"></div><input type="text" id="sites-sitewidth" name="width" onclick="this.focus()" class="text-input sites-sitewidth-editor-text" placeholder="'+W(a.Xua)+oa+(a.isSiteRtlLocale?Tm:Tj)+'"/></div>'};WI.ra="sites.editor.chrome.templates.sitelayouttoolbar.siteWidth";var XI=function(){return'<div id="sites-chrome-sidebar-editor" class="sites-sitelayouteditor-sidebar-editor"><span>Sidebar</span><span id="sites-chrome-add-sitebarwidget" class="sites-sidebar-icon-add-widget sites-camelot-icon"></span><span id="sites-chrome-editsidebar" class="sites-sidebar-icon-edit sites-camelot-icon"></span></div>'};XI.ra="sites.editor.chrome.templates.sidebareditor.main";var $I=function(a){J.call(this);this.SG=this.Wl={};this.R0=0;this.dla=ct(YI);this.jDa=ct(ZI);this.qS=!0;this.hca=this.mca=!1;this.Fsa=!0;this.jca=!1;this.oF=null;this.Tpa(a)},aJ;B($I,J);var bJ=function(a){this.sP=a||null;this.next=a?null:{}},YI=[27,112,113,114,115,116,117,118,119,120,121,122,123,19],ZI=["color","date","datetime","datetime-local",Zg,"month",Ik,"password",dn,"tel",$o,"time",Mp,"week"];q=$I.prototype;q.oya=function(a){this.qS=a};q.D3=function(a,b){cJ(this.Wl,this.M_(1,arguments),a)};
q.l9=function(a){dJ(this.Wl,this.M_(0,arguments))};q.M_=function(a,b){if(v(b[a]))a=as(eJ(b[a]),function(a){Pr(a.keyCode,"A non-modifier key is needed in each stroke.");return fJ(a.key||"",a.keyCode,a.Gsa)});else{var c=b,e=a;x(b[a])&&(c=b[a],e=0);for(a=[];e<c.length;e+=2)a.push(fJ("",c[e],c[e+1]))}return a};q.MDa=function(){this.Wl={}};q.o=function(){$I.c.o.call(this);this.MDa();this.yda()};
var eJ=function(a){a=a.replace(/[ +]*\+[ +]*/g,"+").replace(/[ ]+/g," ").toLowerCase();a=a.split(" ");for(var b=[],c,e=0;c=a[e];e++){var f=c.split("+"),g=null,h=null;c=0;for(var l,p=0;l=f[p];p++){switch(l){case "shift":c|=1;continue;case "ctrl":c|=2;continue;case "alt":c|=4;continue;case "meta":c|=8;continue}null===h||Or("At most one non-modifier key can be in a stroke.");f=void 0;g=l;if(!aJ){h={};for(f in yG)h[yG[f]]=jB(parseInt(f,10));aJ=h}h=aJ[g];Pr(h,"Key name not found in goog.events.KeyNames: "+
l);g=l;break}b.push({key:g,keyCode:h,Gsa:c})}return b};q=$I.prototype;q.Tpa=function(a){this.Cn=a;I(this.Cn,zj,this.Ah,void 0,this);Ct&&I(this.Cn,Aj,this.FZ,void 0,this);I(this.Cn,Bj,this.iq,void 0,this)};q.iq=function(a){yt&&this.nma(a);Ct&&this.Hoa(a)};
q.nma=function(a){if(Bt){if(224==a.keyCode){this.H1=!0;M(function(){this.H1=!1},400,this);return}var b=a.metaKey||this.H1;67!=a.keyCode&&88!=a.keyCode&&86!=a.keyCode||!b||(a.metaKey=b,this.Ah(a))}32==this.oF&&32==a.keyCode&&a.preventDefault();this.oF=null};q.VK=function(a){return Ct&&a.ctrlKey&&a.altKey};q.FZ=function(a){32<a.keyCode&&this.VK(a)&&(this.n0=!0)};q.Hoa=function(a){!this.n0&&this.VK(a)&&this.Ah(a)};
q.yda=function(){Vu(this.Cn,zj,this.Ah,!1,this);Ct&&Vu(this.Cn,Aj,this.FZ,!1,this);Vu(this.Cn,Bj,this.iq,!1,this);this.Cn=null};
var cJ=function(a,b,c){var e=b.shift();D(e,function(c){if((c=a[c])&&(0==b.length||c.sP))throw Error("Keyboard shortcut conflicts with existing shortcut");});b.length?D(e,function(e){e=e.toString();var f=new bJ;e=e in a?a[e]:a[e]=f;f=b.slice(0);cJ(C(e.next,"An internal node must have a next map"),f,c)}):D(e,function(b){a[b]=new bJ(c)})},dJ=function(a,b){var c=b.shift();D(c,function(c){var e=a[c];e&&(0==b.length?e.sP&&delete a[c]:e.next&&(dJ(e.next,b.slice(0)),Us(e.next)&&delete a[c]))})};
$I.prototype.Vp=function(a,b){for(var c=0;c<b.length;c++){var e=a[b[c]];if(e)return e}};var fJ=function(a,b,c){c=c||0;b=["c_"+b+"_"+c];""!=a&&b.push("n_"+a+"_"+c);return b};
$I.prototype.Ah=function(a){if(this.hL(a))if(a.type==zj&&this.VK(a))this.n0=!1;else{var b=jB(a.keyCode),c=fJ(a.key,b,(a.shiftKey?1:0)|(a.ctrlKey?2:0)|(a.altKey?4:0)|(a.metaKey?8:0)),e=this.Vp(this.SG,c);e&&!this.Voa()||this.aO(this.Wl);(e=this.Vp(this.SG,c))&&e.next&&this.aO(e.next);if(e)if(e.next)a.preventDefault();else{this.aO(this.Wl);this.qS&&a.preventDefault();this.mca&&a.stopPropagation();c=Qr(e.sP,"A terminal node must have a string shortcut identifier.");e=a.target;var f=this.dispatchEvent(new gJ("shortcut",
c,e));(f&=this.dispatchEvent(new gJ("shortcut_"+c,c,e)))||a.preventDefault();yt&&(this.oF=b)}}};
$I.prototype.hL=function(a){var b=a.keyCode;if(""!=a.key){var c=a.key;if("Control"==c||"Shift"==c||"Meta"==c||"AltGraph"==c)return!1}else if(16==b||17==b||18==b)return!1;c=a.target;var e=c.tagName==yd||c.tagName==Jc||c.tagName==Mb||c.tagName==fd,f=!e&&(c.isContentEditable||c.ownerDocument&&"on"==c.ownerDocument.designMode);return!e&&!f||this.dla[b]||this.hca?!0:f?!1:this.Fsa&&(a.altKey||a.ctrlKey||a.metaKey)?!0:c.tagName==Jc&&this.jDa[c.type]?13==b:c.tagName==Jc||c.tagName==Mb?this.jca?!0:32!=b:!1};
$I.prototype.Voa=function(){return 1500<=A()-this.R0};$I.prototype.aO=function(a){this.SG=a;this.R0=A()};var gJ=function(a,b,c){H.call(this,a,c);this.identifier=b};B(gJ,H);var hJ=function(){};B(hJ,zG);Kq(hJ);hJ.prototype.S=function(){return fj};var iJ=function(a,b,c){wC.call(this,a,b,c)};B(iJ,wC);var jJ=0;iJ.prototype.C=function(a){a!=this.N()&&(iJ.c.C.call(this,a),a?jJ++:jJ=Math.max(jJ-1,0),this.focus())};iJ.prototype.focus=function(){if(this.N()){var a=this.Dj();a&&(My(a,!0),a.focus())}};
iJ.prototype.ha=function(){var a=this.Z.K(),b=ky(a)||window;a=N((b||t||window).document).Df();var c=a.x;a=a.y;var e=aA(this.b());b=hy(b);c=Math.max(c+b.width/2-e.width/2,0);var f=P("gb"),g=20;f&&(g+=aA(f).height);a=Math.max(a+b.height/2-e.height/2,g);Kz(this.b(),c,a)};w("gsites.components.JotDialog.prototype.reposition",iJ.prototype.ha,void 0);iJ.prototype.close=function(){this.C(!1);this.dispose()};var kJ=function(a){this.ADa=a};kJ.prototype.toString=function(){return this.ADa};var lJ=new kJ(dq),mJ=new kJ("selection"),nJ=new kJ(Rp),oJ=new kJ(dh),pJ=new kJ(tf),qJ=new kJ(k);var rJ=function(a){this.data=a};var sJ=function(a,b,c){this.$M=a;this.newValue=b;this.oldValue=c};var tJ=function(a){F.call(this);this.Dn=1;this.vC=[];this.JC=0;this.lf=[];this.Ui={};this.Gca=!!a};B(tJ,F);tJ.prototype.subscribe=function(a,b,c){var e=this.Ui[a];e||(e=this.Ui[a]=[]);var f=this.Dn;this.lf[f]=a;this.lf[f+1]=b;this.lf[f+2]=c;this.Dn=f+3;e.push(f);return f};tJ.prototype.unsubscribe=function(a,b,c){if(a=this.Ui[a]){var e=this.lf;if(a=gs(a,function(a){return e[a+1]==b&&e[a+2]==c}))return this.gm(a)}return!1};
tJ.prototype.gm=function(a){var b=this.lf[a];if(b){var c=this.Ui[b];0!=this.JC?(this.vC.push(a),this.lf[a+1]=Jq):(c&&os(c,a),delete this.lf[a],delete this.lf[a+1],delete this.lf[a+2])}return!!b};
tJ.prototype.cr=function(a,b){var c=this.Ui[a];if(c){for(var e=Array(arguments.length-1),f=1,g=arguments.length;f<g;f++)e[f-1]=arguments[f];if(this.Gca)for(f=0;f<c.length;f++){var h=c[f];uJ(this.lf[h+1],this.lf[h+2],e)}else{this.JC++;try{for(f=0,g=c.length;f<g;f++)h=c[f],this.lf[h+1].apply(this.lf[h+2],e)}finally{if(this.JC--,0<this.vC.length&&0==this.JC)for(;c=this.vC.pop();)this.gm(c)}}return 0!=f}return!1};var uJ=function(a,b,c){ot(function(){a.apply(b,c)})};
tJ.prototype.clear=function(a){if(a){var b=this.Ui[a];b&&(D(b,this.gm,this),delete this.Ui[a])}else this.lf.length=0,this.Ui={}};tJ.prototype.sa=function(a){if(a){var b=this.Ui[a];return b?b.length:0}a=0;for(b in this.Ui)a+=this.sa(b);return a};tJ.prototype.o=function(){tJ.c.o.call(this);this.clear();this.vC.length=0};var vJ=function(a){F.call(this);this.Yn=new tJ(a);this.Y(this.Yn)};B(vJ,F);q=vJ.prototype;q.subscribe=function(a,b,c){return this.Yn.subscribe(a.toString(),b,c)};q.unsubscribe=function(a,b,c){return this.Yn.unsubscribe(a.toString(),b,c)};q.gm=function(a){return this.Yn.gm(a)};q.cr=function(a,b){return this.Yn.cr(a.toString(),b)};q.clear=function(a){this.Yn.clear(u(a)?a.toString():void 0)};q.sa=function(a){return this.Yn.sa(u(a)?a.toString():void 0)};var wJ=function(a,b){F.call(this);this.ma=a;this.gt={};this.eh=b?Xs(b):{};this.Ppa=Xs(this.eh);this.a6();this.Zn=new tJ;this.fm=new vJ;this.kF=1E6};B(wJ,F);q=wJ.prototype;q.a6=function(){u(this.eh["keys-enabled"])||(this.eh["keys-enabled"]=!0);this.isEnabled()||(this.gt[xg]=!0);u(this.eh[kp])||(this.eh[kp]=!0)};q.o=function(){wJ.c.o.call(this);this.Zn.dispose();this.fm.dispose();delete this.Zn;delete this.fm;delete this.eh};q.getId=function(){return this.ma};q.isEnabled=function(){return!!this.getProperty(dh)};
q.U=function(a,b){b=b||xg;var c=!0;if(a){delete this.gt[b];for(var e in this.gt){c=!1;break}}else this.gt[b]=!0,c=!1;this.setProperty(dh,c)};q.N=function(){return!!this.getProperty(fq)};q.C=function(a){this.setProperty(fq,a)};q.Rd=function(){return!!this.getProperty(hn)};q.ag=function(a){this.setProperty(hn,a)};q.tg=function(){return this.getProperty(rf)||""};q.Oja=function(){return this.getProperty("node-label")||null};q.wg=function(){return this.getProperty(Cj)||""};
q.vja=function(){return this.getProperty("long-label")||""};q.BI=function(){var a=this.vja();return a?a:(a=this.Oja())?Oy(a):this.wg()};q.ZI=function(){return this.getProperty("icon")};q.bb=function(){return this.getProperty("keys")};q.getValue=function(){return this.getProperty(Rp)};q.setValue=function(a){this.setProperty(Rp,a)};q.getProperty=function(a){return this.eh[a]};
q.setProperty=function(a,b){"keys"==a&&null!=b&&(C(x(b),"Key property should be an array, but got %s instead",b),C(0==b.length||v(b[0]),"Key property should be an array of strings, but got %s instead",b));var c=this.eh[a];if(b!==c){this.eh[a]=b;this.fm.cr(pJ,new sJ(a,b,c));var e=xJ(a);e&&this.fm.cr(e,new sJ(a,b,c))}};q.Fka=function(){var a=this.getProperty("synonyms");if(a){a=a.split("|");for(var b=a.length-1;0<=b;b--)a[b]&&(a[b]=cr(a[b])),a[b]||ns(a,b);return a}return[]};
q.Mp=function(a,b){if(this.isEnabled()){var c=this.eh.selected,e=this.eh[kp];null!=c&&e&&this.ag(!c);this.Zn.cr(k,a,b);this.fm.cr(qJ,new rJ(a,b))}};q.subscribe=function(a,b,c){return this.Zn.subscribe(a,b,c)};q.ZCa=function(a,b,c){return this.fm.subscribe(a,b,c)+this.kF};q.unsubscribe=function(a,b,c){return this.Zn.unsubscribe(a,b,c)};q.gm=function(a){return a>this.kF?this.fm.gm(a-this.kF):this.Zn.gm(a)};q.reset=function(){this.Zn.clear();this.fm.clear();this.eh=Xs(this.Ppa);this.gt={};this.a6()};
var xJ=function(a){switch(a){case fq:return lJ;case hn:return mJ;case Rp:return nJ;case dh:return oJ;default:return null}};var yJ=Is("Macintosh")||rt();var zJ={Alt:"Option",Ctrl:"\u2318",Meta:"\u2318"},AJ=function(a,b,c){a=a.replace(/[ +]*\+[ +]*/g,"+").replace(/[ ]+/g," ");a=as(a.match(/[+ ]|[^+ ]+/g),function(a){a=" "==a?"then":a;return(c&&"Ctrl"==a||!yJ?"":zJ[a])||a});return b?a:a.join(" ")},DJ=function(a){a=as(a,function(a){return as(a,BJ)});CJ(a);return a},BJ=function(a){var b=a.title;a=as(a.ah,function(a){if(x(a)){var c=pC.H().Nd();c=new wJ(c);var f=null==a[0]||x(a[0])?a[0]:[a[0]];c.setProperty("keys",f);c.setProperty(Cj,a[1]);a[2]&&c.setProperty(Gh,
!0);c.setProperty(rf,b);a=c}return a});return{title:b,ah:a}},CJ=function(a){for(var b=0;b<a.length;++b)for(var c=a[b],e=0;e<c.length;++e){var f=c[e],g=f.title;f=f.ah;for(var h=0;h<f.length;++h){var l=f[h],p=l.tg();C(p,"Action "+l.getId()+" should have a CATEGORY property");C(g==p,"For action "+l.getId()+" category should be the same from data and from action")}}};var FJ=function(a){a=a||{};wC.call(this,a.className,a.FEa,a.wNa);this.fb(a.title||"");this.vk=a.eba||null;this.sG=null;this.vT=a.jda||null;this.ei={};this.Em=a.jH||"";this.qE=this.Yra(a);this.YD=this.a8=this.ci=this.ms=null;this.xx=a.kNa||null;this.Em&&(EJ[this.Em]=this);this.reposition=this.ha;this.contentEl=this.J();this.setModal=this.o6;this.setActionEnabled=this.m5};B(FJ,iJ);var EJ={};q=FJ.prototype;
q.g=function(){FJ.c.g.call(this);var a=this.J();var b=this.qE;b='<div id="COMP_dialog'+XF(b.jH)+ua+XF(b.sfa)+'<div><div class="modal-dialog-buttons '+XF(b.xda)+ua+(b.IZ?'<a jotId="btnOk" id="'+XF(b.d2)+'"></a>&nbsp;':"")+'<a jotId="btnCancel" id="'+XF(b.xT)+'"></a></div></div></div>';a.innerHTML=b};
q.B=function(){FJ.c.B.call(this);ar(Ar(this.qE.Ex))||aB(this.Dj(),this.qE.Ex);aB(this.Dj(),"legacy-jot-dialog");var a=this.J();Q(a,"padding","0");this.Gda=this.ou();this.$ra();this.Lba();this.compParts=this.ei=YH(a.firstChild)};q.m5=function(a,b){this.ms.U(a);R(this.a8,void 0==b?!a:b)};
q.Lba=function(){var a=this.A();this.ms&&a.listen(this.ms,k,this.fq);a.listen(this.ci,k,this.hA);this.sG=new nB(this.Gda);a.listen(this.sG,k,this.hA);JOT_addListener("dialogCancel"+this.Em,y(this.hA,this));if(this.xx){this.YD||(this.YD=new $I(this.Dj()),this.YD.D3("doAction",this.xx));var b=this;a.listen(this.YD,"shortcut",function(a){"doAction"==a.identifier&&b.fq(a)})}};
q.$ra=function(){var a=this.qE;this.Ph(null);R(this.aia(),!1);var b=this.j(),c=hJ.H();if(a.IZ){var e=b.b(a.d2),f=new QD(a.wx,c);f.render(e);aB(f.b(),hj);this.ms=f;if(this.xx){var g=AJ(this.xx);g=a.wx+" \u202a("+g+")\u202c";f=new TG(f.b(),g,this.j());this.Y(f)}f=webspace.getPath(webspace.baseUri,db);f=my(Gc,{src:f,style:"display:none;",className:"sites-embed-dialog-spinner"});e.parentNode.insertBefore(f,e.nextSibling);this.a8=f}b=b.b(a.xT);f=new QD(a.fG,c);f.render(b);this.ci=f;aB(f.b(),ij)};
q.fq=function(a){var b=!0;this.vk&&(a.eventSrc=a.eventSrc||a.target.b&&a.target.b()||a.target,b=this.vk(a));if(b||void 0==b)this.C(!1),this.dispose()};q.hA=function(a){var b=!0;this.vT&&(a.eventSrc=a.eventSrc||a.target,b=this.vT(a));if(b||"undefined"==typeof b)this.C(!1),this.dispose()};q.Nn=function(a){27==a.keyCode&&this.PH?this.hA(a):FJ.c.Nn.call(this,a)};
q.Yra=function(a){var b={};b.wx=a.wx||"OK";b.fG=a.fG||Yb;b.xda="sites-clear";b.sfa=this.sia(a);b.jH=this.Em;b.xT=this.Ig("cancelBtn");b.d2=this.Ig("okBtn");b.IZ=!!this.vk;b.Ex=a.Ex;return b};q.sia=function(a){var b=a.template;b=b instanceof FE?b.zb():b;return a.C0?this.Owa(b,a.C0):b};q.Owa=function(a,b){for(var c in b)a=a.replace(new RegExp("_"+c+"_","gi"),b[c]);return a};
q.o=function(){G(this.sG);JOT_removeAllListenersForName("dialogCancel"+this.Em);this.Em&&delete EJ[this.Em];G(this.ms);G(this.ci);FJ.c.o.call(this)};var GJ=function(a,b){return b.pia()-a.pia()};var HJ=/\\\|/g;xr("a|an|the").replace(HJ,"|");xr("that|this").replace(HJ,"|");xr("on|to").replace(HJ,"|");var IJ=function(a){F.call(this);this.Fa=a;this.G=new jC(this);this.G.listen(a,Ai,this.Fta);this.G.listen(a,fh,this.vta);this.G.listen(a,ie,this.eta);this.G.listen(a,zi,this.Eta);this.Jy(!0)};B(IJ,F);q=IJ.prototype;q.ev=null;q.CN=null;q.qH=!1;q.vta=function(a){this.qH?a.preventDefault():this.ev=a.target};q.Fta=function(){this.Jy()};q.eta=function(){null!=this.CN?(this.Fa.b().scrollTop=this.CN,this.Jy(!1)):this.Jy(!0)};q.Eta=function(a){a.target==this.Fa&&(this.ev=null,this.CN=this.Fa.b().scrollTop)};
q.Jy=function(a){var b=this.Fa.Ff();if(this.Fa.N()&&b&&b!=this.ev){var c=this.Fa.b();Uz(b.b(),c,a);this.gDa();this.ev=null}};q.gDa=function(){this.qH=!0;M(function(){this.qH=!1},0,this)};q.o=function(){IJ.c.o.call(this);this.G.dispose();this.ev=null};var JJ={"close-square-bracket":"]",dash:"-",down:"\u2193",equals:"=",left:"\u2190","num-minus":"-","num-plus":"+","open-square-bracket":"[",right:"\u2192",semicolon:";","single-quote":"'",up:"\u2191"};var KJ=function(a,b,c){b=c||b;c="";var e=a.OZ==gf?" "+X("apps-shortcutshelppopup-hc-black"):a.OZ==jq?" "+X("apps-shortcutshelppopup-hc-white"):"";c+=vb+X("apps-shortcutshelppopup-container")+e+Aa+X("apps-shortcutshelppopup-header")+'" role="presentation"><div><div class="'+X("apps-shortcutshelppopup-title-container")+" "+X(Me)+'"><h2 id="'+X(a.kH)+ma+X(Ke)+'">Keyboard shortcuts</h2><input type="text" class="'+X(Oe)+" "+X("jfk-textinput")+'" role="combobox" aria-autocomplete="list" placeholder="'+
KF(md)+sa+X(Pe)+" "+X(gj)+" "+X(fj)+'" tabindex="0"><div class="'+X("apps-shortcutshelppopup-input-button-img")+'"></div></div></div><div class="'+X("apps-shortcutshelppopup-tearoff-link-container")+" "+X(Me)+za+X(UF(a.tP))+ma+X("apps-shortcutshelppopup-tearoff-link")+" "+X(Ne)+'">View all shortcuts in Help Center</a></div></div></div><div class="'+X("apps-shortcutshelppopup-search-banner")+ua+W(fG({Xd:CF(Re),style:0,nE:0,content:DF(vb+X("apps-shortcutshelppopup-reset-search-button-icon")+Aa+X("apps-shortcutshelppopup-reset-search-button-img")+
'"></div></div>')},null,b))+'<h3 class="'+X(Se)+'"></h3></div></div>';return yF(c)};KJ.ra="apps.action.soy.legacyshortcutshelpcontent.container";
var LJ=function(a){var b=""+(a.DA?vb+X(Qe)+wa:"")+'<div tabindex="-1" class="'+X("apps-shortcutshelppopup-result-container")+'"><table cellpadding="0" tabindex="0" class="'+X(He)+la+X(a.dDa)+'"><tbody>';a=a.OY;for(var c=a.length,e=0;e<c;e++){var f=a[e];b+=f.title?Eb+X("apps-shortcutshelppopup-content-header")+(0==e?" "+X("apps-shortcutshelppopup-content-header-first"):"")+ua+W(f.title)+nb:"";f=f.ah;for(var g=f.length,h=0;h<g;h++){var l=f[h];b+=Db+X("apps-shortcutshelppopup-shortcut-desc")+" "+X(Ie)+
ua+W(l.description)+sb+X("apps-shortcutshelppopup-shortcut-key")+" "+X(Ie)+ua+W(l.keys)+rb}}return yF(b+"</tbody></table></div>")};LJ.ra="apps.action.soy.legacyshortcutshelpcontent.content";
var MJ=function(a){var b=""+(vb+X("CSS_SHORTCUTS_HELP_POPUP_CONTAINER")+" "+X("jfk-scrollbar-dark")+Ca+X(Sb)+" "+X("CSS_SHORTCUTS_HELP_POPUP_HEADER")+Da+X("CSS_SHORTCUTS_HELP_POPUP_TITLE")+" "+X(Vb)+'" id="'+X(a.kH)+ma+X(Ke)+'">Keyboard shortcuts</td><td class="'+X("CSS_SHORTCUTS_HELP_POPUP_TEAROFF_LINK_CONTAINER")+" "+X(Vb)+za+X(UF(a.tP))+ma+X(Wb)+" "+X(Ne)+'">View all shortcuts in Help Center</a> | <span class="'+X("CSS_SHORTCUTS_HELP_CLOSE_PLACEHOLDER")+'"></span></td></tr></table>'+(a.DA?vb+X(Qe)+
wa:"")+'<table cellpadding="0" class="'+X(Sb)+" "+X("CSS_SHORTCUTS_HELP_POPUP_CONTENT")+'"><tr>');a=a.Mda;for(var c=a.length,e=0;e<c;e++){var f=a[e];b+='<td class="'+X(Tb)+Ca+X(Sb)+'"><tbody>';for(var g=f.length,h=0;h<g;h++){var l=f[h];b+='<tr><th class="'+X(Ub)+'"></th><th class="'+X(Ub)+'"><h3>'+W(l.title)+nb;l=l.ah;for(var p=l.length,r=0;r<p;r++){var z=l[r];b+=Db+X("CSS_SHORTCUTS_HELP_POPUP_KEY")+" "+X(Tb)+ua+W(z.keys)+sb+X("CSS_SHORTCUTS_HELP_POPUP_DESCRIPTION")+" "+X(Tb)+ua+W(z.description)+
rb}}b+="</tbody></table></td>"}return yF(b+"</tr></table></div>")};MJ.ra="apps.action.soy.legacyshortcutshelpcontent.legacyBanner";var NJ=function(a){var b="",c=" "+WF("apps-actiondatawidget-content-element");c=FF(c);b+='<table cellpadding="-1" class="'+X("apps-actiondatawidget-content")+" "+X(Th)+ua+(a.group.title?Eb+X("apps-actiondatawidget-content-header")+ua+W(a.group.title)+nb:"");a=a.group.ah;for(var e=a.length,f=0;f<e;f++){var g=a[f];b+=Db+X("apps-actiondatawidget-shortcut-desc")+X(c)+ua+W(g.description)+sb+X("apps-actiondatawidget-shortcut-key")+X(c)+ua+W(g.keys)+rb}return yF(b+qb)};NJ.ra="apps.action.shortcut.soy.actiongroupitem.content";
var OJ=function(a){var b="",c=""+(a.kga?WF("apps-actiondatawidget-override-keys-on"):WF("apps-actiondatawidget-override-keys-off"));c=FF(c);var e=""+(a.KM?WF("apps-actiondatawidget-key-extra-padding"):"");e=FF(e);b+=(a.text?Ab+X(a.zS)+ma+X(e)+ua+ZF(1,W(a.text))+ob:"")+(a.KM?Bb+X(c)+ua+ZF(1,W(a.KM))+Bb+X(Fe)+'" data-overridden-browser-behavior-msg="'+X(a.Dv)+'"></span></span>':"")+"";return yF(b)},PJ=function(a){return yF(Bb+X("apps-actiondatawidget-override-browser-behavior-msg")+'"> '+W(a.Dv)+ob)};var RJ=function(a,b,c,e){gD.call(this,null,QJ.H());this.SR=a;this.fba=b||null;this.iW=!!c;this.Iwa=!!e};B(RJ,gD);RJ.prototype.tg=function(){return this.SR.title};
var SJ=function(){return!vt&&wA?"Chrome":xA?"Safari":sA?"Firefox":E?"Internet Explorer":wt?sc:null},UJ=function(a,b,c,e,f){var g=as(a.ah,function(a){return TJ(a,b)});c&&D(c,function(b){var c=Xr(a.ah,b.action);-1!=c?g[c]=TJ(b.action,!0,b.Dua,e,f,b.Dv):g.push(TJ(b.action,!0,b.Dua,e,f,b.Dv))});return{title:a.title,ah:g}},TJ=function(a,b,c,e,f,g){var h=a.BI();var l="";a.bb()&&!f&&(l=VJ(a,rs(a.bb())));f=l.replace(/pg-up/i,"page up");f=f.replace(/pg-down/i,"page down");f=f.replace("`","backtick");f=f.replace("~",
"tilde");f=f.replace("-","hyphen");f=f.replace("_","underscore");f=f.replace("=","equals");f=f.replace("[","left bracket");f=f.replace("]","right bracket");f=f.replace(";",jn);f=f.replace(":","colon");f=f.replace(",","comma");f=f.replace(".","period");f=f.replace("/","slash");f=f.replace("\\","backslash");f=f.replace(JJ.up,"up");f=f.replace(JJ.down,"down");f=f.replace(JJ.left,Ij);f=f.replace(JJ.right,Pm);b?c?(a=VJ(a,c),e=OJ({text:l,zS:f,KM:a,kga:e&&!!SJ(),Dv:g})):e=OJ({text:l,zS:f}):(e=l,e=yF(Ab+
X(f)+ma+X("CSS_SHORTCUTS_HELP_POPUP_KEY_MNEMONIC")+ua+ZF(1,W(e))+ob));return{keys:e,description:h}},VJ=function(a,b){b=as(b,function(b){b=[b];C(x(b));b=b[0];for(var c in JJ)b.match(new RegExp("-"+c,"gi"))||(b=b.replace(new RegExp(c,"gi"),JJ[c]));yJ&&(c=!a.getProperty(Gh),b.match(c?/(Meta|Ctrl)\+.(\+.*)?$/:/Meta\+.(\+.*)?$/)?(b=b.replace(/Meta\+/g,"\u2318"),c&&(b=b.replace(/Ctrl\+/g,"\u2318"))):(b=b.replace(/Meta\+/g,"\u2318+"),c&&(b=b.replace(/Ctrl\+/g,"\u2318+"))),b=b.replace(/(?=\w*Alt(?!Gr))(\w+)/g,
"Option"));b=b.replace(/Ctrl/g,"Ctrl");b=b.replace(/Shift/g,"Shift");b=b.replace(/Alt/g,"Alt");b=b.replace(/Option/g,"Option");b=b.replace(/Meta/g,"Meta");b=b.replace(/backspace/gi,"Backspace");b=b.replace(/tab/gi,"Tab");b=b.replace(/enter/gi,"Enter");b=b.replace(/pause/gi,"Pause");b=b.replace(/caps-lock/gi,"Caps-Lock");b=b.replace(/esc/gi,"Esc");b=b.replace(/space/gi,"Space");b=b.replace(/pg-up/gi,"Pg-Up");b=b.replace(/pg-down/gi,"Pg-Down");b=b.replace(/end/gi,"End");b=b.replace(/home/gi,"Home");
b=b.replace(/insert/gi,"Insert");return b=b.replace(/delete/gi,"Delete")});return b.join(" or ")},QJ=function(){};B(QJ,cD);Kq(QJ);var WJ={U$:Fe,V$:"apps-actiondatawidget-override-info-icon-tooltip",W$:"apps-actiondatawidget-override-info-icon-tooltip-unsupported"};QJ.prototype.g=function(a){Wr(a,RJ);var b=VE(NJ,{group:UJ(a.SR,!0,a.fba,a.iW,a.Iwa)});this.Yba(a,b);return b};
QJ.prototype.Yba=function(a,b){var c=a.j(),e=SJ();b=c.Xm(WJ.U$,b);D(b,y(function(b){C(b);var c={eT:e,Dv:b.dataset.overriddenBrowserBehaviorMsg,yBa:!!e,nga:a.iW},f=vb+X("apps-actiondatawidget-override-tooltip-text")+ua;c.yBa?(c=c.nga?"The "+(W(c.eT)+(" browser"+(PJ(c,null,void 0)+" keyboard shortcut was overridden by Sheets"))):"This keyboard shortcut is currently used by "+(W(c.eT)+(" browser for"+PJ(c,null,void 0))),f+=c):f+="Keyboard override is not available with the current browser.\nTo enable this feature, change to Chrome, Firefox, IE/Edge or Safari";
f=yF(f+lb).Ti();kF(b,f,void 0);f=e?WJ.V$:WJ.W$;ar(Ar(f))||b.setAttribute(sg,f);b.setAttribute(rg,"t,c");b.setAttribute(ug,-6)},this))};var XJ=function(a,b,c,e){mD.call(this,Up,aD.H(),b);this.va=a;this.ns=e||null;this.$qa=c||null;this.oU();this.fL=!0;this.dw=null;this.Px=""};B(XJ,mD);q=XJ.prototype;q.g=function(){this.Na(this.j().g(d,"apps-actiondatawidget"));this.xU(!0);My(this.Ta(),!0);var a=new IJ(this);this.Y(a)};q.ec=function(){return!1};q.af=function(a){XJ.c.af.call(this,a);dC(this.Ta(),Ee)};
q.oU=function(a){for(var b=0;b<this.va.length;b++){var c=this.va[b].title;c=this.ns&&this.ns[c]?new RJ(this.va[b],this.ns[c],this.$qa(),a):new RJ(this.va[b]);this.ca(c)}};q.B=function(){XJ.c.B.call(this);this.A().listen(this.Ta(),bn,this.lua).listen(this.Ta(),Bj,this.iq)};q.iq=function(a){9==a.keyCode&&U(this.Ta(),Ee)};q.eya=function(a,b,c,e,f){this.va=a;this.Px=c?c:"";this.Ke(!0);this.oU(e);this.xU(b);f||(this.Ta().scrollTop=0);TB(this.Ta(),c?c:bd)};
q.xU=function(a){this.Ia(y(function(a){a.g();this.Ta().appendChild(a.Ta())},this));a&&0<this.Xa()&&(a=this.pa(this.Xa()-1),U(a.Ta(),this.ns&&!Us(this.ns)?"apps-actiondatawidget-last-item-override-enabled":"apps-actiondatawidget-last-item"),a=a.Ta().insertRow(-1),U(a,"apps-actiondatawidget-last-row"))};
q.Cxa=function(a){for(var b=this.b(),c=0;c<this.Xa();c++){var e=Wr(this.pa(c),RJ);if(e.tg()==a){var f=e;break}}a=.3*Math.abs(b.scrollTop-f.b().offsetTop);this.dw=new FA(b,[0,b.scrollTop],[0,f.b().offsetTop],Math.max(a,500),PA);this.Y(this.dw);this.A().listen(this.dw,"begin",function(){this.fL=!1});this.A().listen(this.dw,"finish",function(){this.fL=!0;this.dispatchEvent("shortcut-dialog-animation-scroll")});this.dw.play()};q.lua=function(){this.fL&&this.dispatchEvent(An)};
q.Yka=function(){for(var a=this.b(),b=0;b<this.Xa();b++){var c=Wr(this.pa(b),RJ),e=c.Ta();if(a.scrollTop>=e.offsetTop&&a.scrollTop<e.offsetTop+e.offsetHeight)return c.tg()}return Wr(this.pa(0),RJ).tg()};var YJ=function(a,b){rE.call(this,null,null,!1);this.xe=new J;this.Y(this.xe);a.listen(k,y(function(){var a=b.value;this.hI(a,a)},this));this.MS(b)};B(YJ,rE);YJ.prototype.JN=function(a,b){YJ.c.JN.call(this,a,b);this.hI(a.toString(),this.getValue());return!1};YJ.prototype.ec=function(a){return 13!=a.keyCode||this.Ib.Poa()?YJ.c.ec.call(this,a):(a=this.getValue(),this.hI(a,a),!0)};YJ.prototype.hI=function(a,b){this.Ib.gi();this.xe.dispatchEvent(new ZJ(a,b))};
var ZJ=function(a,b){H.call(this,"a");this.sra=a;this.CK=b};B(ZJ,H);var aK=function(a){gD.call(this,a,$J.H());this.iG=a;this.tb(8,!0)};B(aK,gD);aK.prototype.tg=function(){return this.iG};var $J=function(){};B($J,cD);Kq($J);$J.prototype.S=function(){return"apps-navigationwidget-item"};var bK=function(a,b){mD.call(this,Up,aD.H(),b);this.va=a;this.b5=0;this.xea()};B(bK,mD);q=bK.prototype;q.g=function(){this.Na(this.j().g(d,"apps-navigationwidget"));this.Ia(y(function(a){a.g();this.Ta().appendChild(a.Ta())},this))};q.xea=function(){for(var a=0;a<this.va.length;a++)for(var b=0;b<this.va[a].length;b++){var c=new aK(this.va[a][b].title);this.ca(c)}};q.B=function(){bK.c.B.call(this);TB(this.Ta(),"Navigation menu");var a=new IJ(this);this.Y(a);this.A().listen(this.Ta(),Bf,this.Jj)};
q.ec=function(a){bK.c.ec.call(this,a);13==a.keyCode&&this.dispatchEvent(zn);return!0};q.Be=function(){this.pa(this.b5).Jc(!0)};q.Jj=function(){this.dispatchEvent(zn)};q.pka=function(){return Wr(this.Ff(),aK).tg()};q.DAa=function(a){this.Ia(y(function(b){var c=b.tg()==a;b.setState(8,c);c&&(this.b5=this.De(b))},this))};var cK=function(){},dK=new cK,eK=[Bf,yt?Aj:zj,Bj];cK.prototype.listen=function(a,b,c,e,f){var g=function(a){var c=Pu(b),f=Dy(a.target)?a.target.getAttribute(Qm)||null:null;a.type==Bf&&a.Yu()?c.call(e,a):13!=a.keyCode&&3!=a.keyCode||a.type==Bj?32!=a.keyCode||a.type!=Bj||f!=mf&&"tab"!=f||(c.call(e,a),a.preventDefault()):(a.type=Aj,c.call(e,a))};g.Pf=b;g.Bxa=e;f?f.listen(a,eK,g,c):I(a,eK,g,c)};
cK.prototype.ta=function(a,b,c,e,f){for(var g,h=0;g=eK[h];h++)for(var l=Yu(a,g,!!c),p,r=0;p=l[r];r++){var z=p.listener;if(z.Pf==b&&z.Bxa==e){f?f.ta(a,g,p.listener,c,e):Vu(a,g,p.listener,c,e);break}}};var hK=function(a,b,c){b=c||b;return yF(yb+X(a.Uda)+ma+X("CSS_SHORTCUTS_HELP_POPUP_PREF_CONTAINER")+" "+(a.enabled?X("CSS_SHORTCUTS_HELP_POPUP_PREF_ENABLED"):"")+Aa+X("CSS_SHORTCUTS_HELP_POPUP_PREF_CONTENT")+Ba+X(a.iDa)+ua+fK(a,null,b)+'</span> <span id="'+X(a.zra)+'" role="link" class="'+X("CSS_SHORTCUTS_HELP_POPUP_PREF_LINK")+'" tabindex="0">'+gK(a,null,b)+"</span></div></div>")};hK.ra="apps.action.shortcut.soy.preferencecomponent.main";
var fK=function(a){var b="";b=a.enabled?b+"Keyboard shortcuts are enabled.":b+"Keyboard shortcuts are disabled.";return yF(b)};fK.ra="apps.action.shortcut.soy.preferencecomponent.text";var gK=function(a){var b="";b=a.enabled?b+"Disable":b+"Enable";return yF(b)};gK.ra="apps.action.shortcut.soy.preferencecomponent.link";var iK=function(a,b,c){V.call(this,c);this.mga=a;this.uDa=b;this.L=c};B(iK,V);iK.prototype.g=function(){this.Ka(this.Z.createElement(Fg))};iK.prototype.Ka=function(a){this.Na(a);SE(a,hK,{enabled:this.mga(),Uda:this.Ig("spc_cont"),iDa:this.Ig("spc_text"),zra:this.Ig("spc_link")})};iK.prototype.B=function(){this.A().Hq(this.L.b(this.Ig("spc_link")),dK,this.uDa)};var jK=function(a){this.Qo=a};
jK.prototype.Wwa=function(a,b,c){return this.Qo.Cva(a).then(function(a){return $r(a,kK)}).then(function(c){var e=[];var g=(g="en".match(/^\w{2,3}([-_]|$)/))?g[0].replace(/[_-]/g,""):"";if(-1=="ja ko lo my th zh".split(" ").indexOf(g)){for(g=0;g<c.length;++g){var h=c[g].Qt(),l=lK(h.BI());l&&(e=e.concat(l));h=h.Fka();for(l=0;l<h.length;++l){var p=lK(h[l]);p&&(e=e.concat(p))}}vs(e)}c=e;e=[];if(""!=a)for(g=xr(a),g=new RegExp("(^|\\W+)"+g,"i"),h=0;h<c.length&&e.length<b;h++)l=c[h],String(l).match(g)&&
e.push(l);0==e.length&&(e=pE(a,b,c));return e}).then(Wq(c,a))};var kK=function(a){a=a.Qt();return!!(a&&a.BI()&&a.bb())},lK=function(a){return a.toLocaleLowerCase().replace(/([\^$.*+?=!:'",\-|\\/()[\]{}])/g," ").replace(/\d+/g," ").match(/\S+/g)};function mK(){}mK.prototype.aea=function(a,b){return new wJ(a,b)};var nK=null;var pK=function(a,b,c){this.yi=a||null;this.aG=!!b;this.sW=c;this.sb=new L;this.Jb=new oK("",void 0);this.Jb.next=this.Jb.Qg=this.Jb};q=pK.prototype;q.OW=function(a){(a=this.sb.get(a))&&this.aG&&(a.remove(),this.H_(a));return a};q.get=function(a,b){return(a=this.OW(a))?a.value:b};q.set=function(a,b){var c=this.OW(a);c?c.value=b:(c=new oK(a,b),this.sb.set(a,c),this.H_(c))};q.shift=function(){return this.Z2(this.Jb.next)};q.pop=function(){return this.Z2(this.Jb.Qg)};
q.remove=function(a){return(a=this.sb.get(a))?(this.removeNode(a),!0):!1};q.removeNode=function(a){a.remove();this.sb.remove(a.key)};q.sa=function(){return this.sb.sa()};q.Sb=function(){return this.sb.Sb()};q.bb=function(){return this.map(function(a,b){return b})};q.nb=function(){return this.map(function(a){return a})};q.contains=function(a){return this.some(function(b){return b==a})};q.Xb=function(a){return this.sb.Xb(a)};q.clear=function(){this.g9(0)};
q.forEach=function(a,b){for(var c=this.Jb.next;c!=this.Jb;c=c.next)a.call(b,c.value,c.key,this)};q.map=function(a,b){for(var c=[],e=this.Jb.next;e!=this.Jb;e=e.next)c.push(a.call(b,e.value,e.key,this));return c};q.some=function(a,b){for(var c=this.Jb.next;c!=this.Jb;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};q.every=function(a,b){for(var c=this.Jb.next;c!=this.Jb;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
q.H_=function(a){this.aG?(a.next=this.Jb.next,a.Qg=this.Jb,this.Jb.next=a,a.next.Qg=a):(a.Qg=this.Jb.Qg,a.next=this.Jb,this.Jb.Qg=a,a.Qg.next=a);null!=this.yi&&this.g9(this.yi)};q.g9=function(a){for(;this.sa()>a;){var b=this.aG?this.Jb.Qg:this.Jb.next;this.removeNode(b);this.sW&&this.sW(b.key,b.value)}};q.Z2=function(a){this.Jb!=a&&this.removeNode(a);return a.value};var oK=function(a,b){this.key=a;this.value=b};
oK.prototype.remove=function(){this.Qg.next=this.next;this.next.Qg=this.Qg;delete this.Qg;delete this.next};var qK=function(a,b,c,e,f,g,h){V.call(this,c);this.va=DJ(a);this.SZ=b;this.fd=null;this.lH=pC.H().Nd();this.EA=!(!e||!f);this.dH=null;this.Qo=g||null;this.Yi=null!=this.Qo;this.wv=null;this.kM=!0;this.fi=this.ym=null;this.TA=!0;(this.BC=this.EA?new iK(e,f,this.j()):null)&&this.Y(this.BC);this.Sj=null;this.Yi&&(this.Sj=lG(),this.ca(this.Sj),this.Sj.UD(0));this.oe=h?new XJ(this.JI(),this.j()):null;this.Uf=h?new bK(this.va,this.j()):null;h&&(this.ca(this.oe),this.ca(this.Uf))};B(qK,V);q=qK.prototype;
q.tc=function(){return!1};
q.g=function(){qK.c.g.call(this);var a=this.Ta();if(this.Yi){var b=this.lH,c=this.SZ;if(null==nK){var e=N(),f=e.K(),g=e.createElement(Fg);g.style.backgroundColor="rgb(1, 2, 3)";e.appendChild(f.body,g);f=Gz(g,cf);f=f.replace(/ /g,"");f="rgb(0,0,0)"===f?gf:"rgb(255,255,255)"===f?jq:Ek;e.removeNode(g);nK=f}this.fi=VE(KJ,{kH:b,tP:c,OZ:nK});this.j().appendChild(a,this.fi);this.Uf&&this.oe?(this.Uf.g(),this.fi.appendChild(this.Uf.Ta()),this.oe.g(),this.fi.appendChild(this.oe.Ta())):this.mN();C(this.Sj);
this.Sj.R(this.ze(Pe))}else SE(a,MJ,this.mja())};q.mja=function(){var a=as(this.va,function(a){return rK(a,!1)});return{kH:this.lH,tP:this.SZ,Mda:a,DA:this.EA}};q.zia=function(){if(!this.dH){var a=this.JI();this.dH={OY:rK(a,!0),DA:this.EA}}return C(this.dH)};q.JI=function(){return bs(this.va,function(a,b){return qs(a,b)},[])};
var sK=function(a){for(var b=new pK,c=[],e=0;e<a.length;++e){var f=a[e].Qt(),g=f.tg();""==g?c.push(f):(b.Xb(g)||b.set(g,[]),b.get(g).push(f))}a=b.map(function(a,b){return{title:b,ah:a}});c.length&&(a.length?a.push({title:"More shortcuts",ah:c}):a.push({title:"",ah:c}));return a};q=qK.prototype;q.B=function(){qK.c.B.call(this);this.Yi&&this.jBa();this.wv=this.ze(Ne);this.KO(this.kM);this.BC&&this.BC.render(this.ze(Qe));this.A().listen(this.wv,Bf,this.Jma);this.Uf&&this.oe&&this.JO(!0)};
q.jBa=function(){var a=this.ze(Re);kF(a,"Clear search",void 0);this.A().Hq(a,dK,this.zna);a=this.ze(Oe);TB(a,md);C(this.Sj);this.Sj.U(!0);var b=this.Sj.Ta();kF(b,md,void 0);a=new YJ(this.Sj,a);a.xe.listen("a",y(this.Mna,this));this.fd=a;b=new jK(C(this.Qo));var c=new tE;c.Rza(!1);c.className="apps-shortcutshelppopup-ac-renderer";c.dD="apps-shortcutshelppopup-ac-row";b=new qE(b,c,a);b.qya(!1);a.Ica(b)};
q.reset=function(){this.Zwa();this.G7(!1);this.mN();this.Uf&&this.oe&&this.JO(!0);this.ze(Pe).value=""};q.Zwa=function(){var a=this.ze(Se);Gy(a,bd)};q.Pa=function(){qK.c.Pa.call(this);this.wv=null};q.Jma=function(){this.dispatchEvent(Cf)};q.Mna=function(a){a.CK?this.gsa(a.sra):this.TA||this.reset()};q.gsa=function(a){return this.Qo.Cva(a).then(y(this.Fwa,this,a))};q.zna=function(){this.reset();this.ze(Pe).focus()};q.G7=function(a){R(this.ze(Re),a)};q.KO=function(a){this.kM=a;this.wv&&R(this.wv,this.kM)};
q.Vha=function(){return this.fd?this.fd.Ib.M.b():null};q.Fwa=function(a,b){var c='Search results for "'+(a+'"');a='No search results for "'+(a+'"');b=$r(b,kK);ys(b,GJ);b=b.slice(0,30);var e=this.ze(Se);c=0==b.length?a:c;Gy(e,c);this.G7(!0);this.mN(sK(b),c);this.Uf&&this.oe&&this.JO(!1);0==b.length?this.ze(Re).focus():this.oe?this.oe.Ta().focus():this.j().Fc(He).focus()};
q.mN=function(a,b){if(a){var c={OY:rK(a,!0),DA:this.EA};this.TA=!1}else c=this.zia(),this.TA=!0;c.dDa=b?b:bd;this.oe?this.oe.eya(a||this.JI(),this.TA):(this.ym&&this.fi.removeChild(this.ym),this.ym=VE(LJ,c),this.fi.appendChild(this.ym));(b=this.ze(Re))&&(a&&0==a.length?U(b,Le):dC(b,Le))};var rK=function(a,b){return as(a,function(a){return UJ(a,b)})};qK.prototype.o9=function(){var a=this.Uf.pka();this.oe.Cxa(a)};qK.prototype.FQ=function(){var a=this.oe.Yka();this.Uf.DAa(a)};
qK.prototype.JO=function(a){this.Uf.U(a);a?(this.A().listen(this.Uf,zn,this.o9),this.A().listen(this.oe,An,this.FQ),this.FQ()):(this.A().ta(this.Uf,zn,this.o9),this.A().ta(this.oe,An,this.FQ),this.Uf.Ia(function(a){a.setState(8,!1)}))};qK.prototype.PQ=function(){return null!=this.Qo};var tK=function(){this.lG=[]};B(tK,pD);Kq(tK);q=tK.prototype;q.g=function(a){var b=tK.c.g.call(this,a);C(b);U(b,hi);this.YR(a,b);return b};q.R=function(a,b){b=tK.c.R.call(this,a,b);C(b);U(b,hi);this.YR(a,b);var c=by(d,$h,b);if(c.length){var e=new vD(a.j());c=c[0];R(c,!1);a.j().K().body.appendChild(c);e.R(c);a.Zg(e,!0)}return b};q.eb=function(a,b){var c=this.J(a),e=c&&c.lastChild;tK.c.eb.call(this,a,b);e&&c.lastChild!=e&&bC(e,ii)&&c.appendChild(e)};
q.Bd=function(a){tK.c.Bd.call(this,a);var b=a.J(),c=a.j().ri(gd,ii,b)[0];uK(a,c);c!=b.lastChild&&b.appendChild(c);a=a.b();C(a,"The sub menu DOM element cannot be null.");T(a,wi,sp)};q.YR=function(a,b){var c=a.j().g(gd);c.className=ii;uK(a,c);this.J(b).appendChild(c)};var uK=function(a,b){C(b);a.Eh()?(U(b,ji),Gy(b,a.Jx?"\u25c4":"\u25ba")):(dC(b,ji),Gy(b,a.Jx?"\u25ba":"\u25c4"))};var vK=function(a,b,c,e){qD.call(this,a,b,c,e||tK.H())};B(vK,qD);q=vK.prototype;q.vf=null;q.GP=null;q.YL=!1;q.nd=null;q.cz=!1;q.Jx=!0;q.Tqa=!1;q.B=function(){vK.c.B.call(this);this.A().listen(this.getParent(),zi,this.v2);this.nd&&this.ID(this.nd,!0)};q.Pa=function(){this.A().ta(this.getParent(),zi,this.v2);this.nd&&(this.ID(this.nd,!1),this.cz||(this.nd.Pa(),xy(this.nd.b())));vK.c.Pa.call(this)};q.o=function(){this.nd&&!this.cz&&this.nd.dispose();this.nd=null;vK.c.o.call(this)};
q.Jc=function(a,b){vK.c.Jc.call(this,a);b&&this.Qa().Rl(!0);a||(this.vf&&Rv(this.vf),this.vf=M(this.sj,218,this))};q.FP=function(){var a=this.getParent();a&&a.Ff()==this&&(this.O6(!0),this.FV())};q.sj=function(){var a=this.nd;a&&a.getParent()==this&&(this.O6(!1),a.Ia(function(a){typeof a.sj==Ih&&a.sj()}))};q.lp=function(){this.vf&&Rv(this.vf);this.GP&&Rv(this.GP)};q.C=function(a,b){(a=vK.c.C.call(this,a,b))&&!this.N()&&this.sj();return a};
q.FV=function(){this.getParent().Ia(function(a){a!=this&&typeof a.sj==Ih&&(a.sj(),a.lp())},this)};q.ec=function(a){var b=a.keyCode,c=this.Eh()?37:39,e=this.Eh()?39:37;if(!this.YL){if(!this.isEnabled()||b!=c&&b!=this.bM)return!1;this.FP();this.Qa().Hu();this.lp()}else if(!this.Qa().ec(a))if(b==e)this.sj();else return!1;a.preventDefault();return!0};q.nta=function(){this.nd.getParent()==this&&(this.lp(),this.Zp().Jc(this),this.FV())};q.v2=function(a){a.target==this.Zp()&&(this.sj(),this.lp())};
q.Bg=function(a){this.isEnabled()&&(this.lp(),this.GP=M(this.FP,218,this));vK.c.Bg.call(this,a)};q.Tc=function(a){this.lp();if(this.pb(8)||this.pb(16))return vK.c.Tc.call(this,a);this.FP();return!0};q.O6=function(a){!a&&this.Qa()&&this.Qa().oc(-1);this.dispatchEvent(rC(64,a));var b=this.Qa();a!=this.YL&&fC(C(this.b()),"goog-submenu-open",a);a!=b.N()&&(a&&(b.V||b.render(),b.oc(-1)),b.C(a),a&&this.gva());this.YL=a};q.ID=function(a,b){var c=this.A();(b?c.listen:c.ta).call(c,a,fh,this.nta)};
q.gva=function(){var a=new UC(this.b(),this.Jx?12:8,this.Tqa),b=this.Qa(),c=b.b();b.N()||(c.style.visibility=yi,R(c,!0));a.ha(c,this.Jx?8:12);b.N()||(R(c,!1),c.style.visibility=fq)};q.sc=function(a){this.Qa().ca(a,!0)};q.om=function(a,b){this.Qa().pe(a,b,!0)};q.removeItem=function(a){(a=this.Qa().removeChild(a,!0))&&a.dispose()};q.cd=function(a){return this.Qa().pa(a)};q.Xk=function(){return this.Qa().Xa()};q.Gj=function(){return this.Qa().Gj()};
q.Qa=function(){this.nd?this.cz&&this.nd.getParent()!=this&&this.nd.Ea(this):this.Zg(new vD(this.j()),!0);this.nd.b()||this.nd.g();return this.nd};q.Zg=function(a,b){var c=this.nd;a!=c&&(c&&(this.sj(),this.V&&this.ID(c,!1)),this.nd=a,this.cz=!b,a&&(a.Ea(this),a.C(!1,!0),a.Pl(!1),a.Me(!1),this.V&&this.ID(a,!0)))};q.mg=function(a){return this.Qa().mg(a)};ZC(hi,function(){return new vK(null)});var wK=function(a){var b=vb+X("apps-shortcutshelppopup-dialog")+Aa+X(Je)+wa;b=a.PQ?b+(vb+X("apps-shortcutshelppopup-close")+Ba+X(a.UT)+ma+X("modal-dialog-title-close")+'" tabindex="0" role="button"></span></div>'):b+(vb+X("CSS_SHORTCUTS_HELP_POPUP_TEAROFF_LINK_WRAPPER")+Ba+X(a.UT)+ma+X(Wb)+'" tabindex="0" role="button">Close</span></div>');return yF(b+lb)};wK.ra="apps.action.soy.shortcutshelp.dialog";var xK=function(a,b,c){uC.call(this,b,c);this.Vl=a;this.ca(this.Vl);this.VT=pC.H().Nd();this.Yi=a.PQ()};B(xK,uC);q=xK.prototype;q.S=function(){return this.Yi?"apps-shortcutshelppopup":"shortcuts-modalpopup"};q.tc=function(){return!1};q.g=function(){xK.c.g.call(this);var a=this.j(),b=this.Ta();R(b,!1);SE(b,wK,{UT:this.VT,PQ:this.Yi});var c=this.ze(Je);this.Vl.g();a.appendChild(c,this.Vl.Ta());MB(b,Bg);T(b,Dj,this.Vl.lH);this.Yi||U(b,"CSS_SHORTCUTS_HELP_POPUP")};
q.B=function(){xK.c.B.call(this);var a=this.j(),b=a.b(this.VT);this.Yi&&kF(b,bc,void 0);this.A().Hq(b,dK,this.UY);a=a.gY(this.b());this.A().listen(a,nk,this.bC,!0);this.A().listen(this.b(),zj,this.zM);this.A().listen(this.Vl,Cf,this.UY)};q.C=function(a){this.Yi&&this.V&&!this.N()&&a&&this.Vl.reset();xK.c.C.call(this,a)};q.UY=function(){this.C(!1)};q.KO=function(a){this.Vl.KO(a)};
q.ha=function(){xK.c.ha.call(this);var a=this.b();if(a&&!this.Yi){if(this.N()){var b=Mz(a);b=Qz(b);b=.9*(b.bottom-b.top)}else b=this.j().K(),b=.9*hy(ky(b)||window).height;Q(a,"maxHeight",b+n);Q(a,Ij,"10%");Q(a,op,"10%")}};q.bC=function(a){var b=this.Vl.Vha();b&&Ey(b,a.target)||Ey(this.b(),a.target)||this.C(!1)};q.zM=function(a){27==a.keyCode?(this.C(!1),a.stopPropagation(),a.preventDefault()):9==a.keyCode&&a.shiftKey&&a.target==this.b()&&this.j7()};var yK=function(){F.call(this);this.qg={};this.YT={};this.cb=null;this.$A=!0};B(yK,F);var zK=new Ty("https://support.google.com/sites/bin/answer.py?answer=189191");yK.prototype.gh=function(a){var b=a.LV;b&&(this.qg[b]=this.qg[b]||[],this.qg[b].push(a),this.$A=!0)};yK.prototype.addAction=yK.prototype.gh;yK.prototype.addAction=yK.prototype.gh;yK.prototype.ao=function(a){for(var b in this.qg)ps(this.qg[b],function(b){return b.getId()==a.getId()}),0==this.qg[b].length&&delete this.qg[b];this.$A=!0};
yK.prototype.removeAction=yK.prototype.ao;q=yK.prototype;q.$N=function(a,b){this.YT[a]=b};q.nia=function(a){return this.YT[a]||0};q.getData=function(){var a=[],b;for(b in this.qg){for(var c=[],e=0;e<this.qg[b].length;++e){var f=this.qg[b][e];f.isEnabled()&&c.push([f.PX(),f.wg()])}e=this.nia(b);a[e]=a[e]||[];a[e].push({title:b,ah:c})}return a};q.Woa=function(){for(var a in this.qg)for(var b=this.qg[a],c=0;c<b.length;c++)if("showHelpPopup"!=b[c].getId())return!0;return!1};
q.asa=function(){var a=this.cb;G(a);a=zK.T("hl",webspace.page.locale);a=new qK(this.getData(),a.toString());a=new xK(a);a.render();this.cb=a;this.$A=!1;a=cy(Tb,this.cb.b());for(var b=0;b<a.length;b++)My(a[b],!0)};q.N=function(){return!!this.cb&&this.cb.N()};yK.prototype.isVisible=yK.prototype.N;yK.prototype.C=function(a,b){a&&this.$A&&this.asa();this.Woa()&&(this.cb.C(a),this.cb.b().focus(),b&&Ou(this.cb,zi,b))};yK.prototype.setVisible=yK.prototype.C;yK.prototype.o=function(){G(this.cb);this.cb=null};var BK=function(a,b,c,e,f,g,h,l){h={};h.label=b;h.hint=b;Bt&&e&&0<=e.search(/Ctrl/i)&&!l?h.keys=[e.replace(/Ctrl/ig,"Meta")]:h.keys=null==e?e:[e];h[Gh]=l||!1;wJ.call(this,a,h);this.U(!!c);g&&this.ZCa(qJ,AK(g));this.LV=f||null};B(BK,wJ);
var CK=function(a,b,c){var e=c||0;return function(c){jJ==e&&a.call(b,c)}},AK=function(a){return function(b){(b=b.data)&&b.preventDefault();a(b)}},DK={"close-square-bracket":"]",dash:"-",down:"\u2193",equals:"=",left:"\u2190","num-minus":"-","num-plus":"+","open-square-bracket":"[",right:"\u2192",semicolon:";","single-quote":"'",up:"\u2191"};
BK.prototype.PX=function(){var a=this.getProperty("helpKeys");a=a||this.bb();x(a)&&(a=a.join(" "));if(v(a))for(var b in DK)a=a.replace(new RegExp(b,"gi"),DK[b]);return a};BK.prototype.To=function(a){if(this.kb)this.kb.pd(a);else{var b=this.getProperty("hint"),c;webspace.user.keyboardShortcuts&&!webspace.user.renderMobile&&(c=this.bb());x(c)&&(c=c[0]);this.kb=new TG(a,c?b+" ("+c+")":b)}};BK.prototype.o=function(){G(this.kb);BK.c.o.call(this)};var EK=function(a,b,c,e){BK.call(this,"showHelpPopup","Open shortcut help",a,c,e,y(this.sAa,this,!0));this.cb=b};B(EK,BK);EK.prototype.sAa=function(a,b){this.cb.C(a);b&&b.preventDefault()};var FK=function(a){$I.call(this,a||document);this.Yh={};this.cc=!0;this.nn=new yK;this.p7={};this.oya(!1)};B(FK,$I);q=FK.prototype;q.Gba=function(a){a=new EK(!0,this.nn,"Ctrl + /",a);this.gh(a,a.Mp)};q.gh=function(a,b,c){if(!webspace.user.renderMobile&&webspace.user.keyboardShortcuts){this.Yh[a.getId()]=a;var e=a.bb()||[];x(e)||(e=[e]);if(!c)for(c=0;c<e.length;c++)this.D3(a.getId(),e[c]);a.LV&&this.nn.gh(a);this.Kba(a,b)}};q.Kba=function(a,b){this.p7[a.getId()]=I(this,"shortcut_"+a.getId(),y(b,a))};
q.ao=function(a){if(!webspace.user.renderMobile&&webspace.user.keyboardShortcuts){var b=a.bb();if(x(b))for(var c=b.length,e=0;e<c;++e)this.l9(b[e]);else this.l9(b);this.nn.ao(a);this.lwa(a);delete this.Yh[a.getId()]}};q.lwa=function(a){var b=this.p7;Wu(b[a.getId()]);b[a.getId()]=null};q.isEnabled=function(){return this.cc};q.U=function(a){this.cc=a};q.hL=function(a){return this.cc?FK.c.hL.call(this,a):!1};q.o=function(){var a=this.Yh,b;for(b in a)this.ao(a[b]);G(this.nn);this.nn=null;FK.c.o.call(this)};var GK=function(){FK.call(this);this.Gba(Lb);this.Rba(Lb);var a=this.nn;a.$N(Lb,0);a.$N(nd,1);a.$N($c,2)};B(GK,FK);Kq(GK);GK.prototype.Rba=function(a){a=new EK(!0,this.nn,"Shift + /",a);a.setProperty("helpKeys","?");this.gh(a,a.Mp)};var HK=function(a){BK.call(this,"focusSearchBox","Search",a,"/",Lb,y(this.$ga,this))};B(HK,BK);HK.prototype.$ga=function(a){var b=P(uj);b&&(b.focus(),a&&a.preventDefault())};var IK=function(a,b){BK.call(this,Tk,$b,b,"Shift + t",$c,y(this.nua,this));this.Uz=a};B(IK,BK);IK.prototype.nua=function(){window.location.href=this.Uz()};var JK=function(a,b){BK.call(this,"closeSiteLayoutEditor",bc,b,"Esc","Actions",CK(a,this))};B(JK,BK);var KK=function(a,b){b?BK.call(this,Fn,"Delete page",!0,"Shift + 3",$c,CK(a,this)):BK.call(this,Fn,"You can't delete your home page. Click 'Manage site' to change your home page or delete your site.",!1,null,null,CK(a,this))};B(KK,BK);var LK=function(a){BK.call(this,"editPage",0==webspace.page.path.indexOf(Wa)?uc:tc,a,"e",$c,CK(this.Xfa,this))};B(LK,BK);LK.prototype.Xfa=function(){window.jstiming.load.t={};window.jstiming.load.tick("_start_edit");qH(Kd,tc);JOT_postEvent(ol)};var MK=function(a){BK.call(this,Yg,vc,a,"Shift + L",$c,CK(this.Yfa,this))};B(MK,BK);MK.prototype.Yfa=function(){JOT_postEvent(Xk)};var NK=function(a){BK.call(this,Vk,"Manage site",a,"g m",nd,y(this.rua,this))};B(NK,BK);NK.prototype.rua=function(){webspace.manageUrl&&(window.location.href=webspace.manageUrl)};var OK=function(a,b){BK.call(this,"showMoreActionsMenu","More actions",b,"m",Lb,CK(a,this))};B(OK,BK);var PK=function(a,b){BK.call(this,Gn,"Move page",b,"Shift + m",$c,CK(Wq(this.Lsa,a)))};B(PK,BK);PK.prototype.Lsa=function(a,b){b&&b.preventDefault&&b.preventDefault();a()};var QK=function(a){BK.call(this,"openCopyPage","Copy page",a,"Shift + c",$c,y(this.oua,this))};B(QK,BK);QK.prototype.oua=function(){var a=0==webspace.page.path.indexOf(Wa);webspace.baseUri&&webspace.page&&webspace.page.path&&sH(Kd,"Copy page",webspace.baseUri+"/system/app/pages/createPage?isCopy=true&"+(a?"pt=":"source=")+webspace.page.path)};var RK=function(a){BK.call(this,Uk,0==webspace.page.path.indexOf(Wa)?gc:"Create page",a,"c",nd,y(this.pua,this))};B(RK,BK);RK.prototype.pua=function(){var a=0==webspace.page.path.indexOf(Wa);webspace.baseUri&&webspace.page&&webspace.page.path&&sH(Kd,hc,webspace.baseUri+"/system/app/pages/createPage?"+(a?"pt=":"source=")+webspace.page.path)};var SK=function(a){BK.call(this,Wk,"Revision history",a,"g r",$c,y(this.tua,this))};B(SK,BK);SK.prototype.tua=function(){webspace.baseUri&&webspace.page&&webspace.page.wuid&&Sx(window.location,webspace.baseUri+"/system/app/pages/admin/revisions?wuid="+webspace.page.wuid)};var TK=function(a){BK.call(this,xm,"Preview page as viewer",a,"g p",$c,y(this.sva,this))};B(TK,BK);TK.prototype.sva=function(){window.open(window.location+"?previewAsViewer=1")};var UK=function(a){BK.call(this,"printPage","Print page",a,"Ctrl + p",$c,y(this.uva,this))};B(UK,BK);UK.prototype.uva=function(a){a&&a.preventDefault();webspace.printUrl&&window.open(webspace.printUrl)};var VK=function(a,b){BK.call(this,Um,"Save As Page Template",b,"Shift + g",$c,CK(a,this))};B(VK,BK);var WK=function(a,b){BK.call(this,Hn,"Page settings",b,"u",$c,CK(this.bCa,this));this.$D=a};B(WK,BK);WK.prototype.bCa=function(a){a||(a=new H(""));a.payload||(a.payload={});this.$D(a)};var XK=function(a){BK.call(this,In,"Share site",a,"Shift + s",nd,CK(this.hCa,this))};B(XK,BK);XK.prototype.hCa=function(){sH(Kd,"Share",webspace.commonSharingUrl+"#"+webspace.page.path)};var YK=function(a){BK.call(this,"smartPreview",od,a,"s p",$c,y(this.sCa,this))};B(YK,BK);YK.prototype.sCa=function(){sH(Kd,od,webspace.getPath(webspace.baseUri,webspace.page.path,Gb))};var ZK=function(a,b){BK.call(this,lp,"Toggle page subscription",b,"f",$c,CK(this.vDa,this));this.uE=a};B(ZK,BK);ZK.prototype.vDa=function(a){a||(a=new H(""));a.payload||(a.payload={});this.uE(a)};var $K=function(a,b){BK.call(this,mp,"Toggle site subscription",b,"Shift + f",nd,CK(a))};B($K,BK);var aL=function(a){this.Zca=a||"sites-searchbox-search-button";this.o7=GK.H()};B(aL,F);w("sites.Searchbox",aL,void 0);var bL=null,cL=function(a,b,c,e){G(bL);bL=new aL(a);bL.Ee(b,!0,c,e)};w("sites.Searchbox.initialize",cL,void 0);aL.prototype.Ml=null;aL.prototype.io=null;aL.prototype.Mf=null;
aL.prototype.Ee=function(a,b,c,e){this.Ml=P(uj);var f=P(so),g=P(this.Zca),h=P("sites-searchbox-scope");f&&I(f,Uo,this.GT,!1,this);if(g){var l=P("sites-searchbox-select-dropdown");this.io=new hG(null);this.io.R(g);I(this.io,k,this.h8,!1,this);if(l&&a){var p=new XD(null,null,new dL);p.o5(!1);p.R(l);var r;for(l=0;l<a.length;l++){var z=a[l],O=new qD(z.label,z);p.sc(O);z.id==c&&(r=O)}r&&p.Bb(r);e&&(p.sc(new uD),c=new qD(e.label,e),p.sc(c));I(p,tf,y(function(a){a=a.target.xa().$;a.id?(h.value=a.id,f.action=
a.action,b?Gy(g,a.label):(this.io.Wc(a.label),this.Mf.Ra(a.label),this.Ml.setAttribute(Te,a.label)),this.h8()):a.url&&(window.location.href=a.url)},this))}b||(a=p?p.xa().$:a[0],this.io.Wc(a.label),this.Mf=new KD(a.label),this.Mf.R(this.Ml))}a=new HK(!0);this.o7.gh(a,a.Mp);this.mI=a};aL.prototype.initListeners=aL.prototype.Ee;aL.prototype.GT=function(a){var b=this.Mf?this.Mf.getValue():this.Ml.value;if(cr(b))return!0;a&&a.preventDefault();return!1};aL.prototype.h8=function(){this.GT()&&P(so).submit()};
aL.prototype.o=function(){this.mI&&(this.o7.ao(this.mI),G(this.mI));G(this.io);this.io=null;G(this.Mf);this.Mf=null;aL.c.o.call(this)};var dL=function(){};B(dL,AG);dL.prototype.Wm=function(a){return 2==a?"jfk-button-hover":dL.c.Wm.call(this,a)};function _START_TEMPLATE_SECTION(){}function _END_TEMPLATE_SECTION(){}function _TEMPLATE_VARIABLE(){}function _INLINE_TEMPLATE_SECTION(){}function _PARENS(){}function _TEMPLATE_INCLUDE(){};function eL(a){var b=document.createElement(d);b.innerHTML="<iframe onload='this.pool_locked=false'></iframe>";var c=b.getElementsByTagName(Fc)[0];c.style.visibility=yi;c.style.width=c.style.height="0px";c.style.border="0px";c.style.position=be;c.X2=a;this.$b[this.$b.length]=c;b.removeChild(c);return c}
function fL(a){if(a.match(/^http[s]?:\/\//)){var b=this;window.setTimeout(function(){for(var c=null,e=b.$b.length-1;0<=e;e--){var f=b.$b[e];if(f&&!f.X2)if(f.parentNode.removeChild(f),window.ActiveXObject)b.$b[e]=null,b.$b.splice(e,1);else{f.X2=!0;c=f;break}}c=c?c:b.oea(!0);c.src=a;document.body.appendChild(c)},0)}}function gL(){for(var a=0;a<this.$b.length;a++)this.$b[a].onload=null,this.$b[a]=null;this.$b.length=0;this.$b=[]}
function hL(){for(var a=0;a<this.$b.length;a++){var b=this.$b[a];b&&b.parentNode.removeChild(b)}}function iL(){this.$b=[];this.oea=eL;this.iframe=fL;this.clear=gL;this.dispose=hL}function jL(a,b){_IFPC.je[a]=b}function kL(a){delete _IFPC.je[a]}
function lL(a,b,c,e,f,g,h,l){if(!_IFPC.ii){var p=4095-e.length;p=parseInt(p/3,10);"undefined"==typeof h&&(h=!0);if(l)a=[a,"..",_IFPC.gp,1,1,encodeURIComponent(JSON.stringify({hOa:b,jNa:c,ANa:"..",t:window.iNa[a.split("_")[2]]}))].join("&"),_IFPC.zA.iframe(e+"#"+a);else for(c=c.slice(0),c.unshift(_IFPC.er(f)),c.unshift(g),c.unshift(b),c.unshift(a),b=_IFPC.xt(c),c=parseInt(b.length/p,10),0<b.length%p&&(c+=1),f=0;f<c;f++)_IFPC.zA.iframe(e+"#"+_IFPC.xt([a,_IFPC.gp,c,f,b.substr(f*p,p),h]));_IFPC.gp++}}
function mL(){_IFPC.je={};_IFPC.yb={};_IFPC.zA.clear()}function nL(){_IFPC.ii||(_IFPC.ii=!0,_IFPC.zA.dispose(),_IFPC.clear())}function oL(a){var b=_IFPC.ZG(a)[0],c=null;try{c=window.parent.frames[b]}catch(e){}try{c||window.parent.parent.frames[b]==window.parent||(window.parent.parent.frames[b].setTimeout(function(){},0),c=window.parent.parent.frames[b])}catch(e){}c||(c=window.parent.parent);c&&void 0!=c._IFPC?c._IFPC.nA(a):c=null}
function pL(a){a=_IFPC.ZG(a);var b=a.shift(),c=a.shift(),e=a.shift(),f=a.shift(),g=a.shift();a=a.shift();b=b+"_"+c;_IFPC.Qn[b]||(_IFPC.Qn[b]=[]);_IFPC.Qn[b].push([f,g]);if(_IFPC.Qn[b].length==e){_IFPC.Qn[b].sort(function(a,b){return parseInt(a[0],10)-parseInt(b[0],10)});g="";for(f=0;f<e;f++)g+=_IFPC.Qn[b][f][1];_IFPC.Qn[b]=null;f=_IFPC.ZG(g);b=f.shift();c=f.shift();e=f.shift();g=f.shift();var h=_IFPC.ska(c);if(h)a=h.apply(null,f),_IFPC.hqa(g)&&(a.unshift(g),_IFPC.call(b,_IFPC.eR,a,e,null,""));else if(a)throw Error("Service "+
c+" not registered.");}}function qL(a){return _IFPC.je.hasOwnProperty(a)?_IFPC.je[a]:null}function rL(a){var b="";a&&typeof a==Ih&&(b=_IFPC.Hja(),_IFPC.yb[b]=a);return b}function sL(a){_IFPC.yb.hasOwnProperty(a)&&(_IFPC.yb[a]=null)}function tL(a){return a&&_IFPC.yb.hasOwnProperty(a)?_IFPC.yb[a]:null}function uL(){return _IFPC.dR+_IFPC.fda++}function vL(a){return 0==(a+"").indexOf(_IFPC.dR)}
function wL(a){a=a.split("&");for(var b=0;b<a.length;b++){var c=decodeURIComponent(a[b]);try{c=JSON.parse(c)}catch(e){}a[b]=c}return a}function xL(a){for(var b=[],c=0;c<a.length;c++){var e=JSON.stringify(a[c]);b.push(encodeURIComponent(e))}return b.join("&")}function yL(a){var b=_IFPC.cia(a);if(b){for(var c=[],e=1;e<arguments.length;e++)c[c.length]=arguments[e];b.apply(null,c);_IFPC.NDa(a)}else throw Error("Invalid callbackId");}var _IFPC={};
(function(a){var b;typeof window.dba==Ih&&(b=window.dba(a));b&&1==b.exp_rpc_js&&(window.J$=!0);window.J$?_IFPC={Hi:function(a,b){window.gadgets.rpc.register(a,function(){var a=this.a.slice(0);a.unshift(this.f);b.apply(null,a)})},GE:function(a){window.gadgets.rpc.unregister(a)},nA:function(a){window.gadgets.rpc.receive(a)},call:function(a,b,f,g,h,l,p,r){l=window.gadgets.rpc;g==l.getRelayUrl("..")&&(a="..");f||(f=[]);r||(f=f.slice(1));f.unshift(h);f.unshift(b);f.unshift(a);l.call.apply(l,f)}}:(_IFPC=
{Hi:jL,GE:kL,call:lL,clear:mL,dispose:nL,cOa:oL,bOa:oL,nA:pL,dR:"cbid",eR:"ifpc_callback",zA:new iL,Qn:{},je:{},yb:{},fda:0,gp:0,ii:!1,ska:qL,er:rL,NDa:sL,cia:tL,Hja:uL,hqa:vL,ZG:wL,xt:xL,gda:yL},_IFPC.Hi(_IFPC.eR,_IFPC.gda));_IFPC.registerService=_IFPC.Hi;_IFPC.unregisterService=_IFPC.GE;_IFPC.call=_IFPC.call;_IFPC.handleRequest=_IFPC.nA})(document.location.href);var zL=function(a){this.Nq=0;this.UL=a||100;this.gj=[]};q=zL.prototype;q.add=function(a){var b=this.gj[this.Nq];this.gj[this.Nq]=a;this.Nq=(this.Nq+1)%this.UL;return b};q.get=function(a){a=this.Y1(a);return this.gj[a]};q.set=function(a,b){a=this.Y1(a);this.gj[a]=b};q.sa=function(){return this.gj.length};q.Sb=function(){return 0==this.gj.length};q.clear=function(){this.Nq=this.gj.length=0};q.nb=function(){return this.Jja(this.sa())};
q.Jja=function(a){var b=this.sa(),c=[];for(a=this.sa()-a;a<b;a++)c.push(this.get(a));return c};q.bb=function(){for(var a=[],b=this.sa(),c=0;c<b;c++)a[c]=c;return a};q.Xb=function(a){return a<this.sa()};q.nj=function(a){for(var b=this.sa(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};q.Y1=function(a){if(a>=this.gj.length)throw Error("Out of bounds exception");return this.gj.length<this.UL?a:(this.Nq+Number(a))%this.UL};var BL=function(a,b){this.identifier=a||"";this.outputBuffer=[];this.Di=b||"";this.gD=new zL(500);this.r3=y(this.Nba,this);this.Iha=new Gx(this.Di);this.Qga={};this.u5(!0);this.cc="1"==AL(this.identifier,dh);t.setInterval(y(this.xxa,this),7500)};q=BL.prototype;q.k$="LOGGING";q.jga=!1;q.od=null;q.XQ=!1;var CL=q.U_=!1;q=BL.prototype;q.fT=null;q.nL=A();q.init=function(){this.cc&&this.GM()};q.isEnabled=function(){return this.cc};q.U=function(a){(this.cc=a)&&this.GM();this.xD(dh,a?"1":"0")};
q.u5=function(a){if(a!=this.U_){this.U_=a;var b=su();a?b.eS(this.r3):b.iwa(this.r3)}};q.Tba=function(){this.n$(sx("hr"))};q.ln=function(){return!!this.od&&!this.od.closed};q.clear=function(){this.gD.clear();this.ln()&&this.ZQ()};q.Nba=function(a){if(!this.Qga[a.n1]){var b=this.Iha.dX(a);this.n$(b);this.jga&&a.Nf.value>=fu.value&&this.U(!0)}};q.n$=function(a){this.cc?(this.GM(),this.gD.add(a),this.$Q(a)):this.gD.add(a)};
q.$Q=function(a){this.outputBuffer.push(a);t.clearTimeout(this.fT);750<A()-this.nL?this.YQ():this.fT=t.setTimeout(y(this.YQ,this),250)};q.YQ=function(){this.nL=A();if(this.ln()){var a=this.od.document.body;a=a&&100>=a.scrollHeight-(a.scrollTop+a.clientHeight);var b=vx(this.outputBuffer);this.od.document.write(ix(b));this.outputBuffer.length=0;a&&this.od.scrollTo(0,1E6)}};q.m$=function(){for(var a=this.gD.nb(),b=0;b<a.length;b++)this.$Q(a[b])};
q.GM=function(){if(!this.ln()&&!this.XQ){var a=this.Vt("dbg","0,0,800,500").split(","),b=Number(a[0]),c=Number(a[1]),e=Number(a[2]);a=Number(a[3]);this.XQ=!0;this.od=window.open("",this.ala(),"width="+e+",height="+a+",toolbar=no,resizable=yes,scrollbars=yes,left="+b+",top="+c+",status=no,screenx="+b+",screeny="+c);this.od||CL||(alert("Logger popup was blocked"),CL=!0);this.XQ=!1;this.od&&this.ZQ()}};q.ala=function(){return E?this.identifier.replace(/[\s\-\.\,]/g,"_"):this.identifier};q.cA=function(){return fx(ow("*{font:normal 14px monospace;}.dbg-sev{color:#F00}.dbg-w{color:#E92}.dbg-sh{background-color:#fd4;font-weight:bold;color:#000}.dbg-i{color:#666}.dbg-f{color:#999}.dbg-ev{color:#0A0}.dbg-m{color:#990}"))};
q.ZQ=function(){if(this.ln()){this.od.document.open();var a=sx(Fg,{"class":"dbg-ev",style:ow("text-align:center;")},vx(this.k$,zx,sx("small",{},"Logger: "+this.identifier)));a=vx(ux(this.cA()),sx("hr"),a,sx("hr"));this.$Q(a);this.m$()}};q.xD=function(a,b){a=(a+this.identifier).replace(/[;=\s]/g,"_");document.cookie=a+"="+encodeURIComponent(b)+";path=/;expires="+(new Date(A()+2592E6)).toUTCString()};q.Vt=function(a,b){return AL(this.identifier,a,b)};
var AL=function(a,b,c){a=(b+a).replace(/[;=\s]/g,"_");b=String(document.cookie);var e=b.indexOf(a+"=");return-1!=e?(c=b.indexOf(";",e),decodeURIComponent(b.substring(e+a.length+1,-1==c?b.length:c))):c||""};BL.prototype.xxa=function(){this.ln()&&this.xD("dbg",(this.od.screenX||this.od.screenLeft||0)+","+(this.od.screenY||this.od.screenTop||0)+","+(this.od.outerWidth||800)+","+(this.od.outerHeight||500))};var DL=function(a,b){this.Hva();BL.call(this,a,b);this.Ve=null};B(DL,BL);var EL;a:{try{EL=!!window.localStorage.getItem;break a}catch(a){}EL=!1}var FL=EL;q=DL.prototype;q.YQ=function(){this.nL=A();if(this.ln()){for(var a=this.Ve.b("log"),b=100>=a.scrollHeight-(a.scrollTop+a.offsetHeight),c=0;c<this.outputBuffer.length;c++){var e=this.Ve.g(d,"logmsg");Ox(e,this.outputBuffer[c]);a.appendChild(e)}this.outputBuffer.length=0;this.o4();b&&(a.scrollTop=a.scrollHeight)}};
q.ZQ=function(){if(this.ln()){var a=this.od.document;a.open();var b=this.Wia();a.write(ix(b));a.close();(E?a.body:this.od).onresize=y(this.o4,this);this.Ve=new Yx(a);this.Ve.b("openbutton").onclick=y(this.sua,this);this.Ve.b("closebutton").onclick=y(this.Hda,this);this.Ve.b("clearbutton").onclick=y(this.clear,this);this.Ve.b("exitbutton").onclick=y(this.Cga,this);this.m$()}};
q.sua=function(){var a=C(this.Ve.b("optionsarea"));Ox(a,yx);for(var b=GL(),c=this.Ve,e=0;e<b.length;e++){var f=b[e],g=f.Nf?f.Nf.name:Hc;f=c.g(d,{},this.Hia("sel"+f.getName(),g),c.g(gd,{},f.getName()||"(root)"));a.appendChild(f)}this.Ve.b(dl).style.display="block";return!1};q.Hia=function(a,b){var c=this.Ve;a=c.g(fd,{id:a});for(var e=0;e<lu.length;e++){var f=lu[e],g=c.g(Xc,{},f.name);b==f.name&&(g.selected=!0);a.appendChild(g)}a.appendChild(c.g(Xc,{selected:b==Hc},Hc));return a};
q.Hda=function(){this.Ve.b(dl).style.display=Ek;for(var a=GL(),b=this.Ve,c=0;c<a.length;c++){var e=a[c],f=b.b("sel"+e.getName());f=f.options[f.selectedIndex].text;f==Hc?e.no(null):e.no(nu(f))}this.bFa();return!1};q.o4=function(){var a=this.Ve,b=a.b("log"),c=a.b("head");b.style.top=c.offsetHeight+n;b.style.height=a.K().body.offsetHeight-c.offsetHeight-(E?4:0)+n};q.Cga=function(){this.U(!1);this.od&&this.od.close()};
q.cA=function(){var a=DL.c.cA.call(this),b=fx(ow("html,body{height:100%;width:100%;margin:0px;padding:0px;background-color:#FFF;overflow:hidden}*{}.logmsg{border-bottom:1px solid #CCC;padding:2px;font:90% monospace}#head{position:absolute;width:100%;font:x-small arial;border-bottom:2px solid #999;background-color:#EEE;}#head p{margin:0px 5px;}#log{position:absolute;width:100%;background-color:#FFF;}#options{position:absolute;right:0px;width:50%;height:100%;border-left:1px solid #999;background-color:#DDD;display:none;padding-left: 5px;font:normal small arial;overflow:auto;}#openbutton,#closebutton{text-decoration:underline;color:#00F;cursor:pointer;position:absolute;top:0px;right:5px;font:x-small arial;}#clearbutton{text-decoration:underline;color:#00F;cursor:pointer;position:absolute;top:0px;right:80px;font:x-small arial;}#exitbutton{text-decoration:underline;color:#00F;cursor:pointer;position:absolute;top:0px;right:50px;font:x-small arial;}select{font:x-small arial;margin-right:10px;}hr{border:0;height:5px;background-color:#8c8;color:#8c8;}"));return dx(a,
b)};q.Wia=function(){var a=sx("head",{},vx(sx(ip,{},"Logging: "+this.identifier),ux(this.cA()))),b=sx("body",{},vx(sx(Fg,{id:"log",style:ow("overflow:auto")}),sx(Fg,{id:"head"},vx(sx("p",{},sx("b",{},"Logging: "+this.identifier)),sx("p",{},this.k$),sx(Jo,{id:"clearbutton"},"clear"),sx(Jo,{id:"exitbutton"},"exit"),sx(Jo,{id:"openbutton"},dl))),sx(Fg,{id:dl},vx(sx("big",{},sx("b",{},"Options:")),sx(Fg,{id:"optionsarea"}),sx(Jo,{id:"closebutton"},"save and close")))));return sx("html",{},vx(a,b))};
q.bFa=function(){if(FL)for(var a=GL(),b=HL(),c=0;c<a.length;c++){var e=ph+a[c].getName(),f=a[c].Nf;e in b?f?window.localStorage.getItem(e)!=f.name&&window.localStorage.setItem(e,f.name):window.localStorage.removeItem(e):f&&window.localStorage.setItem(e,f.name)}};q.Hva=function(){if(FL){var a=HL(),b;for(b in a){a=b.replace(ph,"");a=tu(a);var c=a.Nf,e=window.localStorage.getItem(b).toString();c&&c.toString()==e||a.no(nu(e))}}};
var HL=function(){for(var a={},b=0,c=window.localStorage.length;b<c;b++){var e=window.localStorage.key(b);null!=e&&Yq(e,ph)&&(a[e]=!0)}return a},GL=function(){var a=Ps(pu);xs(a,function(a,c){return ws(a.getName(),c.getName())});return a};var IL=!1,JL="",KL=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(IL=!0,a.description)){JL=KL(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){IL=!0;JL="2.0.0.11";return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes[De],IL=!(!a||!a.enabledPlugin))){JL=KL(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");IL=!0;JL=KL(b.GetVariable("$version"));return}catch(c){}try{b=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");IL=!0;JL="6.0.21";return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),IL=!0,JL=KL(b.GetVariable("$version"))}catch(c){}})();var LL=IL,ML=JL;var NL=function(a,b,c){H.call(this,a,c);this.files=b};B(NL,H);var OL=function(a,b,c){H.call(this,a,c);this.file=b};B(OL,H);var PL=function(a,b,c){OL.call(this,"uploadmessagechanged",a,c);this.message=b};B(PL,OL);var QL=function(a,b,c,e){OL.call(this,"filepreviewready",a,e)};B(QL,OL);var RL=function(a,b,c){H.call(this,a,c);this.H9=b};B(RL,H);var SL=function(a){switch(a){case 6:case 9:case 8:case 1:return Dk;case 2:return"ioerror";case 7:return Yd;case 5:return jh;case 0:return"noerror";default:return"unknownerror"}},TL=function(a){switch(a){case Yd:return"Canceled";case Dk:return"Lost connection to server";case "ioerror":return"Unable to read file";case "securityerror":return"Security error";case mn:return"Server rejected";case ln:return"Server returned invalid response";default:return"Unexpected error"}};var UL=function(a){J.call(this);this.Ye=a;this.ZC=this.df="";this.G=new jC(this)};B(UL,J);q=UL.prototype;q.Da=ov("apps.uploader.net.FileIo");q.dispatchEvent=function(a){try{return UL.c.dispatchEvent.call(this,a)}catch(b){pv(this.Da,zc,b)}};q.getFile=function(){return this.Ye};q.Oz=function(){return this.df};q.ae=function(){return this.ZC};q.vAa=function(a){this.ZC=a};q.send=function(a){this.df=a;this.or(a)};
q.mq=function(a){rv(this.Da,"Got upload response:\n"+a);this.ZC=a||"";try{var b=JSON.parse(this.ZC)}catch(c){this.handleError(ln,Nc);return}void 0!=b.sessionStatus?(null!=this.Ye.bc&&this.On(this.Ye.bc),this.dispatchEvent(Vo)):void 0!=b.errorMessage?this.handleError(mn,"Server rejected upload."):this.handleError(ln,Nc)};q.handleError=function(a,b){this.Ye.nO(a,v(b)?b:b.message);this.dispatchEvent(gh)};q.On=function(a){this.Ye.t5(a);this.dispatchEvent(Am)};
q.dU=function(){throw Error("computeMd5() not implemented");};q.A=function(){return this.G};q.o=function(){UL.c.o.call(this);G(this.G)};var VL=function(a,b,c){UL.call(this,a);this.UW=b;this.lI=c;this.D9=!1};B(VL,UL);VL.prototype.Da=ov("apps.uploader.net.FlashFileIo");VL.prototype.abort=function(){this.D9&&Nq(this.lI.cancelUpload)&&this.lI.cancelUpload(this.UW.id)};VL.prototype.or=function(a){this.lI.startUpload(this.UW.id,a);this.D9=!0};
VL.prototype.jma=function(a){switch(a.type){case "onOpen":rv(this.Da,"Flash:onOpen "+this.getFile());break;case "onProgress":this.On(a.bytesLoaded);break;case Ok:this.mq(a.data);break;case "onHttpError":this.handleError(Dk,"HTTP Error "+a.code);break;case Qk:this.handleError("securityerror",a.error);break;case "onIoError":this.handleError("ioerror","An error occured while reading the file.")}};var WL=["classid","data","movie",tp,"typemustmatch"],XL=function(a,b){var c={},e;for(e in a)C(e.toLowerCase()==e,Vc),c[e]=a[e];for(e in b){var f=e.toLowerCase();f in a&&delete c[f];c[e]=b[e]}a=[];for(e in c)a.push(rx("param",{name:e,value:c[e]}));return a},YL=function(a,b,c){var e=function(a,b,c){for(var e in b)for(var f=e.toLowerCase(),g=0;g<a.length;g++){var h=a[g];C(h.toLowerCase()==h);if(f==h)throw Error(Zb+h+'" '+c+', got "'+e+ra+b[e]+'"');}};e(a,b,"attribute");e(a,c,"param")};var ZL=function(){};var $L=function(){};B($L,ZL);$L.prototype.sa=function(){var a=0;fv(this.ig(!0),function(b){Qr(b);a++});return a};$L.prototype.clear=function(){var a=gv(this.ig(!0)),b=this;D(a,function(a){b.remove(a)})};var aM=function(a){this.dh=a};B(aM,$L);q=aM.prototype;q.IK=function(){if(!this.dh)return!1;try{return this.dh.setItem("__sak","1"),this.dh.removeItem("__sak"),!0}catch(a){return!1}};q.set=function(a,b){try{this.dh.setItem(a,b)}catch(c){if(0==this.dh.length)throw"Storage mechanism: Storage disabled";throw sd;}};q.get=function(a){a=this.dh.getItem(a);if(!v(a)&&null!==a)throw rd;return a};q.remove=function(a){this.dh.removeItem(a)};q.sa=function(){return this.dh.length};
q.ig=function(a){var b=0,c=this.dh,e=new dv;e.next=function(){if(b>=c.length)throw cv;var e=Qr(c.key(b++));if(a)return e;e=c.getItem(e);if(!v(e))throw rd;return e};return e};q.clear=function(){this.dh.clear()};q.key=function(a){return this.dh.key(a)};var bM=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.dh=a};B(bM,aM);var dM=function(a,b){this.r8=a;this.Oe=null;if(E&&!St(9)){cM||(cM=new L);this.Oe=cM.get(a);this.Oe||(b?this.Oe=document.getElementById(b):(this.Oe=document.createElement("userdata"),this.Oe.addBehavior("#default#userData"),document.body.appendChild(this.Oe)),cM.set(a,this.Oe));try{this.Kra()}catch(c){this.Oe=null}}};B(dM,$L);var eM={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},cM=null,fM=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return eM[a]})};
q=dM.prototype;q.IK=function(){return!!this.Oe};q.set=function(a,b){this.Oe.setAttribute(fM(a),b);this.yN()};q.get=function(a){a=this.Oe.getAttribute(fM(a));if(!v(a)&&null!==a)throw rd;return a};q.remove=function(a){this.Oe.removeAttribute(fM(a));this.yN()};q.sa=function(){return this.Vp().attributes.length};
q.ig=function(a){var b=0,c=this.Vp().attributes,e=new dv;e.next=function(){if(b>=c.length)throw cv;var e=C(c[b++]);if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if(!v(e))throw rd;return e};return e};q.clear=function(){for(var a=this.Vp(),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);this.yN()};q.Kra=function(){this.Oe.load(this.r8)};q.yN=function(){try{this.Oe.save(this.r8)}catch(a){throw sd;}};q.Vp=function(){return this.Oe.XMLDocument.documentElement};var gM=function(a,b){this.rv=a;this.Di=b+"::"};B(gM,$L);gM.prototype.set=function(a,b){this.rv.set(this.Di+a,b)};gM.prototype.get=function(a){return this.rv.get(this.Di+a)};gM.prototype.remove=function(a){this.rv.remove(this.Di+a)};gM.prototype.ig=function(a){var b=this.rv.ig(!0),c=this,e=new dv;e.next=function(){for(var e=b.next();e.substr(0,c.Di.length)!=c.Di;)e=b.next();return a?e.substr(c.Di.length):c.rv.get(e)};return e};var hM=function(a){var b=new bM;(b=b.IK()?a?new gM(b,a):b:null)||(a=new dM(a||"UserDataSharedStore"),b=a.IK()?a:null);return b};var iM=function(a){this.Zj=a};iM.prototype.set=function(a,b){u(b)?this.Zj.set(a,lv(b)):this.Zj.remove(a)};iM.prototype.get=function(a){try{var b=this.Zj.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw td;}};iM.prototype.remove=function(a){this.Zj.remove(a)};var jM=function(a){this.Dda=a;this.va={};this.El={};this.Am=null;this.G=new jC;this.Y(this.G);if(a=hM("google-upload"))this.Am=new iM(a),this.Lva()};B(jM,F);var kM=function(){this.jm=[];this.fr=null};q=jM.prototype;q.F=ov("apps.uploader.common.Stats");q.ly=function(a,b,c,e,f){a&&b&&(f=f||A(),K(this.F,"Collect: "+b+", "+c+", "+e+", "+f),c={time:f,type:c},e&&(c.details=e),this.va[a]||(this.va[a]={}),this.va[a][b]||(this.va[a][b]=new kM),this.va[a][b].jm.push(c))};
q.hla=function(a,b,c,e){if(b&&!(1>=b.length)){var f=b[0];K(this.F,"Grouped uploads with group id: "+f);b={upload_id:b};c&&(b.latency_ms=c);e&&(b.total_size=e);this.va[a]||(this.va[a]={});this.va[a][f]||(this.va[a][f]=new kM);this.va[a][f].fr=b}};
q.report=function(){if(!Us(this.va))for(var a in this.va)if(!Us(this.va[a])){var b=lv(this.Nha(this.va[a]));K(this.F,"Sending stats report:\n"+b);this.El[a]=this.va[a];this.va[a]={};var c=this.Bea();this.G.listen(c,Vo,y(this.tna,this,a));this.G.listen(c,gh,y(this.sna,this,a));c.send(a,Zc,b)}};
q.Nha=function(a){var b=[],c=[],e;for(e in a)a[e].jm&&0<a[e].jm.length&&b.push({upload_id:e,events:a[e].jm,client_version:this.Dda}),a[e].fr&&c.push(a[e].fr);a={};0<b.length&&(a.upload_events=b);0<c.length&&(a.related_uploads=c);return a};q.ZL=function(a,b){for(var c in b)a[c]?(a[c].jm=a[c].jm.concat(b[c].jm),b[c].fr&&(a[c].fr=b[c].fr)):a[c]=b[c]};q.Bea=function(){return new bw};q.tna=function(a){this.El[a]={}};q.sna=function(a){this.ZL(this.El[a],this.va[a]);this.va[a]=this.El[a];this.El[a]={}};
q.bL=function(){return!!this.Am};q.KCa=function(){if(this.bL()){var a=null;try{a=this.Am.get(Qo)}catch(e){return}a||(a={});for(var b in this.El){var c=a[b]||{};this.ZL(c,this.El[b]);a[b]=c}for(b in this.va)c=a[b]||{},this.ZL(c,this.va[b]),a[b]=c;this.Am.set(Qo,a);this.El={};this.va={}}};q.Lva=function(){if(this.bL())try{this.va=this.Am.get(Qo),this.PEa(),this.va?this.Am.remove(Qo):this.va={}}catch(a){this.va={}}};
q.PEa=function(){if(this.va)if(this.va instanceof Object)for(var a in this.va)if(this.va[a]instanceof Object){var b=this.va[a],c;for(c in b)b[c].jm||delete b[c]}else delete this.va[a];else this.va={}};q.clear=function(){this.bL()&&this.Am.set(Qo,{})};var lM=function(a){this.Zj=a};B(lM,iM);var mM=function(a){this.data=a},nM=function(a){return!u(a)||a instanceof mM?a:new mM(a)},oM=function(a){a=a.data;if(!u(a))throw td;return a},pM=function(a){if(a)return oM(a)};lM.prototype.set=function(a,b){lM.c.set.call(this,a,nM(b))};lM.prototype.en=function(a){a=lM.c.get.call(this,a);if(!u(a)||a instanceof Object)return a;throw td;};lM.prototype.get=function(a){return pM(this.en(a))};var qM=function(a){this.Zj=a};B(qM,lM);var rM=function(a){var b=a.creation;a=a.expiration;return!!a&&a<A()||!!b&&b>A()};qM.prototype.set=function(a,b,c){if(b=nM(b)){if(c){if(c<A()){qM.prototype.remove.call(this,a);return}b.expiration=c}b.creation=A()}qM.c.set.call(this,a,b)};qM.prototype.en=function(a,b){var c=qM.c.en.call(this,a);if(c)if(!b&&rM(c))qM.prototype.remove.call(this,a);else return c};var sM=function(a){this.Zj=a};B(sM,qM);sM.prototype.Oia=function(a,b){var c=[];fv(a,function(a){try{var e=sM.prototype.en.call(this,a,!0)}catch(g){if(g==td){b&&c.push(a);return}throw g;}if(!u(e))c.push(a);else if(rM(e))c.push(a);else if(b)try{oM(e)}catch(g){if(g==td)c.push(a);else throw g;}},this);return c};sM.prototype.Lda=function(a,b){a=this.Oia(a,b);D(a,function(a){sM.prototype.remove.call(this,a)},this);return a};sM.prototype.ly=function(a){this.Lda(this.Zj.ig(!0),a)};var tM=function(){this.oa=[];this.Ou=this.Nu=0};tM.prototype.Lza=function(a,b){Tr(a,"Key parameter must be a byte array");b||(b=a.length);for(var c=this.oa,e=0;256>e;++e)c[e]=e;var f=0;for(e=0;256>e;++e){f=f+c[e]+a[e%b]&255;var g=c[e];c[e]=c[f];c[f]=g}this.Ou=this.Nu=0};tM.prototype.Afa=function(a){for(var b=this.Nu,c=this.Ou,e=this.oa,f=0;f<a;++f){b=b+1&255;c=c+e[b]&255;var g=e[b];e[b]=e[c];e[c]=g}this.Nu=b;this.Ou=c};
tM.prototype.Qea=function(a,b){b||(b=a.length);for(var c=this.Nu,e=this.Ou,f=this.oa,g=0;g<b;++g){c=c+1&255;e=e+f[c]&255;var h=f[c];f[c]=f[e];f[e]=h;a[g]^=f[f[c]+f[e]&255]}this.Nu=c;this.Ou=e};var uM=function(a){for(var b=[],c=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(b[c++]=f&255,f>>=8);b[c++]=f}return b},vM=function(a){return as(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};var wM=null,xM=null,yM=function(a,b){C(Mq(a),"encodeByteArray takes an array as a parameter");if(!wM){wM={};xM={};for(var c=0;65>c;c++)wM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),xM[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)}b=b?xM:wM;c=[];for(var e=0;e<a.length;e+=3){var f=a[e],g=e+1<a.length,h=g?a[e+1]:0,l=e+2<a.length,p=l?a[e+2]:0,r=f>>2;f=(f&3)<<4|h>>4;h=(h&15)<<2|p>>6;p&=63;l||(p=64,g||(h=64));c.push(b[r],b[f],b[h],
b[p])}return c.join("")};var zM=function(){this.Wd=-1};var AM=function(){this.Wd=64;this.Oa=[];this.UF=[];this.aba=[];this.pC=[];this.pC[0]=128;for(var a=1;a<this.Wd;++a)this.pC[a]=0;this.AE=this.uq=0;this.reset()};B(AM,zM);AM.prototype.reset=function(){this.Oa[0]=1732584193;this.Oa[1]=4023233417;this.Oa[2]=2562383102;this.Oa[3]=271733878;this.Oa[4]=3285377520;this.AE=this.uq=0};
AM.prototype.Bk=function(a,b){b||(b=0);var c=this.aba;if(v(a))for(var e=0;16>e;e++)c[e]=a.charCodeAt(b)<<24|a.charCodeAt(b+1)<<16|a.charCodeAt(b+2)<<8|a.charCodeAt(b+3),b+=4;else for(e=0;16>e;e++)c[e]=a[b]<<24|a[b+1]<<16|a[b+2]<<8|a[b+3],b+=4;for(e=16;80>e;e++){var f=c[e-3]^c[e-8]^c[e-14]^c[e-16];c[e]=(f<<1|f>>>31)&4294967295}a=this.Oa[0];b=this.Oa[1];var g=this.Oa[2],h=this.Oa[3],l=this.Oa[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=h^b&(g^h);var p=1518500249}else f=b^g^h,p=1859775393;else 60>e?(f=b&
g|h&(b|g),p=2400959708):(f=b^g^h,p=3395469782);f=(a<<5|a>>>27)+f+l+p+c[e]&4294967295;l=h;h=g;g=(b<<30|b>>>2)&4294967295;b=a;a=f}this.Oa[0]=this.Oa[0]+a&4294967295;this.Oa[1]=this.Oa[1]+b&4294967295;this.Oa[2]=this.Oa[2]+g&4294967295;this.Oa[3]=this.Oa[3]+h&4294967295;this.Oa[4]=this.Oa[4]+l&4294967295};
AM.prototype.update=function(a,b){if(null!=a){u(b)||(b=a.length);for(var c=b-this.Wd,e=0,f=this.UF,g=this.uq;e<b;){if(0==g)for(;e<=c;)this.Bk(a,e),e+=this.Wd;if(v(a))for(;e<b;){if(f[g]=a.charCodeAt(e),++g,++e,g==this.Wd){this.Bk(f);g=0;break}}else for(;e<b;)if(f[g]=a[e],++g,++e,g==this.Wd){this.Bk(f);g=0;break}}this.uq=g;this.AE+=b}};
AM.prototype.digest=function(){var a=[],b=8*this.AE;56>this.uq?this.update(this.pC,56-this.uq):this.update(this.pC,this.Wd-(this.uq-56));for(var c=this.Wd-1;56<=c;c--)this.UF[c]=b&255,b/=256;this.Bk(this.UF);for(c=b=0;5>c;c++)for(var e=24;0<=e;e-=8)a[b]=this.Oa[c]>>e&255,++b;return a};var BM=function(a,b){this.Zj=a;this.U4=uM(b);this.Cda=new kv};B(BM,sM);q=BM.prototype;q.UJ=function(a){var b=new AM;b.update(uM(a));b.update(this.U4);return yM(b.digest(),!0)};
q.jW=function(a,b,c){if(!(0<a.length))throw Error("Non-empty salt must be provided");var e=new AM;e.update(uM(b));e.update(a);e.update(this.U4);a=new tM;a.Lza(e.digest());a.Afa(1536);c=uM(c);a.Qea(c);if(8192>=c.length)c=String.fromCharCode.apply(null,c);else{e="";for(a=0;a<c.length;a+=8192)b=ts(c,a,a+8192),e+=String.fromCharCode.apply(null,b);c=e}return c};q.gfa=function(a,b,c){return this.jW(a,b,c)};
q.set=function(a,b,c){if(u(b)){for(var e=[],f=0;8>f;++f)e[f]=Math.floor(256*Math.random());b=new mM(this.jW(e,a,this.Cda.jk(b)));b.salt=e;BM.c.set.call(this,this.UJ(a),b,c)}else BM.prototype.remove.call(this,a)};q.en=function(a,b){if(b=BM.c.en.call(this,this.UJ(a),b)){var c=oM(b),e=b.salt;if(!v(c)||!x(e)||!e.length)throw td;a=this.gfa(e,a,c);try{b.data=JSON.parse(a)}catch(f){throw"Storage: The value could not be decrypted";}return b}};q.remove=function(a){BM.c.remove.call(this,this.UJ(a))};var CM=function(){this.wh=[];this.ai=[]};q=CM.prototype;q.osa=function(){ks(this.wh)&&(this.wh=this.ai,this.wh.reverse(),this.ai=[])};q.enqueue=function(a){this.ai.push(a)};q.Cm=function(){this.osa();return this.wh.pop()};q.sa=function(){return this.wh.length+this.ai.length};q.Sb=function(){return ks(this.wh)&&ks(this.ai)};q.clear=function(){this.wh=[];this.ai=[]};q.contains=function(a){return is(this.wh,a)||is(this.ai,a)};
q.remove=function(a){var b=this.wh;var c=Yr(b,a);0<=c?(ns(b,c),b=!0):b=!1;return b||os(this.ai,a)};q.nb=function(){for(var a=[],b=this.wh.length-1;0<=b;--b)a.push(this.wh[b]);var c=this.ai.length;for(b=0;b<c;++b)a.push(this.ai[b]);return a};var FM=function(a,b){u(a.name)?(this.name=a.name,this.code=DM[a.name]):(this.code=Pr(a.code),this.name=EM(a.code));Kr.call(this,$q("%s %s",this.name,b))};B(FM,Kr);var EM=function(a){var b=Ts(DM,function(b){return a==b});if(!u(b))throw Error("Invalid code: "+a);return b},DM={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};var GM=function(a,b){H.call(this,a.type,b);this.bd=a};B(GM,H);var HM=function(){J.call(this);this.Je=new FileReader;this.Je.onloadstart=y(this.Ap,this);this.Je.onprogress=y(this.Ap,this);this.Je.onload=y(this.Ap,this);this.Je.onabort=y(this.Ap,this);this.Je.onerror=y(this.Ap,this);this.Je.onloadend=y(this.Ap,this)};B(HM,J);q=HM.prototype;q.abort=function(){try{this.Je.abort()}catch(a){throw new FM(a,"aborting read");}};q.$m=function(){return this.Je.readyState};q.getError=function(){return this.Je.error&&new FM(this.Je.error,"reading file")};
q.Ap=function(a){this.dispatchEvent(new GM(a,this))};q.o=function(){HM.c.o.call(this);delete this.Je};q.readAsBinaryString=function(a){this.Je.readAsBinaryString(a)};q.readAsArrayBuffer=function(a){this.Je.readAsArrayBuffer(a)};var JM=function(a){var b=new HM,c=IM(b);b.readAsArrayBuffer(a);return c};HM.prototype.readAsText=function(a,b){this.Je.readAsText(a,b)};
var IM=function(a){var b=new xH;a.listen("loadend",Wq(function(a,b){var c=b.Je.result,e=b.getError();null==c||e?a.sg(e):a.callback(c);b.dispose()},b,a));return b};var KM=function(a){var b=t.BlobBuilder||t.WebKitBlobBuilder;if(u(b)){b=new b;for(var c=0;c<arguments.length;c++)b.append(arguments[c]);return b.getBlob()}b=rs(arguments);c=t.BlobBuilder||t.WebKitBlobBuilder;if(u(c)){c=new c;for(var e=0;e<b.length;e++)c.append(b[e],void 0);b=c.getBlob(void 0)}else if(u(t.Blob))b=new Blob(b,{});else throw Error("This browser doesn't seem to support creating Blobs");return b},LM=function(a,b,c){u(c)||(c=a.size);return a.webkitSlice?a.webkitSlice(b,c):a.mozSlice?a.mozSlice(b,
c):a.slice?yt&&!Qt("13.0")||zt&&!Qt("537.1")?(0>b&&(b+=a.size),0>b&&(b=0),0>c&&(c+=a.size),c<b&&(c=b),a.slice(b,c-b)):a.slice(b,c):null};var MM=function(a,b){a=[a];for(var c=b.length-1;0<=c;--c)a.push(typeof b[c],b[c]);return a.join("\x0B")};var NM=function(a,b){var c=b||MM;return function(){var b=this||t;b=b.closure_memoize_cache_||(b.closure_memoize_cache_={});var f=c(Rq(a),arguments);return b.hasOwnProperty(f)?b[f]:b[f]=a.apply(this,arguments)}}(function(){if(!t.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return 100!=b.size?!1:!0});var QM=function(a,b,c,e,f,g){J.call(this);this.ma=OM++;this.Kxa=A();this.Og=PM(a)||"";this.bc=null!=b?b:null;this.G1=new L;this.LC=PM(c);this.Jxa=e;this.Fga={};new L;this.Jg=g||null;K(this.F,"Created new "+this)};B(QM,J);var RM={C$:xg,X$:Wi,mKa:Km,Saa:Oo,Xaa:qp,Uaa:Vo,ERROR:gh,qaa:rl,Mo:qf};q=QM.prototype;q.F=ov("apps.uploader.File");q.Cs=0;q.fc="noerror";q.iB="";q.Mi=null;q.Uw=null;q.MG=null;q.Co=null;q.T_=!1;q.fxa=0;q.qT=!1;
var OM=0,PM=function(a){if(!a)return a;Ct&&(a=a.replace(/\\/g,"/"));Zq(a,"/")&&(a=a.substring(0,a.length-1));return a};q=QM.prototype;q.getId=function(){return String(this.ma)};q.getName=function(){var a=this.sz();return this.LC?this.LC+"/"+a:a};q.getExtension=function(){var a=this.getName(),b=a.lastIndexOf(".");return 0>b?null:a.substr(b+1)};q.cja=function(){if(!this.bc)return null;var a=new AM;a.update(uM(this.Og+"|"+this.bc));return vM(a.digest())};q.sz=function(){return this.Og.split("/").pop()};
q.tAa=function(a){this.LC=PM(a)};q.$g=function(a){this.Og=PM(a)};q.getPath=function(){return this.Og};q.t5=function(a){this.Cs=a};q.nO=function(a,b){this.fc=a;this.iB=b||""};q.tD=function(a){this.bc=a};q.e6=function(a){this.T_=a};q.Zza=function(a){this.G1=new L(a)};q.I6=function(a){this.Mi=a};q.$Aa=function(a){this.Uw=a};q.D5=function(a){this.MG=a};q.tJ=function(){return this.MG?this.MG:this.Mi};q.jP=function(a){this.Co=a};
q.Cza=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var e=a[c],f=e.indexOf(":");0>f||(b[e.substring(0,f)]=e.substring(f+2,e.length))}new L(b)};q.iqa=function(){return"."==this.sz()};q.p5=function(a){if(this.kca=a)this.bc=a.size};q.Aya=function(a){this.qT=a};q.toString=function(){return["File(id:",this.ma,", path:",this.Og,", relativeDirectoryPath:",this.LC,", selectionId:",this.Jxa,", bytesTransferred:",this.Cs,", bytesTotal:",this.bc,")"].join("")};var SM=function(a,b,c,e,f,g,h){QM.call(this,a,b,c,e,g);this.GW=f;this.DV=h;this.yt=[];this.oW={};this.vfa=[]};B(SM,QM);q=SM.prototype;q.addEntry=function(a){a.iqa()?this.vfa.push(a):(this.yt.push(a),this.oW[a.sz()]=this.yt.length-1)};q.Mia=function(a){a=this.oW[a];return void 0!=a?this.yt[a]:null};q.getEntries=function(){return this.yt};
q.eU=function(){for(var a=0,b=1,c=0,e=this.yt,f=0;f<e.length;f++){var g=e[f];if(g instanceof SM){var h=g;h.eU();a+=h.GW;b+=h.DV}else a+=1;c+=g.bc}this.tD(c);this.kza(a);this.Uya(b)};q.kza=function(a){this.GW=a};q.Uya=function(a){this.DV=a};var TM=function(a){this.file=a};q=TM.prototype;q.PN=null;q.Pk=null;q.eN=null;q.blob=null;q.oqa=!1;q.state=xg;var UM=function(a){this.file=a};B(UM,TM);UM.prototype.iI=null;UM.prototype.VW="";var VM=function(a,b){J.call(this);this.Ye=a.file;this.Mga=a.Pk;this.Mi=b;this.LL=this.NC=this.I3=this.MC=null;this.Il=!1;this.Da=ov("apps.uploader.Recovery")};B(VM,J);
VM.prototype.start=function(){if(this.Il)pv(this.Da,"A recovery process is already running");else{this.Il=!0;var a=new bw;I(a,Gf,y(function(){if(this.Il){if(308==a.Ij()){var b=a.getResponseHeader("Range");this.MC=a.getResponseHeader("X-Range-MD5")||null;var c=a.ae(),e=null,f=null;try{e=JSON.parse(c).sessionStatus,f=e.externalFieldTransfers[0].formPostInfo||e.externalFieldTransfers[0].putInfo}catch(g){}if(b&&this.MC&&e&&f&&(b=/^bytes=(\d+)-(\d+)$/.exec(b))&&(this.I3=Number(b[1]),this.NC=Number(b[2])+
1,0==this.I3&&0<this.NC)){this.Mga.dU(this.NC,y(function(a){this.Il&&(this.LL=a,this.LL==this.MC?(this.Ye.I6(f.url||this.Mi),this.Ye.D5(f.cross_domain_url),this.Ye.t5(this.NC),this.Ye.jP(e.upload_id||Zv(this.Mi,"upload_id")),this.Il=!1,this.dispatchEvent(Vo)):(this.Il=!1,K(this.Da,"Hash mismatch, local: "+this.LL+", remote: "+this.MC),this.dispatchEvent("error_hashing")))},this));this.dispatchEvent("hashing");return}}this.Il=!1;K(this.Da,"Query error, status: "+a.Ij());this.dispatchEvent(hh)}},this));
a.send(this.Mi,Zc,"",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.Ye.bc});this.dispatchEvent("querying")}};VM.prototype.cancel=function(){this.Il=!1;this.dispatchEvent("canceled")};var WM=function(a,b){J.call(this);this.Ye=a;this.oa="INITIALIZING";this.qG=this.ez=this.MW=null;this.Y8=b;this.G=new jC(this)};B(WM,J);q=WM.prototype;q.F=ov("apps.uploader.Session");q.nx=!1;q.getFile=function(){return this.Ye};q.setState=function(a){this.oa=a};q.getState=function(){return this.oa};q.Iya=function(a){this.qG=a};q.xz=function(){return this.qG};q.c7=function(a){this.nx=a};
q.start=function(a){var b=this.dea(y(this.loa,this),y(this.oA,this)),c=this.Gea();try{var e={};at(e,this.getFile().Fga);var f={};f["X-GUploader-Client-Info"]="mechanism="+this.qG+"; clientVersion=167843844";at(e,f);var g=lv(c);rv(this.F,"Sending create session request to: "+a+"\n"+g);b.send(a,Zc,g,e)}catch(h){throw pv(this.F,"Failed to send create session request",h),h;}};q.dea=function(a,b){var c=new bw;c.oP(!0);this.G.listen(c,Vo,a).listen(c,gh,b);return c};
q.loa=function(a){try{var b=a.target.ae();rv(this.F,"Got create session response:\n"+b);var c=JSON.parse(b);if(void 0!=c.sessionStatus){var e=c.sessionStatus;switch(this.Y8){case 0:var f="formPostInfo";break;case 1:f="putInfo";break;default:f="formPostInfo"}this.setState(e.state);var g=e.upload_id,h=e.externalFieldTransfers[0],l=h[f].url;this.nx&&(l=bz(l).Br("").tr("").toString());var p=h[f].cross_domain_url,r=this.getFile();r.I6(l);r.D5(p);r.jP(g);r.$Aa(a.target.getResponseHeader("X-GUploader-Stats-URL"));
r.Cza(a.target.getAllResponseHeaders());this.dispatchEvent(Po,a.target)}else if(void 0!=c.errorMessage){var z=c.errorMessage;g=z.upload_id;r=this.getFile();r.jP(g);this.UN(z);this.oA(a,mn)}else this.oA(a,ln)}catch(O){qv(this.F,"Invalid response to the create session request",O),this.oA(a,ln)}};q.n3=function(a){a=JSON.parse(a);void 0!=a.sessionStatus?(this.setState(a.sessionStatus.state),this.UN(a.sessionStatus)):void 0!=a.errorMessage&&(this.setState("FAILED"),this.UN(a.errorMessage))};
q.UN=function(a){a=a.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"];this.MW=a.completionInfo.status;this.ez=a.completionInfo.customerSpecificInfo};q.oA=function(a,b,c){this.setState("FAILED");b||(b=SL(a.target.fc),c=a.target.Nz());this.Ye.nO(b,c);this.dispatchEvent("starterror",a.target)};q.dispatchEvent=function(a,b){v(a)?a=new XM(a,this,b):a.request=b;try{return WM.c.dispatchEvent.call(this,a)}catch(c){pv(this.F,zc,c)}};
q.Gea=function(){var a={protocolVersion:"0.8",createSessionRequest:{fields:[]}};this.Uwa(a,this.getFile());return a};q.Uwa=function(a,b){this.Twa(a.createSessionRequest,b);YM(a,b.G1)};q.Twa=function(a,b){var c={external:{name:rh,filename:b.sz()}};switch(this.Y8){case 0:var e="formPost";break;case 1:e="put";break;default:e="formPost"}c.external[e]={};e=b.bc;null==e||b.T_||(c.external.size=e);a.fields.push(c)};
var YM=function(a,b){Bv(b,function(b,e){a.createSessionRequest.fields.push({inlined:{name:e,content:b,contentType:"text/plain"}})})};WM.prototype.toString=function(){return"Session(state:"+this.getState()+")"};WM.prototype.o=function(){WM.c.o.call(this);G(this.G)};var XM=function(a,b,c){H.call(this,a,b);this.request=c||null};B(XM,H);var ZM=function(){J.call(this);this.Af=[];this.Kp=new L;this.E3={};this.eA={};this.C9={};this.Do=new CM;this.G=new jC(this);this.Y(this.G);this.hc=new jM("167843844");this.Y(this.hc);try{this.G.listen(window,"unload",this.Goa)}catch(a){K(this.Da,"Failed to add unload listener",a)}this.hc.report()};B(ZM,J);q=ZM.prototype;q.Da=ov("apps.uploader.BaseUploader");q.Kx=!0;q.Lx=!1;q.Ova=Wq(function(){var a=new xH;a.callback(!0);return a});q.pr="";q.By=0;q.jsa=1;q.XS=!0;q.uv=!0;q.Qm=null;q.mS=!1;q.pS=!1;
q.nx=!1;q.K1=51200;q.JAa=function(a){this.pr=a};q.tya=function(a){this.XS=a};q.zr=function(a){this.uv=a};q.VN=function(a){this.mS=a};q.St=function(){return this.mS&&this.Y_()};q.c7=function(a){this.nx=a};q.BX=function(a){return this.Nfa?this.Nfa(a):this.yNa};q.mBa=function(a){if(this.Lx&&this.p0()){var b=hM("google-upload-recovery");b&&(this.Gi=new BM(b,a))}};q.lya=function(a){this.Lx=a};q.A=function(){return this.G};
q.dispatchEvent=function(a){try{return ZM.c.dispatchEvent.call(this,a)}catch(b){qv(this.Da,zc,b)}};q.getFile=function(a){return(a=this.Kp.get(a))?a.file:null};q.yd=function(a){var b=this.Kp.get(a.getId());b||(b=this.CG(a),this.Kp.set(a.getId(),b));return b};q.dr=function(a){this.Do.contains(a)||this.bq(a)||this.Uk(a)!=xg||(a instanceof SM||this.Do.enqueue(a),this.Oi(a,Wi),this.Nga())};q.bq=function(a){return this.yd(a).PN};q.HX=function(a){return this.yd(a).Pk};
q.ip=function(a,b){switch(this.Uk(a)){case Vo:case gh:case qf:return}var c=this.HX(a),e=this.bq(a),f=this.yd(a).eN,g=A();b=b||!1;e&&this.G.ta(e,Po,this.A2,!1,this);c&&(c.abort(),this.yd(a).Pk=null,b||this.Lxa(a));f&&(f.cancel(),this.yd(a).eN=null);this.Do.remove(a);this.Tv(a,qf);this.uG(a,g);this.yd(a).PN=null;this.pO(a,Yd);this.Oi(a,qf);if(a instanceof SM)for(a=a.getEntries(),c=0;c<a.length;c++)this.ip(a[c],b)};q.Tz=function(){return this.Af.length};
q.Ax=function(a){this.Af.push(a);this.Kp.get(a.getId())||this.Kp.set(a.getId(),this.CG(a));this.dispatchEvent(new OL("fileadded",a));this.uF(a)};q.iy=function(){D(rs(this.Af),function(a){switch(this.Uk(a)){case xg:case Vo:case rl:case gh:case qf:this.OC(a)}},this)};q.dG=function(a){var b=a||!1;D(rs(this.Af),function(a){switch(this.Uk(a)){case xg:case Wi:this.ip(a,b)}},this);D(rs(this.Af),function(a){this.ip(a,b)},this)};q.pO=function(a,b,c){a.nO(b,c)};
q.Oi=function(a,b){var c=this.Uk(a);if(b!=c&&Ss(RM,b)){this.yd(a).state=b;a.Aya(this.YK()&&!(a instanceof SM)&&(b==gh||b==qf));var e="";if(b==gh||b==qf)e=TL(a.fc);this.dispatchEvent(new PL(a,e));K(this.Da,"File state changed from ["+c+"] to ["+b+"]. "+a);this.dispatchEvent(new OL(Lp,a));$M(c)&&!$M(b)&&(a.p5(void 0),this.By--,this.VB())}};q.Uk=function(a){return this.yd(a).state};q.reset=function(){D(rs(this.Af),this.OC,this)};q.Bu=function(){return this.Do.Sb()&&0==this.By};q.Y_=function(){return!1};
q.$u=function(){return!1};q.p0=function(){return!1};q.Ez=function(){return rs(this.Af)};q.OC=function(a){this.ip(a);this.Kp.remove(a.getId());os(this.Af,a);this.dispatchEvent(new OL("fileremoved",a))};q.fx=function(){};q.nl=function(){return!1};var $M=function(a){return is([Km,Oo,qp],a)};q=ZM.prototype;q.s3=function(a){this.dr(a);if(a instanceof SM){a=a.getEntries();for(var b=0;b<a.length;b++)this.s3(a[b])}};q.Fva=function(a){this.XS&&this.s3(a)};q.Vu=function(a){return!!a.tagName};
q.Et=function(a){return this.Vu(a)?a:a.b()};q.CG=function(a){return new TM(a)};
q.VB=function(){this.Bu()&&this.dispatchEvent("allfilescompleted");if(!this.JS()&&!this.Do.Sb()){if(ar(this.pr))throw Error("session server url has not been set");var a=this.Do.Cm();if(!(a instanceof SM)){this.By++;if(this.Gi){var b=this.Xz(a),c=null,e=null;try{c=this.Gi.en(b),e=pM(c)}catch(g){}if(c&&v(e)){var f=e;if(b=Zv(e,"upload_id")){this.Ova(b).os(function(b){b?this.Nva(a,f,c.creation):this.bh(a)},function(){this.bh(a)},this);return}}}this.bh(a)}}};
q.bh=function(a){var b=this.cea(a);this.yd(a).PN=b;var c=a.tJ();c&&b.setState("OPEN");this.dispatchEvent(new OL("filesessioncreated",a,this));c?this.k8(a,c):(b.start(this.pr),this.Oi(a,Oo))};q.Ts=function(a){return new UL(a)};
q.DM=function(a){a=a.target;var b=a.getFile(),c=this.bq(b),e=A();try{c.n3(a.ae());var f=c.getState(),g=c.MW;"FINALIZED"!=f||"SUCCESS"!=g&&"QUEUED"!=g?(this.pO(b,mn),this.Oi(b,gh)):this.Oi(b,Vo)}catch(h){pv(this.Da,"Invalid response to the upload request",h),this.pO(b,ln),this.Oi(b,gh)}this.Gi&&(this.Gi.remove(this.Xz(b)),this.Gi instanceof sM&&this.Uk(b)==Vo&&this.Gi.ly());this.Tv(b,Vo);this.uG(b,e)};q.uF=function(a){this.Fva(a)};q.YK=function(){return!1};q.FY=function(){return 0};
q.Goa=function(){this.iy();for(var a=0;a<this.Af.length;a++){var b=this.Af[a];b&&b.Uw&&b.Co&&this.hc.ly(b.Uw,b.Co,"unload","",A())}this.hc.KCa()};q.JS=function(){return this.By>=this.jsa};q.Nga=function(){for(;!this.JS()&&!this.Do.Sb();)this.VB()};
q.Nva=function(a,b,c){var e=this,f=this.yd(a);f.Pk||(f.Pk=this.Ts(a));b=new VM(f,b,c);this.G.listen(b,Vo,y(this.bh,this,a)).listen(b,hh,y(this.bh,this,a)).listen(b,"error_hashing",y(this.bh,this,a)).listen(b,"hashing",function(){e.dispatchEvent(new OL("filehashingstarted",a,e))});f.eN=b;b.start();this.Oi(a,Km)};
q.k8=function(a,b){if(a.fc!=Yd){if(this.Gi){var c=this.Xz(a);try{this.Gi.set(c,a.Mi,A()+864E6)}catch(l){}}c=this.yd(a);c.Pk||(c.Pk=this.Ts(a));c=c.Pk;this.Oi(a,qp);this.G.listen(c,Vo,this.DM).listen(c,gh,this.jua).listen(c,Am,this.kua).listen(c,df,this.iua);if(!this.eA[a.getId()]){var e=a.Co,f=[];this.C9[e]=A();for(var g=0;g<this.Af.length;g++){var h=this.Af[g];h&&!this.eA[h.getId()]&&(this.eA[h.getId()]=e,f.push(h))}this.E3[e]=f}this.Tv(a,en,""+(a.fxa||""),a.Kxa);this.Tv(a,Oo);this.dispatchEvent(new OL("fileiocreated",
a,this));c.send(b)}};q.Tv=function(a,b,c,e){e=e||A();var f=a.Uw;a=a.Co;f&&a&&(this.hc.ly(f,a,b,c,e),this.hc.report())};q.uG=function(a,b){var c=this.eA[a.getId()];if(c){var e=this.E3[c];if(!(2>e.length||e[e.length-1]!=a)){a=e[0].Uw;var f=0;if(a){var g=[],h;for(h in e)null!=e[h]&&null!=e[h].Co&&(g.push(e[h].Co),f+=e[h].bc);this.hc.hla(a,g,parseInt(b-this.C9[c],10),f);this.hc.report()}}}};q.Xz=function(a){return this.pr+":"+a.cja()};
q.cea=function(a){a=new WM(a,this.FY());a.Iya(this.xz());this.nx&&a.c7(!0);this.G.listen(a,Po,this.A2).listen(a,"starterror",this.Zta);return a};q.A2=function(a){a=a.target.getFile();var b=a.tJ();if(b)this.k8(a,b);else throw Error("no upload URL for "+a);};q.Zta=function(a){a=a.target.getFile();qv(this.Da,"SessionError: "+a.fc+" "+a.iB+" "+a);this.Oi(a,gh)};q.kua=function(a){a=a.target.getFile();this.dispatchEvent(new OL(Kp,a))};
q.jua=function(a){a=a.target;var b=a.getFile(),c=A();qv(this.Da,"UploadError:"+b.fc+" "+b.iB+" "+b);var e=this.bq(b);try{e.n3(a.ae())}catch(f){qv(this.Da,"Invalid response to the upload request: ",a.ae())}this.Oi(b,gh);this.Tv(b,gh,b.iB,A());this.uG(b,c);this.Gi&&this.Gi.remove(this.Xz(b))};q.iua=function(a){a=a.target.getFile();this.dispatchEvent(new OL("uploadbackoff",a))};q.Lxa=function(a){(a=a.Mi)&&(new bw).send(a,"DELETE")};var aN=function(){ZM.call(this);this.Sq=new L;this.jI=new L;this.HW=new L;this.FW=new L;this.kI=new L;this.Ov=new LG;this.$n=new LG;this.Mt=[]};B(aN,ZM);var bN=Jw(ow("static/uploaderapi.swf")),cN=1,dN=new L;q=aN.prototype;q.il="";q.eo=!1;q.jz=!1;q.mza=function(a){this.kz=a};q.nza=function(a){this.jz=a};q.zr=function(a){aN.c.zr.call(this,a);this.gha(this.q6,this)};q.Vk=function(a){return this.ug(a).b(a||this.il)};q.KX=function(a){return this.Vk(a||this.il).parentNode};
q.a0=function(a){return this.kI.Xb(a||this.il)};q.install=function(a){if(!a)throw Error(jl);this.dispatchEvent(new RL(Hp,this));this.PF(a)};q.yQ=function(a){if(!a)throw Error(jl);this.dispatchEvent(new RL(Jp,this));this.fx(a)};q.xz=function(){return"scotty flash"};q.yq=function(){return this.a0()};q.CG=function(a){return new UM(a)};q.Ro=function(a){this.eo=a||this.eo;this.a0()&&this.Kx&&this.Vk(this.il).browse(this.uv,this.MX())};
q.fx=function(a){a=this.Et(a);var b=Rq(a),c=this.jI.get(b);c&&c!=this.il&&(this.Bu()?this.ug(c).removeNode(this.KX(c)):this.Mt.push(c),this.jI.remove(b),this.Sq.remove(a))};q.VB=function(){aN.c.VB.call(this);if(this.Bu()){for(var a=0;a<this.Mt.length;a++)this.ug(this.Mt[a]).removeNode(this.KX(this.Mt[a]));this.Mt=[]}};q.ip=function(a,b){this.$n.remove(a.getId());aN.c.ip.call(this,a,b)};q.dr=function(a){this.Ov.contains(a.getId())?this.$n.add(a.getId()):aN.c.dr.call(this,a)};
q.bh=function(a){this.Ov.contains(a.getId())||this.Mfa(a)};q.Ts=function(a){var b=this.yd(a).iI;a=new VL(a,b,this.LX(a));this.HW.set(b.id,a);return a};q.Bu=function(){return this.$n.Sb()&&aN.c.Bu.call(this)};q.kya=function(a){var b=this.Kx;a=this.Vk(a);a.setAllowAddingFiles(b);fC(a,"uploader-overlay-hidden",!b)};q.gha=function(a,b){D(this.kI.bb(),a,b)};q.q6=function(a){this.Vk(a).setMultiSelect(this.uv)};q.mya=function(a){this.Vk(a).setAllowedFileTypes(this.MX())};
q.mea=function(){return"FLASH_UPLOADER_"+cN++};q.LX=function(a){a=this.yd(a).VW;return this.Vk(a)};q.ug=function(a){a=this.Sq.get(a||this.il);return N(a)};
q.PF=function(a){a=this.Et(a);var b=this.mea();this.Sq.set(b,a);this.jI.set(Rq(a),b);var c=this.ug(b);this.il||(this.il=b,c.getWindow().onUploaderApiReady=eN);dN.set(b,y(this.m2,this));U(a,Gp);var e=aA(a),f=c.g(d,{"class":"upload-uploader-flash-content"});c.kl(f,a);Q(f,tm,be);Q(f,dq,fq);a.parentNode&&Q(a.parentNode,tm,Mm);Kz(f,Lz(a));this.lea(bN,f,b,e.width,e.height,{allowscriptaccess:"always",allownetworking:ke,wmode:this.jz?"window":rp,flashvars:"apiId="+b+(this.kz?"&"+this.kz:"")})};
q.lea=function(a,b,c,e,f,g){e={id:c,width:e,height:f};b=this.ug(c).b(b);E?(YL(WL,e,g),a=XL({allownetworking:Ek,allowscriptaccess:"never",movie:a},g),g=tx({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},e),a=rx(Jk,g,a)):(YL(WL,e,g),g=XL({allownetworking:Ek,allowscriptaccess:"never"},g),a=tx({data:a,type:De,typemustmatch:""},{},e),a=rx(Jk,a,g));Ox(b,a);this.dispatchEvent(new RL("appletinsertedindom",this))};
q.m2=function(a){var b=this.ug(a),c=this.Vk(a);if(c.addListener){this.kI.set(a,!0);var e=a+"flashFileSelection";b=b.getWindow();b[e]=y(this.Ata,this);c.addListener("onSelected",e);e=a+"flashMouseEvent";b[e]=y(this.Bta,this);c.addListener("onMouseOver",e);c.addListener("onMouseOut",e);c.addListener("onMouseClick",e);e=a+"flashToFileIo";b[e]=y(this.Zga,this);c.addListener("onOpen",e);c.addListener("onProgress",e);c.addListener(Ok,e);c.addListener("onHttpError",e);c.addListener(Qk,e);c.addListener("onIoError",
e);e=a+"flashImageEvent";b[e]=y(this.Hta,this);c.addListener(Pk,e);c.addListener("onResizeReady",e);c.addListener("onLoadError",e);this.q6(a);this.mya(a);this.kya(a);this.dispatchEvent(new RL(Ip,this))}else M(y(this.m2,this,a))};
q.Ata=function(a){this.dispatchEvent(new H(wh));var b=a.apiId;this.Vk(b);this.eo&&this.iy();var c=a.files;this.pS&&xs(c,function(a,b){return dr(a.name,b.name,/\d+|\.\d+|\D+/g)});a=as(c,function(a){return new QM(a.name,a.size,void 0,void 0,a.modificationDate)});D(a,function(a,f){var e=this.yd(a);e.VW=b;e.iI=c[f];this.FW.set(c[f].id,a)},this);this.dispatchEvent(new H(vh));this.dispatchEvent(new NL(xh,a))&&(D(a,function(a){this.Ax(a)},this),this.dispatchEvent(new NL(ne,a)))};
q.Mfa=function(a){var b=this.BX(a);if(b){this.dispatchEvent(new OL(uh,a));var c=this.LX(a);c.setMaxPixelDimension(Math.min(b.Ae().width,b.Ae().height));c.setMinImageByteCountForRescale(this.K1);c.resizeImage(this.yd(a).iI.id,a.tJ())}else aN.c.bh.call(this,a)};
q.Hta=function(a){var b=this.FW.get(a.file);switch(a.type){case Pk:this.Ov.remove(b.getId());this.dispatchEvent(new QL(b,"data:image/jpg;base64,"+a.data,a.version));this.$n.contains(b.getId())&&(this.$n.remove(b.getId()),this.dr(b));break;case "onResizeReady":b.tD(a.fileSize);this.dispatchEvent(new OL(th,b));aN.c.bh.call(this,b);break;case "onLoadError":this.Ov.contains(b.getId())?(this.Ov.remove(b.getId()),this.dispatchEvent(new OL("filepreviewerror",b)),this.$n.contains(b.getId())&&(this.$n.remove(b.getId()),
this.dr(b))):(this.dispatchEvent(new OL(th,b)),aN.c.bh.call(this,b))}};q.Zga=function(a){this.HW.get(a.file).jma(a)};q.Bta=function(a){switch(a.type){case "onMouseOver":var b="flashmouseover";break;case "onMouseOut":b="flashmouseout";break;case "onMouseClick":b="flashmouseclick"}a=this.Sq.get(a.apiId);this.dispatchEvent({type:b,sourceOverlay:a})};q.MX=function(){var a=this.Qm;if(x(a)&&a.length)return[{description:"Allowed files",extension:"*"+a.join(";*")}]};var eN=function(a){dN.get(a)(a)};var fN=function(a,b,c){UL.call(this,a);this.Yb=b;this.Lb=null;this.Vw=15E3;this.Xga=5E3;this.uS=500;this.$q=null;this.sk=c||0;this.tL=this.uL=0};B(fN,UL);q=fN.prototype;q.Da=ov("apps.uploader.net.HtmlFormFileIo");q.abort=function(){this.Lb.abort()};
q.or=function(a){var b=this.qea();this.Lb=b;this.A().listen(b,Vo,this.eZ).listen(b,gh,function(b){var c=window.location.href;var f=a.match(Sv)[1]||null;var g=Tv(a.match(Sv)[3]||null,!0),h=Number(a.match(Sv)[4]||null)||null;if(f||g||h){var l=c.match(Sv)[1]||null,p=Tv(c.match(Sv)[3]||null,!0);c=Number(c.match(Sv)[4]||null)||null;f=l||p||c?f==l&&g==p&&h==c:!0}else f=!0;f?this.dZ(b):this.Nxa()});b.e5(this.Yb,a);0<this.Vw&&M(this.pD,this.Xga,this);this.tL=(new Date).getTime()};q.qea=function(){return new gz};
q.eZ=function(a){try{var b=a.target.ae(),c=(b&&JSON.parse(b)).sessionStatus;if(c){var e=c.externalFieldTransfers[0],f=this.getFile();null==f.bc&&(f.tD(e.bytesTotal),f.e6(!1))}}catch(g){pv(this.Da,"Error while setting file size on success",g)}this.mq(a.target.ae()||"")};q.dZ=function(a){this.handleError(SL(a.target.fc),a.target.Nz())};
q.h5=function(a,b){var c=new bw;this.A().listen(c,Vo,a).listen(c,gh,b);try{var e=this.getFile().Mi;c.send(e,"GET")}catch(f){qv(this.Da,"Error while sending status query",f)}};q.pD=function(){this.Lb.Rb()&&this.h5(y(this.Bma,this),y(this.Ama,this))};q.Nxa=function(){this.h5(y(this.eZ,this),y(this.dZ,this))};
q.Bma=function(a){if(this.Lb.Rb()){try{var b=a.target.ae(),c=JSON.parse(b).sessionStatus.externalFieldTransfers[0],e=c.bytesTransferred,f=this.getFile();if(null==f.bc)if(0<c.bytesTotal)f.tD(c.bytesTotal),f.e6(!0);else{qv(this.Da,"Status query response missing bytes total.");M(this.pD,this.Vw,this);return}var g=f.bc;null!=this.$q&&this.$q.stop(!1);var h=(new Date).getTime();if(0<this.uL||0==this.sk)this.sk=Math.round((e-this.uL)/(h-this.tL));this.uL=e;this.tL=h;var l=this.Vw+this.uS,p=f.Cs,r=Math.round(e+
l*this.sk);r>g&&(r=g,l=Math.round((g-e)/this.sk)+this.uS);this.$q=new qz([p],[r],l,PA);this.A().listen(this.$q,pe,y(function(a){this.On(Math.round(a.x))},this));this.$q.play();K(this.Da,"Status query reports "+Math.round(e/g*100)+"% transferred. Animating from "+Math.round(p/g*100)+"% to "+Math.round(r/g*100)+"% over next "+Math.round(l/1E3)+" seconds. Upload speed is "+this.sk+"KBps")}catch(z){qv(this.Da,"Error while processing status query",z)}this.Lb.Rb()&&M(this.pD,this.Vw,this)}};
q.Ama=function(){qv(this.Da,"Status query reports error.");this.Lb.Rb()&&M(this.pD,this.Vw,this)};q.o=function(){fN.c.o.call(this);G(this.$q)};var gN=function(a){ZM.call(this);this.qI=new L;this.bX=new L;this.pz=new L;this.Cua=new L;this.Fm=a||!1};B(gN,ZM);q=gN.prototype;q.Da=ov("apps.uploader.HtmlFormUploader");q.d0=!1;q.sk=0;q.cB=!1;q.zta=function(a,b,c){this.dispatchEvent(new H(wh));a=new QM(a);c=this.bX.get(c);this.qI.set(a.getId(),c);$z(c.childNodes[0],0,0);this.BU(b);this.dispatchEvent(new H(vh));this.dispatchEvent(new NL(xh,[a]))&&(this.Ax(a),this.dispatchEvent(new NL(ne,[a])))};
q.install=function(a){a&&(this.cB=!0);this.dispatchEvent(new RL(Hp,this));a&&this.BU(a,this.Fm);this.d0=!0;this.dispatchEvent(new RL(Ip,this));a||M(function(){this.Ro(!1)},1,this)};q.yQ=function(a){this.dispatchEvent(new RL(Jp,this));a&&(a=this.pz.get(Rq(a)))&&R(a,!1)};q.xz=function(){return"scotty html form"};q.yq=function(){return this.d0};q.Ez=function(){var a=gN.c.Ez.call(this);return $r(a,function(a){return!this.pqa(a)},this)};q.fx=function(a){a=Rq(this.Et(a));(a=this.pz.get(a))&&R(a,!1)};
q.DM=function(a){this.sk=a.target.sk;gN.c.DM.call(this,a)};q.Ro=function(a){this.Kx&&!this.cB&&(a?this.iy():this.Ax(new QM))};q.OC=function(a){gN.c.OC.call(this,a);this.qI.remove(a.getId());0!=this.Af.length||this.cB||this.Ro(!1)};q.YK=function(){return!0};q.uF=function(a){this.cB&&gN.c.uF.call(this,a)};q.Ts=function(a){var b=this.qI.get(a.getId());return new fN(a,b,this.sk)};q.pqa=function(a){return""==a.getPath()};
q.BU=function(a,b){var c=Rq(a);this.Cua.set(c,a);var e=N(a);U(a,Gp);var f=aA(a),g=["opacity:0","filter:alpha(opacity=0)","font-size:"+f.height+n,"height:"+f.height+n,"position:absolute",fA(a)?"left:0px":"right:0px","top:0px"];b=e.g(Jc,{type:rh,name:"Filedata",size:20,"class":"uploader-upload-input",style:g.join(";"),tabIndex:b?-1:0});this.Qm&&(b.accept=this.Qm.join(","));g=e.g("FORM",{method:Zc,enctype:uk,encoding:uk},b);this.bX.set(c,g);var h=this.pz.get(c);h||(h=e.g(d,{style:il+f.width+Em+f.height+
n}),this.pz.set(c,h),e.kl(h,a),Q(h,tm,be),a.parentNode&&Q(a.parentNode,tm,Mm),Kz(h,Lz(a)));e.append(h,g);this.A().listen(b,tf,function(b){this.zta(this.PCa(b.target.value),a,c)})};q.PCa=function(a){a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12));return a};var lN=function(a,b,c,e,f){var g=new Uint8Array(a);a=hN(g);if(0==a.length)return null;var h=0;D(a,function(a){h+=a.length});var l=0,p=new Uint8Array(h);D(a,function(a){p.set(g.subarray(a.offset,a.offset+a.length),l);if(a.mqa){var h=73==p[l+10],r=iN(p,l+14,h)+10,ea=2+r;for(r=ea+12*jN(p,r,h);ea<r;ea+=12){var qa=jN(p,ea,h);switch(qa){case 256:kN(p,ea+8,e,h);break;case 257:kN(p,ea+8,f,h);break;case 282:case 283:var ac=iN(p,ea+8,h)+10,me=p,Xm=ac,qq=h;var Ic;qa=iN(p,ac,h)/iN(p,ac+4,h)*(282==qa?e/b:f/c);
if(isFinite(qa)&&0==qa%1)qa=[qa,1];else{ac=0>qa;qa=Math.abs(qa);for(var kr=1,HE=1,TQ=0,lr=0;1E7>=lr*(Ic=Math.floor(qa))+HE;){var IE=kr*Ic+TQ;TQ=kr;kr=IE;IE=lr*Ic+HE;HE=lr;lr=IE;Ic=qa-Ic;if(1E-6>Ic)break;qa=1/Ic;if(2147483647<Ic)break}qa=[ac?-kr:kr,lr]}kN(me,Xm,qa[0],qq);kN(me,Xm+4,qa[1],qq);break;case 34665:var mr=iN(p,ea+8,h)+10}}if(mr)for(h=73==p[l+10],ea=2+mr,mr=ea+12*jN(p,mr,h);ea<mr;ea+=12)switch(jN(p,ea,h)){case 40962:kN(p,ea+8,e,h);break;case 40963:kN(p,ea+8,f,h)}}l+=a.length});return p},hN=
function(a){var b=[];if(2>a.byteLength||255!=a[0]||216!=a[1])return[];for(var c=2;c<a.byteLength;){var e=a[c++];if(255!=e)return[];e=a[c++];var f=(a[c]<<8)+a[c+1];switch(e){case 225:var g=a[c+8];b.push({fsa:e,offset:c-2,length:f+2,mqa:69==a[c+2]&&120==a[c+3]&&105==a[c+4]&&102==a[c+5]&&0==a[c+6]&&0==a[c+7]&&g==a[c+9]&&(73==g||77==g)&&42==jN(a,c+10,73==g)});break;case 236:b.push({fsa:e,offset:c-2,length:f+2});break;case 218:return b;case 216:return[];case 217:return[]}c+=f}return b},jN=function(a,b,
c){c=c?1:0;return(a[b+c]<<8)+a[b+1-c]},iN=function(a,b,c){c=c?1:0;return(a[b+3*c]<<24)+(a[b+1+c]<<16)+(a[b+2-c]<<8)+a[b+3-3*c]},kN=function(a,b,c,e){e=e?1:0;a[b+3-3*e]=c&255;a[b+2-e]=c>>8&255;a[b+1+e]=c>>16&255;a[b+3*e]=c>>24&255};var mN=function(a,b){H.call(this,a);this.cf=b};B(mN,H);mN.prototype.getItem=function(){return this.cf};ov("apps.photos.processing.resizer");var nN=function(){F.call(this);this.qM=0;this.jL=new CM;this.G=new jC(this);this.Y(this.G)},oN;B(nN,F);nN.prototype.start=function(a,b){a=new pN(a,b);this.jL.enqueue(a);this.f8();return a};nN.prototype.f8=function(){if(!this.jL.Sb()&&1>this.qM){var a=this.jL.Cm();this.G.listen(a,["b","c","d"],this.Ita);this.qM++;M(y(a.start,a),0)}};nN.prototype.Ita=function(a){if("c"==a.type||"d"==a.type)this.qM--,this.G.removeAll(),M(function(){a.getItem().dispose();this.f8()},0,this)};
var pN=function(a,b){J.call(this);this.Lc=a;this.Ya=b;this.ma=qN++};B(pN,J);var qN=0;q=pN.prototype;q.F=ov("apps.uploader.ImageProcessor.Item");q.yp=!1;q.gb=void 0;q.start=function(){this.dispatchEvent(new mN("b",this));var a=this.un=document.createElement("img");a.onload=y(this.gC,this);a.onerror=y(this.Gta,this);var b=this.Lc;b=pw().createObjectURL(b);a.src=b};q.gC=function(){K(this.F,"Image loaded: "+this.ma);this.Qpa().Zh(this.oD,this).ua(this.mta,this)};
q.mta=function(){if(this.Ya.Vqa()&&this.yp){var a=JM(this.Lc);a.ua(function(a){var b;try{var e=this.Ae();this.wW=(b=lN(a,this.un.width,this.un.height,e.width,e.height))?b:void 0}catch(f){K(this.F,"APP1 extraction failed: "+this.ma+": "+f)}this.oD()},this);a.Zh(this.oD,this)}else this.oD()};q.Gta=function(){K(this.F,"Image load failed: "+this.ma);this.dispatchEvent(new mN("d",this))};q.oD=function(){this.Lc=null;this.dispatchEvent(new mN("c",this))};
q.Qpa=function(){K(this.F,"initializeCanvas_ started: "+this.ma);var a=new Wx(this.un.width,this.un.height);this.Ya.Xoa()&&!a.iz(this.Ya.Ae())&&(a.aw(this.Ya.Ae()).round(),this.yp=!0);if(this.Ya.KNa()){var b=this.Ya.INa()(a);this.yp=!Xx(b,a);a=b}var c=document.createElement("canvas");c.width=a.width;c.height=a.height;b=(new (this.Ya.ENa())).eOa(this.un,c,this.ma);b.ua(function(){this.tp=c.toDataURL("image/jpeg",this.Ya.HNa()/100);this.gb=a},this);b.Zh(function(){this.yp=!1},this);return b};q.Ae=function(){return this.gb};
q.getBlob=function(){K(this.F,"getBlob started: "+this.ma);this.Ya.Vqa()&&!this.yp&&Or("You asked us to preserve EXIF data, but this method would lose them.");if(this.tp&&"data:"==this.tp.substr(0,5)){var a=this.tp.indexOf(",");if(0<a){var b=this.tp.substr(5,a-5).split(";");a=this.tp.substr(a+1);"base64"===b[b.length-1]&&(a=window.atob(a));try{a:{b=a;var c=this.wW,e=a=0,f;if(c){for(f=0;f<b.length;){var g=b.charCodeAt(f++);if(255!=g)break;g=b.charCodeAt(f++);if(216==g)a=e=f;else if(224==g)a=e=f+=((b.charCodeAt(f)&
255)<<8)+(b.charCodeAt(f+1)&255);else{225==g&&(a=f-2,e=f+((b.charCodeAt(f)&255)<<8)+(b.charCodeAt(f+1)&255));break}}if(0==a){var h=null;break a}}var l=c?c.length:0,p=new Uint8Array(b.length+l);f=0;var r;for(r=0;r<a;r++,f++)p[f]=b.charCodeAt(r)&255;for(r=0;r<l;r++,f++)p[f]=c[r]&255;for(r=e;r<b.length;r++,f++)p[f]=b.charCodeAt(r)&255;h=KM(p.buffer)}return h}catch(z){K(this.F,"blobFromData_ failed: "+this.ma+": "+z)}}}return null};
q.o=function(){var a=this.un,b=a.src;a.onload=a.onerror=null;pw().revokeObjectURL(b);delete this.Ya;delete this.un;delete this.tp;delete this.wW};var rN=function(a,b){J.call(this);this.TJ=a;this.VJ=this.Lc=null;this.yk=0;this.NZ=Infinity;this.Pca=b||5E6;this.Kd=null;this.F=ov("goog.crypt.BlobHasher")};B(rN,J);q=rN.prototype;q.hash=function(a){this.abort();this.TJ.reset();this.Lc=a;this.VJ=null;this.yk=0;this.dispatchEvent("started");this.p3()};q.abort=function(){this.Kd&&(this.Kd.abort(),this.Kd=null);this.Lc&&(this.Lc=null,this.dispatchEvent(Yd))};q.Ef=function(){return this.VJ};
q.p3=function(){C(this.Lc,"A hash computation must be in progress.");if(this.yk<this.Lc.size)if(this.NZ<=this.yk)this.dispatchEvent("throttled");else{this.Kd=new FileReader;this.Kd.onload=y(this.Ota,this);this.Kd.onerror=y(this.cC,this);var a=Math.min(Math.min(this.NZ,this.Lc.size)-this.yk,this.Pca),b=LM(this.Lc,this.yk,this.yk+a);b&&b.size==a?this.Kd.readAsArrayBuffer?this.Kd.readAsArrayBuffer(b):this.Kd.readAsBinaryString?this.Kd.readAsBinaryString(b):(pv(this.F,"Failed calling the chunk reader"),
this.cC()):(pv(this.F,"Failed slicing the blob"),this.cC())}else this.VJ=this.TJ.digest(),this.Lc=null,this.dispatchEvent(Gf)};q.Ota=function(){K(this.F,"Successfully loaded a chunk");var a=null;this.Kd.result instanceof Array||v(this.Kd.result)?a=this.Kd.result:t.ArrayBuffer&&t.Uint8Array&&this.Kd.result instanceof ArrayBuffer&&(a=new Uint8Array(this.Kd.result));a?(this.TJ.update(a),this.yk+=a.length,this.Kd=null,this.dispatchEvent(Am),this.p3()):(pv(this.F,"Failed reading the chunk"),this.cC())};
q.cC=function(){this.Lc=this.Kd=null;this.dispatchEvent(gh)};var sN=function(){this.Wd=64;this.Oa=Array(4);this.Qca=Array(this.Wd);this.yE=this.ys=0;this.reset()};B(sN,zM);sN.prototype.reset=function(){this.Oa[0]=1732584193;this.Oa[1]=4023233417;this.Oa[2]=2562383102;this.Oa[3]=271733878;this.yE=this.ys=0};
sN.prototype.Bk=function(a,b){b||(b=0);var c=Array(16);if(v(a))for(var e=0;16>e;++e)c[e]=a.charCodeAt(b++)|a.charCodeAt(b++)<<8|a.charCodeAt(b++)<<16|a.charCodeAt(b++)<<24;else for(e=0;16>e;++e)c[e]=a[b++]|a[b++]<<8|a[b++]<<16|a[b++]<<24;a=this.Oa[0];b=this.Oa[1];e=this.Oa[2];var f=this.Oa[3];var g=a+(f^b&(e^f))+c[0]+3614090360&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[1]+3905402710&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[2]+606105819&4294967295;e=f+(g<<17&4294967295|
g>>>15);g=b+(a^e&(f^a))+c[3]+3250441966&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[4]+4118548399&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[5]+1200080426&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[7]+4249261313&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[8]+1770035416&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[9]+2336552879&4294967295;f=a+(g<<12&4294967295|
g>>>20);g=e+(b^f&(a^b))+c[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[11]+2304563134&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(f^b&(e^f))+c[12]+1804603682&4294967295;a=b+(g<<7&4294967295|g>>>25);g=f+(e^a&(b^e))+c[13]+4254626195&4294967295;f=a+(g<<12&4294967295|g>>>20);g=e+(b^f&(a^b))+c[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=b+(a^e&(f^a))+c[15]+1236535329&4294967295;b=e+(g<<22&4294967295|g>>>10);g=a+(e^f&(b^e))+c[1]+4129170786&4294967295;a=b+(g<<
5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[6]+3225465664&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[0]+3921069994&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[5]+3593408605&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[10]+38016083&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[4]+3889429448&4294967295;b=
e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[9]+568446438&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[14]+3275163606&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[8]+1163531501&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(e^f&(b^e))+c[13]+2850285829&4294967295;a=b+(g<<5&4294967295|g>>>27);g=f+(b^e&(a^b))+c[2]+4243563512&4294967295;f=a+(g<<9&4294967295|g>>>23);g=e+(a^b&(f^a))+c[7]+1735328473&4294967295;
e=f+(g<<14&4294967295|g>>>18);g=b+(f^a&(e^f))+c[12]+2368359562&4294967295;b=e+(g<<20&4294967295|g>>>12);g=a+(b^e^f)+c[5]+4294588738&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[8]+2272392833&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[14]+4259657740&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[1]+2763975236&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[4]+1272893353&4294967295;f=a+(g<<11&4294967295|
g>>>21);g=e+(f^a^b)+c[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[10]+3200236656&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[13]+681279174&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[0]+3936430074&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[6]+76029189&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(b^e^f)+c[9]+3654602809&4294967295;a=b+(g<<4&4294967295|g>>>28);g=f+(a^b^e)+c[12]+
3873151461&4294967295;f=a+(g<<11&4294967295|g>>>21);g=e+(f^a^b)+c[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=b+(e^f^a)+c[2]+3299628645&4294967295;b=e+(g<<23&4294967295|g>>>9);g=a+(e^(b|~f))+c[0]+4096336452&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[7]+1126891415&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[5]+4237533241&4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[12]+1700485571&
4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[3]+2399980690&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[1]+2240044497&4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[8]+1873313359&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[15]+4264355552&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[13]+1309151649&
4294967295;b=e+(g<<21&4294967295|g>>>11);g=a+(e^(b|~f))+c[4]+4149444226&4294967295;a=b+(g<<6&4294967295|g>>>26);g=f+(b^(a|~e))+c[11]+3174756917&4294967295;f=a+(g<<10&4294967295|g>>>22);g=e+(a^(f|~b))+c[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=b+(f^(e|~a))+c[9]+3951481745&4294967295;this.Oa[0]=this.Oa[0]+a&4294967295;this.Oa[1]=this.Oa[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;this.Oa[2]=this.Oa[2]+e&4294967295;this.Oa[3]=this.Oa[3]+f&4294967295};
sN.prototype.update=function(a,b){u(b)||(b=a.length);for(var c=b-this.Wd,e=this.Qca,f=this.ys,g=0;g<b;){if(0==f)for(;g<=c;)this.Bk(a,g),g+=this.Wd;if(v(a))for(;g<b;){if(e[f++]=a.charCodeAt(g++),f==this.Wd){this.Bk(e);f=0;break}}else for(;g<b;)if(e[f++]=a[g++],f==this.Wd){this.Bk(e);f=0;break}}this.ys=f;this.yE+=b};
sN.prototype.digest=function(){var a=Array((56>this.ys?this.Wd:2*this.Wd)-this.ys);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.yE;for(b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var e=0;32>e;e+=8)a[c++]=this.Oa[b]>>>e&255;return a};var tN=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};tN.prototype.clone=function(){return new tN(this.start,this.end)};tN.prototype.toString=function(){return"["+this.start+", "+this.end+"]"};var uN=function(a){UL.call(this,a);this.request=null;this.NN=0;this.oa=xg;this.ng=null;this.MF=!1;this.Zw=null};B(uN,UL);q=uN.prototype;q.Da=ov("apps.uploader.net.ResumableFileIo");q.rya=function(a){this.MF=a};q.nl=function(){return"paused"==this.oa};q.abort=function(){this.OR();this.oa=xg};q.OR=function(){K(this.Da,"aborting...");this.m9();this.request&&(this.request.abort(),this.request=null)};
q.or=function(a){var b=new L;b.set("X-HTTP-Method-Override","PUT");b.set("Content-Type",re);b.set("X-GUploader-No-308","yes");var c=this.getFile().bc,e=this.getFile().Cs,f=Math.min(e+104857600,c)-1,g=c?new tN(e,f):null;e<=f&&(0!=e||f!=c-1)&&b.set("Content-Range","bytes "+e+"-"+f+"/"+c);this.jw(a,b,g);this.oa=qp};q.pause=function(){if(this.oa==xg)throw Error("Cannot pause an upload that is not started");this.OR();this.oa="paused";K(this.Da,"Paused file "+this.getFile())};
q.resume=function(){if(!this.nl())throw Error("Cannot resume an upload that is not paused");this.ng=null;this.KN();K(this.Da,"Manually resuming file "+this.getFile())};q.zxa=function(a,b){this.m9();this.Zw=M(function(){this.Zw=null;a.call(this)},b,this)};q.m9=function(){null!=this.Zw&&(Rv(this.Zw),this.Zw=null)};
q.KN=function(){this.request=new bw;this.A().listen(this.request,Hm,this.pZ);this.oa=Fm;K(this.Da,"Sending query request.");this.request.send(this.getFile().Mi,Zc,"",{"X-HTTP-Method-Override":"PUT","Content-Range":"bytes */"+this.getFile().bc})};q.pZ=function(){switch(this.ika()){case 1:case 2:case 3:case 0:break;case 4:this.EJ();break;default:this.handleError(jh,"Unknown request state")}};
q.EJ=function(){var a=this.jka();this.vAa(a);var b=this.mY(),c=this.kka();switch(b){case 308:this.Bna();break;case 200:this.mq(a);break;case 408:case 500:case 502:case 503:case 504:this.MF?(rv(this.Da,"Handling retryable HTTP "+b+" error"),this.qZ()):this.handleError(Dk,c);break;default:this.handleError(Dk,c)}};q.qZ=function(){switch(this.oa){case qp:this.KN();break;case Fm:this.YS(y(this.KN,this));break;default:this.handleError(jh,"Illegal state while handling retryable error")}};
q.Bna=function(){rv(this.Da,"Handling 308 (Resume Incomplete)");var a=!1,b=this.lY("Range");if(b){var c=/^bytes=(\d+)-(\d+)$/.exec(b);c||this.handleError(ln,"Illegal Range header: "+b);b=Number(c[2]);b>=this.NN&&(this.ng=null,a=!0);this.NN=b+1;this.On(b+1)}else this.NN=0,this.On(0);a?this.or(this.Oz()):this.YS(y(this.or,this,this.Oz()))};
q.YS=function(a){null==this.ng?(this.ng=5E3,this.dispatchEvent(df)):(this.ng*=2,6E4<=this.ng&&(this.ng=6E4));rv(this.Da,"Backoff for "+this.ng/1E3+" s");this.zxa(a,this.ng)};q.mq=function(a){uN.c.mq.call(this,a);this.oa=xg;this.ng=null};q.handleError=function(a,b){uN.c.handleError.call(this,a,b);this.oa=xg;this.ng=null};q.ika=function(){return this.request.$m()};q.lY=function(a){return this.request.getResponseHeader(a)||null};q.jka=function(){return this.request.ae()};
q.mY=function(){try{var a=this.lY("X-HTTP-Status-Code-Override")}catch(b){a=null}a=parseInt(a,10);return isFinite(a)?a:this.request.Ij()};q.kka=function(){return this.request.xY()};var vN=function(a,b){UL.call(this,a);this.Lc=b};B(vN,UL);q=vN.prototype;q.Da=ov("apps.uploader.net.XhrFileIo");q.Lb=null;q.or=function(a){var b=this.Oea();this.Lb=b;this.A().listen(b,Vo,function(){this.mq(b.ae())}).listen(b,gh,function(){this.handleError(SL(b.fc),b.Nz())}).listen(b,Am,function(a){this.On(a.bd.loaded)});b.send(a,Zc,this.Lc,{"Content-Type":this.Lc.type||re})};q.abort=function(){this.Lb.abort()};q.Oea=function(){return new wN};var wN=function(){bw.call(this);this.G=new jC(this)};
B(wN,bw);wN.prototype.LG=function(){var a=wN.c.LG.call(this);this.G.listen(a.upload,Am,this.dispatchEvent);return a};wN.prototype.o=function(){wN.c.o.call(this);G(this.G)};var xN=function(a,b){uN.call(this,a);this.Lc=b;this.um=null};B(xN,uN);q=xN.prototype;q.Da=ov("apps.uploader.net.ResumableXhrFileIo");q.jw=function(a,b,c){this.request=new wN;var e=c?c.start:0;this.A().listen(this.request,Hm,this.pZ).listen(this.request,Am,function(a){this.On(e+a.bd.loaded)});var f=this.Lc;c&&(f=LM(this.Lc,c.start,c.end+1),C(f),K(this.Da,"Sending partial blob: "+c));this.request.send(a,Zc,f,b)};
q.EJ=function(){0==this.mY()?this.MF?(rv(this.Da,"Handling retryable network error"),this.qZ()):this.handleError(Dk,"network error"):xN.c.EJ.call(this)};q.abort=function(){this.um&&this.um.abort();xN.c.abort.call(this)};q.dU=function(a,b){var c=new sN;this.um=new rN(c);var e=this;I(this.um,Gf,function(){var a=e.um.Ef();e.um=null;b(vM(a))});a=LM(this.Lc,0,a);C(a);this.um.hash(a)};var yN=function(a){if(0==a.length)return null;for(var b={},c=[],e=[],f=0;f<a.length;f++){var g=a[f],h=g.getPath(),l=h.substring(0,h.indexOf("/"));if(0==l.length)e.push(g);else{var p=b[l];p||(p=new SM(l),b[l]=p,c.push(p));h=h.substring(0,h.lastIndexOf("/"));g.tAa(h);h=h.split("/");for(l=1;l<h.length;l++){var r=h[l],z=p.Mia(r);z||(z=new SM(r,void 0,h.slice(0,l).join("/")),p.addEntry(z));p=z}p.addEntry(g)}}for(f=0;f<c.length;f++)c[f].eU();return c.concat(e)};var zN=function(a,b){ZM.call(this);this.yn=new L;this.Sq=new L;this.JM=new LG;this.N2=Wq(this.Ro,!1);this.o_=new nN;this.Y(this.o_);this.nB=a||!1;this.Fm=b||!1};B(zN,ZM);q=zN.prototype;q.F=ov("apps.uploader.XhrUploader");q.eo=!1;q.zr=function(a){zN.c.zr.call(this,a);this.yn.forEach(function(a){a&&(this.uv?a.multiple=sp:a.removeAttribute("multiple"))},this)};q.VN=function(a){zN.c.VN.call(this,a);this.yn.forEach(function(a){a&&(this.St()?a.webkitdirectory=sp:a.removeAttribute("webkitdirectory"))},this)};
q.Cba=function(a,b,c,e){if(ks(a))return b||this.dispatchEvent(new H(vh)),[];this.eo&&this.iy();var f=as(a,function(a){var b=this.St()?a.webkitRelativePath||a.relativePath||a.name:a.name||a.fileName;return new QM(b,a.size||a.fileSize,void 0,void 0,a.lastModifiedDate&&a.lastModifiedDate.getTime(),a.type)},this);e&&this.St()&&D(e,function(a){f.push(new QM(a+"."))});D(f,function(b,e){b=this.yd(b);b.blob=a[e];c&&(b.oqa=!0)},this);this.St()&&(f=yN(f));this.pS&&xs(f,function(a,b){a=a.getName();b=b.getName();
return dr(a,b,/\d+|\.\d+|\D+/g)});if(!b&&(this.dispatchEvent(new H(vh)),!this.dispatchEvent(new NL(xh,f))))return[];D(f,function(a){this.Ax(a)},this);b||this.dispatchEvent(new NL(ne,f));return f};q.install=function(a){if(!a)throw Error(jl);this.dispatchEvent(new RL(Hp,this));this.PF(a,this.nB,this.Fm)};q.yQ=function(a){if(!a)throw Error(jl);this.dispatchEvent(new RL(Jp,this));this.fx(a)};q.xz=function(){return this.$u()?"scotty xhr resumable":"scotty xhr non-resumable"};q.yq=function(){return!0};
q.Y_=function(){return void 0!=(this.Fz()||my(Jc,{type:rh})).webkitdirectory};q.$u=function(){return!!File.prototype.slice||!!File.prototype.webkitSlice&&!At||!!File.prototype.mozSlice};q.p0=function(){return this.$u()};q.Ts=function(a){var b=a.kca||this.yd(a).blob;C(b);return this.$u()?(a=new xN(a,b),a.rya(!0),a):new vN(a,b)};q.Ro=function(a){this.Kx&&(this.eo=a||this.eo,this.Fz().click())};
q.fx=function(a){var b=Rq(this.Et(a));Nq(this.Aq)&&this.Aq()?(this.A().ta(a,this.Vu(a)?Bf:k,this.N2),this.JM.remove(b)):(a=this.yn.get(b))&&R(a.parentNode,!1);this.yn.remove(b)};q.bh=function(a){var b=y(zN.c.bh,this,a),c=this.BX(a);a:{if(!u(oN)){oN=!1;try{if(NM()&&document.createElement("canvas").getContext){pw().revokeObjectURL("");var e=oN=!0;break a}}catch(f){}}e=oN}e&&c&&a.bc>=this.K1?(e=this.yd(a).blob,c=this.o_.start(e,c),this.A().listen(c,["b","c","d"],y(this.tma,this,a,b))):b()};q.YK=function(){return!0};
q.nl=function(a){return this.Uk(a)!=qp?!1:(a=this.HX(a))&&a.nl&&a.nl()};q.o=function(){zN.c.o.call(this);Rv(this.Aba)};q.FY=function(){return this.$u()?1:0};q.Fz=function(){return this.yn.nb()[0]};q.Aq=function(){return zt||E&&Qt(10)||yt&&Qt(12)};
q.Bba=function(a,b){a=P(a);this.Sq.set(Rq(a),a);var c=null,e=N(a);if(Nq(this.Aq)&&this.Aq()&&!this.Fz())c=e.g(Jc,{type:rh,style:"height:0;visibility:hidden;position:absolute"}),this.Qm&&(c.accept=this.Qm.join(",")),e.kl(c,a);else{U(a,Gp);var f=aA(a);c=e.g(Jc,{type:rh,style:"opacity:0;font-size:"+f.height+Em+f.height+"px;position:absolute;right:0px;top:0px",tabIndex:b?-1:0});this.Qm&&(c.accept=this.Qm.join(","));b=e.g(d,{style:il+f.width+Em+f.height+n},c);e.kl(b,a);Q(b,tm,be);Q(a.parentNode,tm,Mm);
Kz(b,Lz(a))}c&&(this.yn.set(Rq(a),c),this.A().listen(c,tf,function(){this.dispatchEvent(new H(wh));this.Cba(c.files);c.value=""}))};q.PF=function(a,b,c){var e=this.Et(a),f=Rq(e);if(Nq(this.Aq)&&this.Aq()&&(!this.JM.contains(f)&&b&&(this.A().listen(a,this.Vu(a)?Bf:k,this.N2),this.JM.add(f)),this.Fz()))return;(a=this.yn.get(f))?R(a.parentNode,!0):this.Aba=M(function(){this.Bba(e,c);this.aEa();this.dispatchEvent(new RL(Ip,this))},void 0,this)};q.aEa=function(){this.zr(this.uv);this.VN(this.St())};
q.tma=function(a,b,c){var e=c.getItem();switch(c.type){case "b":this.dispatchEvent(new OL(uh,a));break;case "c":case "d":"c"==c.type&&(e.yp&&a.p5(e.getBlob()),this.dispatchEvent(new OL(th,a))),this.LDa(e),b()}};q.LDa=function(a){this.A().ta(a,["b","c","d"])};var AN=function(a){J.call(this);if(ar(Ar(a)))throw Error("sessionServerUrl can't be empty");this.pr=a;this.fj=[];this.lb=null;this.kx=void 0;this.jz=!1;if(0<=Fs.indexOf("Firefox/2.")){var b=window.location;b instanceof Ty||(b=bz(b));a instanceof Ty||(a=bz(a));b.resolve(a)}!uv.FG().upload||yt&&!Qt("1.9.2")||this.fj.push("XHR");LL&&(!Dt&&0<=Er(ML,"10")||0<=Er(ML,"11"))&&this.fj.push("FLASH");this.fj.push(Ec);K(this.F,"Available mechanisms: "+this.fj)};B(AN,J);q=AN.prototype;q.F=ov("apps.uploader.UploadManager2");
q.dka=function(){return this.fj[0]};
q.dxa=function(a,b){K(this.F,"Restricting mechanisms to: "+a);if(!a)throw Error("allowedMechanisms must be defined");x(a)||(a=[a]);if(ks(a))throw Error("allowedMechanisms must not be empty");D(a,function(a){if(!this.Cqa(a))throw Error("Unknown upload mechanism: "+a);},this);b=b?$r(a,function(a){return is(this.fj,a)},this):$r(this.fj,function(b){return is(a,b)});if(ks(b))throw new BN("No allowed mechanism is currently available");this.fj=b;K(this.F,"Available mechanisms now: "+b)};
q.Cqa=function(a){return Ss(CN,a)};q.Aza=function(a,b){this.iha=a;this.Fm=b};q.pBa=function(a,b,c){this.eFa=a;this.dFa=b;this.Fm=c};
q.RU=function(a){var b=null,c=this.dka();c?K(this.F,"Creating uploader for mechanism "+c):K(this.F,"No mechanisms left to create an uploader");switch(c){case "XHR":this.lb=new zN(this.dFa,this.Fm);b=this.eFa;break;case "FLASH":this.Yga&&(b=this.Yga,b instanceof Dw?bN=b:(b=Mw(Pw(b)),bN=yE(b)));this.lb=new aN;this.kz&&this.lb.mza(this.kz);this.lb.nza(this.jz);b=this.CNa;break;case Ec:this.lb=new gN(this.Fm);b=this.iha;break;default:this.lb=null}if(!this.lb)return a&&a(null),null;this.lb.Sl(this);b=
P(b);a&&(this.kx=a,I(this.lb,["appletfailedtoload","uploaderwithoutpermission","applettimedout","appletfailedtoinitialize"],y(this.Uma,this,c,b)),I(this.lb,Ip,y(this.Vma,this,c,b)));this.lb.install(b);this.lb.JAa(this.pr);Gq(this.Lx)&&this.lb.lya(this.Lx);this.LEa&&this.lb.mBa(this.LEa);return a?null:this.lb};q.Vma=function(a,b,c){c.H9==this.lb&&this.kx&&(this.kx(this.lb),this.kx=void 0)};q.Uma=function(a,b,c){c.H9==this.lb&&(this.lb.yQ(b),os(this.fj,a),this.RU(this.kx))};
var CN={mHa:"FLASH",THa:Ec,bNa:"XHR"},BN=function(){};B(BN,Error);var DN=new DL("apps.uploader");DN.U(!1);w("apps.uploader.showDebugWindow",function(){DN.U(!0)},void 0);var EN=function(a){var b=null;try{b=a.cssRules||a.rules}catch(c){if(15==c.code)throw c.styleSheet=a,c;}return b},FN=function(a,b){var c=[];a=a||document.styleSheets;b=u(b)?b:!1;if(a.imports&&a.imports.length)for(var e=0,f=a.imports.length;e<f;e++)ss(c,FN(a.imports[e]));else if(a.length)for(e=0,f=a.length;e<f;e++)ss(c,FN(a[e]));else{var g=EN(a);if(g&&g.length){e=0;f=g.length;for(var h;e<f;e++)h=g[e],h.styleSheet&&ss(c,FN(h.styleSheet))}}!(a.type||a.rules||a.cssRules)||a.disabled&&!b||c.push(a);return c},
GN=function(a,b){b=b||N();var c=b.K(),e=b.createElement("STYLE");e.type="text/css";b.getElementsByTagName("HEAD")[0].appendChild(e);e.styleSheet?e.styleSheet.cssText=a:e.appendChild(c.createTextNode(a));return e};var HN=function(){if(!E)return!1;try{return new ActiveXObject(Tc),!0}catch(a){return!1}},IN=E&&HN();var JN=function(){J.call(this);this.Tb=[];this.dg=[];this.cw=[];this.ed=this.dL=this.aL=!1};B(JN,J);q=JN.prototype;q.yq=function(){return this.ed};q.zF=function(a){this.dg.push(a);this.aL=a.dL=!0};q.A6=function(a){this.hD=a};q.init=function(){if(!this.ed){for(var a,b=0;a=this.Tb[b];b++)this.w_(a);this.ed=!0}};q.w_=function(a){this.aL&&(I(a.element,nk,a.N1,!1,a),this.NP&&U(C(a.element),this.NP));this.dL&&this.hQ&&U(C(a.element),this.hQ)};
q.PV=function(a){this.aL&&(Vu(a.element,nk,a.N1,!1,a),this.NP&&dC(C(a.element),this.NP));this.dL&&this.hQ&&dC(C(a.element),this.hQ);a.dispose()};q.kwa=function(){for(var a,b=0;a=this.Tb[b];b++)this.PV(a);this.Tb.length=0};
q.Tw=function(a,b){if(!this.wf)if(this.wf=b,0==this.dispatchEvent(new KN(Sg,this,this.wf,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)))this.wf=null;else{b=b.Ys;this.ot=this.yU(b);var c=Zx(b);c.body.appendChild(this.ot);this.ud=this.kea(b,this.ot,a);this.ud.A6(this.hD);I(this.ud,"drag",this.Q1,!1,this);I(this.ud,eh,this.Pm,!1,this);I(c.body,"selectstart",this.B8);this.Iva();this.Jva();this.bj=null;this.Ipa();this.ud.Tw(a);a.preventDefault()}};
q.Iva=function(){this.Wr=[];for(var a,b=0;a=this.dg[b];b++)for(var c,e=0;c=a.Tb[e];e++)this.wba(a,c);this.mk||(this.mk=new Bz(0,0,0,0))};q.Jva=function(){var a,b;for(b=0;a=this.cw[b];b++){a.vG=[];a.I4=a.D.scrollLeft;a.J4=a.D.scrollTop;var c=Pz(a.D);var e=aA(a.D);a.Yc=new Bz(c.y,c.x+e.width,c.y+e.height,c.x)}for(b=0;e=this.Wr[b];b++)for(c=0;a=this.cw[c];c++)Ey(a.D,e.D)&&(a.vG.push(e),e.bw=a)};q.kea=function(a,b,c){a=this.CX(a,b,c);b.style.position=be;b.style.left=a.x+n;b.style.top=a.y+n;return new nC(b)};
q.Pm=function(a){var b=a.Ofa?null:this.bj;if(b&&b.ab){var c=a.clientX,e=a.clientY,f=this.oY(),g=c+f.x;f=e+f.y;var h;this.Xw&&(h=this.Xw(b.cf,b.Yc,g,f));this.dispatchEvent(new KN("drag",this,this.wf,b.ab,b.cf,b.D,c,e,g,f));b.ab.dispatchEvent(new KN("drop",this,this.wf,b.ab,b.cf,b.D,c,e,g,f,h,a.TF))}this.dispatchEvent(new KN("dragend",this,this.wf,b?b.ab:void 0,b?b.cf:void 0,b?b.D:void 0));Vu(this.ud,"drag",this.Q1,!1,this);Vu(this.ud,eh,this.Pm,!1,this);a=Zx(this.wf.Ys);Vu(a.body,"selectstart",this.B8);
this.eca(this.bj?this.bj.cf:null)};q.eca=function(){this.Ifa()};q.Ifa=function(){this.Jfa();this.ud.dispose();xy(this.ot);delete this.wf;delete this.ot;delete this.ud;delete this.Wr;delete this.bj};
q.Q1=function(a){var b=this.Nia(a),c=b.x,e=b.y,f=this.bj;this.dispatchEvent(new KN("drag",this,this.wf,f?f.ab:void 0,f?f.cf:void 0,f?f.D:void 0,a.clientX,a.clientY,c,e));var g;if(f){this.Xw&&f.ab&&(g=this.Xw(f.cf,f.Yc,c,e));if(f.Yc.contains(b)&&g==this.XR)return;f.ab&&(this.dispatchEvent(new KN(Qg,this,this.wf,f.ab,f.cf,f.D)),f.ab.dispatchEvent(new KN(Qg,this,this.wf,f.ab,f.cf,f.D,void 0,void 0,void 0,void 0,this.XR)));this.XR=g;this.bj=null}this.mk.contains(b)&&((f=this.bj=this.Ika(b))&&f.ab?(this.Xw&&
(g=this.Xw(f.cf,f.Yc,c,e)),b=new KN(Rg,this,this.wf,f.ab,f.cf,f.D),b.$Ca=g,this.dispatchEvent(b),f.ab.dispatchEvent(new KN(Rg,this,this.wf,f.ab,f.cf,f.D,a.clientX,a.clientY,void 0,void 0,g))):f||(this.bj=this.ksa(c,e)))};q.B8=function(){return!1};q.Ipa=function(){var a,b;for(b=0;a=this.cw[b];b++)I(a.D,bn,this.hU,!1,this)};q.Jfa=function(){for(var a=0,b;b=this.cw[a];a++)Vu(b.D,bn,this.hU,!1,this),b.vG=[]};
q.hU=function(a){for(var b=0,c;c=this.cw[b];b++)if(a.target==c.D){var e=c.J4-c.D.scrollTop,f=c.I4-c.D.scrollLeft;c.J4=c.D.scrollTop;c.I4=c.D.scrollLeft;this.xf&&this.bj==this.xf&&(0<e?this.xf.Yc.top+=e:this.xf.Yc.bottom+=e,0<f?this.xf.Yc.left+=f:this.xf.Yc.right+=f);for(var g=0,h;h=c.vG[g];g++)h=h.Yc,h.top+=e,h.left+=f,h.bottom+=e,h.right+=f,this.mT(h)}this.ud.jC(a)};q.yU=function(a){a=this.iea(a);C(a);this.Pfa&&U(a,this.Pfa);return a};
q.CX=function(a){var b=Pz(a);a=oA(a);b.x-=2*(a.left||0);b.y-=2*(a.top||0);return b};q.Eda=function(a){a:{for(var b=a.cloneNode(!0),c=$x(yd,a),e=$x(yd,b),f=0;f<c.length;f++)e[f].value=c[f].value;switch(a.tagName){case zd:a=my(vd,null,my(wd,null,b));break a;case xd:case "TH":a=my(vd,null,my(wd,null,my(zd,null,b)));break a;case yd:b.value=a.value;default:a=b}}return a};q.iea=function(a){return this.Eda(a)};
q.wba=function(a,b){for(var c=b.Gia(),e=0;e<c.length;e++){var f=c[e],g=this.Kia(b,f);this.Wr.push(new LN(g,a,b,f));this.mT(g)}};q.Kia=function(a,b){a=Pz(b);b=aA(b);return new Bz(a.y,a.x+b.width,a.y+b.height,a.x)};q.mT=function(a){if(1==this.Wr.length)this.mk=new Bz(a.top,a.right,a.bottom,a.left);else{var b=this.mk;b.left=Math.min(a.left,b.left);b.right=Math.max(a.right,b.right);b.top=Math.min(a.top,b.top);b.bottom=Math.max(a.bottom,b.bottom)}};
q.ksa=function(a,b){this.xf||(this.xf=new LN(this.mk.clone()));var c=this.xf.Yc;c.top=this.mk.top;c.right=this.mk.right;c.bottom=this.mk.bottom;c.left=this.mk.left;for(var e=0,f;f=this.Wr[e];e++){var g=f.Yc;f.bw&&(f=f.bw.Yc,g=new Bz(Math.max(g.top,f.top),Math.min(g.right,f.right),Math.min(g.bottom,f.bottom),Math.max(g.left,f.left)));f=null;a>=g.right?f=g.right>c.left?g.right:c.left:a<g.left&&(f=g.left<c.right?g.left:c.right);var h=null;b>=g.bottom?h=g.bottom>c.top?g.bottom:c.top:b<g.top&&(h=g.top<
c.bottom?g.top:c.bottom);null===f||null===h||(Math.abs(f-a)>Math.abs(h-b)?h=null:f=null);null!==f?f<=a?c.left=f:c.right=f:null!==h&&(h<=b?c.top=h:c.bottom=h)}return 10<=(c.right-c.left)*(c.bottom-c.top)?this.xf:null};q.Ika=function(a){for(var b,c=0;b=this.Wr[c];c++)if(b.Yc.contains(a))if(b.bw){if(b.bw.Yc.contains(a))return b}else return b;return null};q.oY=function(){return N(this.ot).Df()};q.Nia=function(a){var b=this.oY();return new Tx(a.clientX+b.x,a.clientY+b.y)};
q.o=function(){JN.c.o.call(this);this.kwa()};var KN=function(a,b,c,e,f,g,h,l,p,r,z,O){H.call(this,a);this.sh=c;this.Jk=f;this.clientX=h;this.clientY=l;this.$Ca=z;this.TF=O};B(KN,H);var MN=function(a,b){J.call(this);this.element=P(a);this.data=b;this.ea=null;this.G=new jC(this);this.Y(this.G);this.Ys=null;if(!this.element)throw Error("Invalid argument");};B(MN,J);q=MN.prototype;q.getData=function(){return this.data};q.OI=function(a){return a};q.Gia=function(){return[this.element]};
q.N1=function(a){if(a.Yu()){var b=this.OI(a.target);b&&this.tsa(a,b)}};q.Ea=function(a){this.ea=a};q.tsa=function(a,b){this.G.listen(b,ok,this.O1,!1).listen(b,pk,this.O1,!1);var c=Zx(b);this.G.listen(c,rk,this.Isa,!0);this.Ys=b;this.RP=new Tx(a.clientX,a.clientY)};q.O1=function(a){var b=this.Ys;b=a.type==pk&&a.target==b;if(5<Math.abs(a.clientX-this.RP.x)+Math.abs(a.clientY-this.RP.y)||b)this.G.removeAll(),this.ea.Tw(a,this);a.preventDefault()};
q.Isa=function(){this.G.removeAll();delete this.RP;this.Ys=null};var LN=function(a,b,c,e){this.Yc=a;this.ab=b;this.cf=c;this.D=e||null;this.bw=null};var NN=function(){JN.call(this)};B(NN,JN);NN.prototype.sc=function(a,b){a=new MN(a,b);this.tF(a)};NN.prototype.tF=function(a){a.Ea(this);this.Tb.push(a);this.yq()&&this.w_(a)};NN.prototype.removeItem=function(a){a=P(a);for(var b,c=0;b=this.Tb[c];c++)if(b.element==a){this.Tb.splice(c,1);this.PV(b);break}};NN.prototype.setSelection=function(){};var ON=function(){J.call(this)};B(ON,J);q=ON.prototype;q.qb=0;q.Jh=0;q.zi=100;q.ni=0;q.VP=1;q.Tj=!1;q.iM=!1;q.setValue=function(a){a=this.Zv(a);this.qb!=a&&(this.qb=a+this.ni>this.zi?this.zi-this.ni:a<this.Jh?this.Jh:a,this.Tj||this.iM||this.dispatchEvent(tf))};q.getValue=function(){return this.Zv(this.qb)};
q.JD=function(a){if(this.Jh!=a){var b=this.Tj;this.Tj=!0;this.Jh=a;a+this.ni>this.zi&&(this.ni=this.zi-this.Jh);a>this.qb&&this.setValue(a);a>this.zi&&(this.ni=0,this.HD(a),this.setValue(a));(this.Tj=b)||this.iM||this.dispatchEvent(tf)}};q.Sz=function(){return this.Zv(this.Jh)};
q.HD=function(a){a=this.Zv(a);if(this.zi!=a){var b=this.Tj;this.Tj=!0;this.zi=a;a<this.qb+this.ni&&this.setValue(a-this.ni);a<this.Jh&&(this.ni=0,this.JD(a),this.setValue(this.zi));a<this.Jh+this.ni&&(this.ni=this.zi-this.Jh);(this.Tj=b)||this.iM||this.dispatchEvent(tf)}};q.Rz=function(){return this.Zv(this.zi)};q.Zv=function(a){return null==this.VP?a:this.Jh+Math.round((a-this.Jh)/this.VP)*this.VP};var PN=function(a){V.call(this,a);this.Hl=new ON;I(this.Hl,tf,this.Bla,!1,this)};B(PN,V);var QN={vertical:"progress-bar-vertical",horizontal:"progress-bar-horizontal"};q=PN.prototype;q.g=function(){this.eg=this.OU();this.Na(this.j().g(d,QN[this.Sc],this.eg));this.d7();this.n6();this.l6()};q.B=function(){PN.c.B.call(this);this.$o();this.pf();var a=this.b();C(a,Gd);MB(a,"progressbar");T(a,Mj,rm)};q.Pa=function(){PN.c.Pa.call(this);this.rj()};q.OU=function(){return this.j().g(d,Bm)};
q.$o=function(){E&&7>Ot&&I(this.b(),Om,this.pf,!1,this)};q.rj=function(){E&&7>Ot&&Vu(this.b(),Om,this.pf,!1,this)};q.Ka=function(a){PN.c.Ka.call(this,a);U(C(this.b()),QN[this.Sc]);a=by(null,Bm,this.b())[0];a||(a=this.OU(),this.b().appendChild(a));this.eg=a};q.getValue=function(){return this.Hl.getValue()};q.setValue=function(a){this.Hl.setValue(a);this.b()&&this.d7()};q.d7=function(){var a=this.b();C(a,Gd);T(a,Sp,this.getValue())};q.Sz=function(){return this.Hl.Sz()};
q.JD=function(a){this.Hl.JD(a);this.b()&&this.n6()};q.n6=function(){var a=this.b();C(a,Gd);T(a,"valuemin",this.Sz())};q.Rz=function(){return this.Hl.Rz()};q.HD=function(a){this.Hl.HD(a);this.b()&&this.l6()};q.l6=function(){var a=this.b();C(a,Gd);T(a,"valuemax",this.Rz())};q.Sc=Ci;q.Bla=function(){this.pf();this.dispatchEvent(tf)};
q.pf=function(){if(this.eg){var a=this.Sz(),b=this.Rz();a=(this.getValue()-a)/(b-a);b=Math.round(100*a);this.Sc==Up?E&&7>Ot?(this.eg.style.top="0",this.eg.style.height=kb,b=this.eg.offsetHeight,a=Math.round(a*b),this.eg.style.top=b-a+n,this.eg.style.height=a+n):(this.eg.style.top=100-b+"%",this.eg.style.height=b+"%"):this.eg.style.width=b+"%"}};q.Upa=function(){var a=this.eg.style;this.Sc==Up?(a.left="0",a.width=kb):(a.top=a.left="0",a.height=kb)};
q.setOrientation=function(a){if(this.Sc!=a){var b=QN[this.Sc],c=QN[a];this.Sc=a;if(a=this.b())bC(a,b)&&(dC(a,b),U(a,c)),this.Upa(),this.pf()}};q.o=function(){this.rj();PN.c.o.call(this);this.eg=null;this.Hl.dispose()};var RN=function(){};B(RN,rD);Kq(RN);RN.prototype.g=function(a){return a.j().g(d,this.Zd(a).join(" ")+fa,"\u00a0")};RN.prototype.R=function(a,b){b=RN.c.R.call(this,a,b);C(b);U(b,Xh);return b};RN.prototype.S=function(){return oi};var SN=function(){this.rm="toolbar"};B(SN,aD);Kq(SN);SN.prototype.Xt=function(a){return"HR"==a.tagName?new sD(RN.H()):SN.c.Xt.call(this,a)};SN.prototype.S=function(){return"goog-toolbar"};SN.prototype.vX=function(){return Ci};var TN=function(a,b,c){mD.call(this,b,a||SN.H(),c)};B(TN,mD);TN.prototype.Be=function(a){TN.c.Be.call(this,a);this.NB||this.Hu()};var UN=function(){};B(UN,RD);Kq(UN);UN.prototype.S=function(){return li};var VN=function(a,b,c){QD.call(this,a,b||UN.H(),c)};B(VN,QD);ZC(li,function(){return new VN(null)});var WN=function(a,b,c,e,f){this.Xf=!!b;this.node=null;this.Th=0;this.n8=!1;this.fU=!c;a&&this.setPosition(a,e);this.depth=void 0!=f?f:this.Th||0;this.Xf&&(this.depth*=-1)};B(WN,dv);q=WN.prototype;q.setPosition=function(a,b,c){if(this.node=a)this.Th=Hq(b)?b:1!=this.node.nodeType?0:this.Xf?-1:1;Hq(c)&&(this.depth=c)};q.clone=function(){return new WN(this.node,this.Xf,!this.fU,this.Th,this.depth)};q.cxa=function(){var a=this.Xf?1:-1;this.Th==a&&(this.Th=-1*a,this.depth+=this.Th*(this.Xf?-1:1))};
q.next=function(){if(this.n8){if(!this.node||this.fU&&0==this.depth)throw cv;var a=this.node;var b=this.Xf?-1:1;if(this.Th==b){var c=this.Xf?a.lastChild:a.firstChild;c?this.setPosition(c):this.setPosition(a,-1*b)}else(c=this.Xf?a.previousSibling:a.nextSibling)?this.setPosition(c):this.setPosition(a.parentNode,-1*b);this.depth+=this.Th*(this.Xf?-1:1)}else this.n8=!0;a=this.node;if(!this.node)throw cv;return a};q.lqa=function(){return-1==this.Th};
q.ad=function(a){return a.node==this.node&&(!this.node||a.Th==this.Th)};q.splice=function(a){var b=this.node;this.cxa();this.Xf=!this.Xf;WN.prototype.next.call(this);this.Xf=!this.Xf;for(var c=Mq(arguments[0])?arguments[0]:arguments,e=c.length-1;0<=e;e--)vy(c[e],b);xy(b)};var XN=function(a,b,c,e){WN.call(this,a,b,c,null,e)};B(XN,WN);XN.prototype.next=function(){do XN.c.next.call(this);while(this.lqa());return this.node};var YN=function(){};B(YN,TD);Kq(YN);YN.prototype.createCaption=function(a,b){return YN.c.createCaption.call(this,ZN(a,b),b)};var ZN=function(a,b){return b.g(d,"goog-color-menu-button-indicator",a)};YN.prototype.setValue=function(a,b){a&&$N(this.J(a),b)};var $N=function(a,b){if(a&&a.firstChild){var c;if(c=b)c=!!(tz.test("#"==b.charAt(0)?b:"#"+b)||vz(b).length||sz&&sz[b.toLowerCase()]);b=c?xz(b).Fu:null;a.firstChild.style.borderBottomColor=b||(E?"":rp)}};
YN.prototype.Bd=function(a){var b=a.b();C(b);this.setValue(b,a.getValue());U(b,Sh);YN.c.Bd.call(this,a)};var aO=function(){};B(aO,cD);Kq(aO);var bO=0;q=aO.prototype;q.g=function(a){var b=this.Zd(a);a=a.j().g(d,b,this.nea(a.zb(),a.Ae(),a.j()));MB(a,ti);return a};q.nea=function(a,b,c){for(var e=[],f=0,g=0;f<b.height;f++){for(var h=[],l=0;l<b.width;l++){var p=a&&a[g++];h.push(this.AG(p,c))}e.push(this.HG(h,c))}return this.MU(e,c)};q.MU=function(a,b){a=b.g(vd,this.S()+"-table",b.g(wd,this.S()+"-body",a));a.cellSpacing="0";a.cellPadding="0";return a};
q.HG=function(a,b){a=b.g(zd,this.S()+"-row",a);MB(a,"row");return a};q.AG=function(a,b){a=b.g(xd,{"class":this.S()+"-cell",id:this.S()+"-cell-"+bO++},a);MB(a,ui);T(a,hn,!1);Oy(a)||SB(a)||(b=this.Rga(a))&&TB(a,b);return a};q.Rga=function(a){a=new XN(a);for(var b="",c;!b&&(c=hv(a,null));)1==c.nodeType&&(b=SB(c)||c.title);return b};q.tc=function(){return!1};q.R=function(){return null};
q.eb=function(a,b){if(a){var c=by(wd,this.S()+"-body",a)[0];if(c){var e=0;D(c.rows,function(a){D(a.cells,function(a){ty(a);if(b){var c=b[e++];c&&a.appendChild(c)}})});if(e<b.length){for(var f=[],g=N(a),h=c.rows[0].cells.length;e<b.length;){var l=b[e++];f.push(this.AG(l,g));f.length==h&&(l=this.HG(f,g),c.appendChild(l),f.length=0)}if(0<f.length){for(;f.length<h;)f.push(this.AG("",g));l=this.HG(f,g);c.appendChild(l)}}}hA(a,!0,yt)}};
q.FI=function(a,b){for(a=a.b();b&&1==b.nodeType&&b!=a;){if(b.tagName==xd&&bC(b,this.S()+"-cell"))return b.firstChild;b=b.parentNode}return null};q.bpa=function(a,b,c){b&&(b=this.nX(b),C(b),fC(b,this.S()+"-cell-hover",c),c?T(a.Ta(),ee,b.id):b.id==PB(a.Ta(),ee)&&OB(a.Ta(),ee))};q.nX=function(a){return a?a.parentNode:null};q.Gxa=function(a,b,c){b&&(a=b.parentNode,fC(a,this.S()+"-cell-selected",c),T(a,hn,c))};q.S=function(){return"goog-palette"};var dO=function(a,b,c){gD.call(this,a,b||aO.H(),c);this.sD(88,!1);this.Ws=new cO;this.Ws.Sl(this);this.sL=-1};B(dO,gD);q=dO.prototype;q.gb=null;q.ib=-1;q.O=null;q.o=function(){dO.c.o.call(this);this.O&&(this.O.dispose(),this.O=null);this.gb=null;this.Ws.dispose()};q.sr=function(a){dO.c.sr.call(this,a);this.kS();this.O?(this.O.clear(),this.O.gS(a)):(this.O=new WD(a),this.O.H6(y(this.mr,this)),this.A().listen(this.O,en,this.yu));this.ib=-1};q.pi=function(){return""};q.uD=function(){};
q.Bg=function(a){dO.c.Bg.call(this,a);var b=this.M.FI(this,a.target);b&&a.relatedTarget&&Ey(b,a.relatedTarget)||b!=this.Jz()&&this.X5(b)};q.Qc=function(a){dO.c.Qc.call(this,a);this.Rb()&&(a=this.M.FI(this,a.target),a!=this.Jz()&&this.X5(a))};q.Tc=function(a){var b=this.Jz();return b?(a&&this.EBa(a)&&this.Bb(b),dO.c.Tc.call(this,a)):!1};q.EBa=function(a){return this.xa()?a.type!=rk?!0:!!this.M.FI(this,a.target):!0};
q.ec=function(a){var b=this.zb();b=b?b.length:0;var c=this.gb.width;if(0==b||!this.isEnabled())return!1;if(13==a.keyCode||32==a.keyCode)return this.Tc(a);if(36==a.keyCode)return this.oc(0),!0;if(35==a.keyCode)return this.oc(b-1),!0;var e=0>this.ib?this.yg():this.ib;switch(a.keyCode){case 37:if(-1==e||0==e)e=b;this.oc(e-1);a.preventDefault();return!0;case 39:return e==b-1&&(e=-1),this.oc(e+1),a.preventDefault(),!0;case 38:-1==e&&(e=b+c-1);if(e>=c)return this.oc(e-c),a.preventDefault(),!0;break;case 40:if(-1==
e&&(e=-c),e<b-c)return this.oc(e+c),a.preventDefault(),!0}return!1};q.yu=function(){};q.Ae=function(){return this.gb};q.xb=function(a,b){if(this.b())throw Error(cc);this.gb=Hq(a)?new Wx(a,b):a;this.kS()};q.Jz=function(){var a=this.zb();return a&&a[this.ib]};q.Tia=function(){return this.M.nX(this.Jz())};q.oc=function(a){a!=this.ib&&(this.ZZ(this.ib,!1),this.sL=this.ib,this.ib=a,this.ZZ(a,!0),this.dispatchEvent("e"))};q.X5=function(a){var b=this.zb();this.oc(b&&a?Xr(b,a):-1)};
q.yg=function(){return this.O?this.O.yg():-1};q.xa=function(){return this.O?this.O.xa():null};q.kf=function(a){this.O&&this.O.kf(a)};q.Bb=function(a){this.O&&this.O.Bb(a)};q.ZZ=function(a,b){if(this.b()){var c=this.zb();if(c&&0<=a&&a<c.length){var e=this.Tia();this.Ws.b()!=e&&this.Ws.Na(e);this.Ws.IDa(b)&&this.M.bpa(this,c[a],b)}}};q.Jc=function(a){a&&-1==this.ib?this.oc(-1<this.sL?this.sL:0):a||this.oc(-1);dO.c.Jc.call(this,a)};q.mr=function(a,b){this.b()&&this.M.Gxa(this,a,b)};
q.kS=function(){var a=this.zb();if(a)if(this.gb&&this.gb.width){if(a=Math.ceil(a.length/this.gb.width),!Hq(this.gb.height)||this.gb.height<a)this.gb.height=a}else a=Math.ceil(Math.sqrt(a.length)),this.gb=new Wx(a,a);else this.gb=new Wx(0,0)};var cO=function(){gD.call(this,null);this.sw(2,!0)};B(cO,gD);cO.prototype.IDa=function(a){this.Jc(a);return this.OK()==a};var eO=function(a,b,c){this.ny=a||[];dO.call(this,null,b||aO.H(),c);this.Kya(this.ny)};B(eO,dO);q=eO.prototype;q.XB=null;q.hB=null;q.Kya=function(a,b){this.ny=a;this.hB=b||null;this.XB=null;this.eb(this.gea())};q.oJ=function(){var a=this.xa();return a?(a=Fz(a,"background-color"),fO(a)):null};q.UO=function(a){a=fO(a);this.XB||(this.XB=as(this.ny,function(a){return fO(a)}));this.kf(a?Xr(this.XB,a):-1)};
q.gea=function(){return as(this.ny,function(a,b){var c=this.j().g(d,{"class":this.M.S()+"-colorswatch",style:"background-color:"+a});c.title=this.hB&&this.hB[b]?this.hB[b]:"#"==a.charAt(0)?"RGB ("+zz(a).join(", ")+")":a;return c},this)};var fO=function(a){if(a)try{return xz(a).Fu}catch(b){}return null};var gO=function(a,b,c,e){VD.call(this,a,b,c||YN.H(),e)};B(gO,VD);
var hO={IHa:"#000 #444 #666 #999 #ccc #eee #f3f3f3 #fff".split(" "),ELa:"#f00 #f90 #ff0 #0f0 #0ff #00f #90f #f0f".split(" "),JJa:"#f4cccc #fce5cd #fff2cc #d9ead3 #d0e0e3 #cfe2f3 #d9d2e9 #ead1dc #ea9999 #f9cb9c #ffe599 #b6d7a8 #a2c4c9 #9fc5e8 #b4a7d6 #d5a6bd #e06666 #f6b26b #ffd966 #93c47d #76a5af #6fa8dc #8e7cc3 #c27ba0 #cc0000 #e69138 #f1c232 #6aa84f #45818e #3d85c6 #674ea7 #a64d79 #990000 #b45f06 #bf9000 #38761d #134f5c #0b5394 #351c75 #741b47 #660000 #783f04 #7f6000 #274e13 #0c343d #073763 #20124d #4c1130".split(" ")},iO=
function(a,b){var c=new vD(b);a&&D(a,function(a){c.ca(a,!0)});Js(hO,function(a){a=new eO(a,null,b);a.xb(8);c.ca(a,!0)});return c};q=gO.prototype;q.oJ=function(){return this.getValue()};q.UO=function(a){this.setValue(a)};q.setValue=function(a){for(var b=0,c;c=this.cd(b);b++)typeof c.UO==Ih&&c.UO(a);gO.c.setValue.call(this,a)};q.vu=function(a){typeof a.target.oJ==Ih?this.setValue(a.target.oJ()):a.target.getValue()==Ek&&this.setValue(null);gO.c.vu.call(this,a);a.stopPropagation();this.dispatchEvent(k)};
q.Hb=function(a,b){a&&0==this.Xk()&&(this.Zg(iO(null,this.j())),this.setValue(this.getValue()));gO.c.Hb.call(this,a,b)};ZC(Sh,function(){return new gO(null)});var jO=function(){};B(jO,TD);Kq(jO);jO.prototype.S=function(){return ni};var kO=function(){};B(kO,jO);Kq(kO);kO.prototype.createCaption=function(a,b){return UD(ZN(a,b),this.S(),b)};kO.prototype.setValue=function(a,b){a&&$N(this.J(a),b)};kO.prototype.Bd=function(a){this.setValue(a.b(),a.getValue());U(C(a.b()),mi);kO.c.Bd.call(this,a)};var lO=function(a,b,c,e){gO.call(this,a,b,c||kO.H(),e)};B(lO,gO);ZC(mi,function(){return new lO(null)});var mO=function(a,b,c,e){VD.call(this,a,b,c||jO.H(),e)};B(mO,VD);ZC(ni,function(){return new mO(null)});var nO=function(a,b,c,e){XD.call(this,a,b,c||jO.H(),e)};B(nO,XD);ZC("goog-toolbar-select",function(){return new nO(null)});var oO=function(a,b){sD.call(this,a||RN.H(),b)};B(oO,sD);ZC(oi,function(){return new oO});var pO=function(a){a=a||{};return yF(vb+X(lj)+(a.checked?" "+X("jfk-radiobutton-checked"):"")+(a.disabled?" "+X("jfk-radiobutton-disabled"):"")+(a.Xd?" "+X(a.Xd):"")+'"'+(a.name?' data-name="'+X(a.name)+'"':"")+(a.value?' data-value="'+X(a.value)+'"':"")+(a.id?' id="'+X(a.id)+'"':"")+(a.attributes?" "+PF(a.attributes):"")+' role="radio"><span class="'+X("jfk-radiobutton-radio")+'"></span><div class="'+X("jfk-radiobutton-label")+ua+(a.label?W(a.label):"")+"</div></div>")};pO.ra="jfk.templates.radiobutton.strict";var rO=function(a,b,c,e){gD.call(this,null,qO.H(),a);this.qb=c||"";this.Ab=e||"";this.tb(16,!0);this.sD(16,!1);b&&this.Ra(b)};B(rO,gD);q=rO.prototype;q.Tc=function(a){this.ke(!0);return rO.c.Tc.call(this,a)};q.wc=function(a){switch(a.keyCode){case 38:case 37:return this.dispatchEvent(a.ctrlKey?"g":"i"),!0;case 40:case 39:return this.dispatchEvent(a.ctrlKey?"f":"h"),!0;case 32:return this.Tc(a);case 9:return this.dispatchEvent(a.shiftKey?"l":"k"),!1}return rO.c.wc.call(this,a)};
q.setValue=function(a){this.qb=a;var b=this.b();b&&this.M.setValue(b,a)};q.getValue=function(){return this.qb};q.Aw=function(a){this.Ab=a;this.b()&&this.M.Aw(this.b(),a)};q.getName=function(){return this.Ab};q.U=function(a){rO.c.U.call(this,a);this.dispatchEvent("j")};q.Ra=function(a){this.Ua=a;this.b()&&this.M.Ra(this.b(),this.Ua)};q.wg=function(){return this.Ua};var qO=function(){};B(qO,cD);Kq(qO);q=qO.prototype;
q.g=function(a){var b=VE(pO,{checked:a.bf(),disabled:!a.isEnabled(),name:a.getName(),value:a.getValue()},void 0,a.j());(a=a.wg())&&this.Ra(b,a);return b};q.R=function(a,b){qO.c.R.call(this,a,b);var c=b.getAttribute("data-value");c&&a.setValue(c);(c=b.getAttribute("data-name"))&&a.Aw(c);c=this.J(b);C(c);c.firstChild?a.Ra(c.firstChild.nextSibling?rs(c.childNodes):c.firstChild):a.Ra(null);return b};q.wd=function(){return"radio"};q.Ra=function(a,b){a=this.J(a);C(a);ty(a);sy(a,b)};
q.setValue=function(a,b){a.setAttribute("data-value",b)};q.Aw=function(a,b){a.setAttribute("data-name",b)};q.J=function(a){return dy(this.S()+"-label",a)};q.S=function(){return lj};var tO=function(a,b){J.call(this);this.Ab=b||"";this.O=new WD;this.Y(this.O);this.G=new jC(this);this.Y(this.G);this.O.H6(sO);this.G.listen(this.O,en,Wq(this.dispatchEvent,tf));this.G.listen(this,"f",this.Nla);this.G.listen(this,"g",this.Ola);this.G.listen(this,"h",this.$la);this.G.listen(this,"i",this.yoa);this.G.listen(this,"j",this.lA);this.G.listen(this,"k",Wq(this.gq,!1));this.G.listen(this,"l",Wq(this.gq,!0));a&&D(a,this.Gd,this)};B(tO,J);q=tO.prototype;
q.Gd=function(a){C(null!=a);this.G.listen(a,k,this.fq);a.Sl(this);a.Aw(this.Ab);var b=a.bf();this.O.sc(a);b&&this.lk(a);a.b()&&this.lA()};q.lk=function(a){this.O.Bb(a);this.lA()};q.$z=function(){return this.O.xa()};q.vz=function(a){return this.O.cd(a)};q.getName=function(){return this.Ab};q.rY=function(){var a=this.$z();return a?a.getValue():null};q.pza=function(a,b){var c=this.O.cd(a);b&&this.lk(c);D(this.O.Gj(),function(a){a.b()&&My(a.b(),c==a)});try{c.b().focus()}catch(e){}};
q.nz=function(a,b,c){b=this.fI(a,b);-1!=b&&this.O.cd(b)&&(My(a.b(),!1),this.pza(b,c))};q.fI=function(a,b){var c=this.O.Xk();a=this.O.s_(a);for(var e=1;e<=c;e++){var f=(a+b*e)%c;f=0>f*c?f+c:f;if(this.vz(f).isEnabled())return f}return-1};q.yoa=function(a){a=a.target;C(a);this.nz(a,-1,!0)};q.$la=function(a){a=a.target;C(a);this.nz(a,1,!0)};q.Ola=function(a){a=a.target;C(a);this.nz(a,-1,!1)};q.Nla=function(a){a=a.target;C(a);this.nz(a,1,!1)};q.gq=function(a,b){b=this.lA(b);try{var c=b[a?0:1];c&&c.b().focus()}catch(e){}};
q.lA=function(){var a=this.$z(),b=this.vz(0),c=a&&a.isEnabled(),e=c?a:b;C(e,"Must have at least one button in the group");e.isEnabled()||(a=this.fI(e,1),e=-1!=a?this.vz(a):null);var f=e;e&&!c&&(a=this.fI(e,-1),f=-1!=a?this.vz(a):null);D(this.O.Gj(),function(a){a.b()&&My(a.b(),e==a||f==a)});return[e,f]};q.fq=function(a){a=a.target;this.lk(a);try{a.b().focus()}catch(b){}};q.o=function(){D(this.O.Gj(),function(a){G(a)});tO.c.o.call(this)};var sO=function(a,b){a.ke(b);a.b()&&My(a.b(),b)};var uO=function(a){return(a.O7?'<p class="plus-page-url-dialog-warning">You must link your Google+ page to the site before you can add a badge.</p>':"")+"<p>Google+ Direct Connect helps visitors find your Google+ page and add it to their circles from directly within Google Search. Once you've created your Google+ page, finish connecting it to your site by adding the page ID below.</p>"+(a.J7?'<p class="plus-page-url-dialog-warning">This setting will affect your entire site.</p>':"")+'<p class="plus-page-url-prefix">https://plus.google.com/<input type="text" id="'+
X(a.Vpa)+'" value="'+X(a.id)+'" class="plus-page-id-input" aria-label="Your Google+ page ID"/>/</p>'};uO.ra="sites.pages.settings.templates.PlusPageDialog.content";var vO=function(a,b,c){this.lb=a;this.La=new iJ;this.h2=c;this.JW=b.length;this.La.fb("Uploading...");this.La.Ph((new xC).set(BC.Mo,bc,!0,!0));vG(this.La,BC.Mo);this.ZM={};c=[];for(a=0;a<b.length;a++)if(b[a]){var e=b[a].getId();c[a]=e;this.ZM[e]=new PN}SE(this.La.J(),wI,{rpa:c});this.La.aza(!0);this.La.C(!0);for(a=0;a<b.length;a++)e=c[a],this.jf(e,"Queued..."),this.ZM[e].render(P(Ap+e));for(a=0;a<b.length;a++)if(c=b[a])this.dAa(c.getId(),c.getName(),c.bc),this.update(c);I(this.La,Cg,y(this.Ela,this))};
w("sites.attachments.Dialog",vO,void 0);q=vO.prototype;q.update=function(a){var b=a.getId(),c=this.lb.Uk(a);c==Wi?this.jf(b,"Queued..."):c==Oo?(this.Z5(b,"url("+webspace.getPath(webspace.baseUri,db)+")"),this.x6(b,0)):c==qp?(a=100*a.Cs/a.bc,isNaN(a)&&(a=0),this.x6(b,a)):c==Vo?(this.nG(b),this.jf(b,"Complete."),this.JW--,0==this.JW&&(b=this.La.Wb,b.Cj(b.ci).click())):c==gh||c==rl?(this.nG(b),this.be(a)):(this.nG(b),this.Ada(b))};
q.be=function(a){var b=a.getId();(a=this.lb.bq(a))?(a=a.ez)?1==a.error?this.jf(b,Pd):2==a.error?this.jf(b,"You do not have permission to upload to this area."):3==a.error?this.jf(b,"The file you are trying to upload is too large."):4==a.error?this.jf(b,"You are attempting to upload a file with a reserved name or an unsafe extension. Please rename your file and try again."):5==a.error?this.jf(b,"The file you are trying to upload is empty."):6==a.error?this.jf(b,"A webpage exists with this file name. Please rename your file and try again."):
7==a.error?this.jf(b,"You have exceeded your storage quota. Please delete some existing files and try again."):this.jf(b,Pd):this.jf(b,Pd):this.jf(b,Pd)};q.Ela=function(){this.h2&&this.h2()};q.dAa=function(a,b,c){b=18<b.length?b.slice(0,15)+"...":b;null!=c&&(b+=" ("+Math.ceil(c/1024)+"k)");Gy(P("upload-name-"+a),b)};q.Z5=function(a,b){(a=P("upload-icon-"+a))&&Q(a,"background-image",b)};q.nG=function(a){this.Z5(a,"")};q.Ada=function(a){this.jf(a,"")};
q.jf=function(a,b){var c=P(Ap+a);a=P(Bp+a);Gy(a,b);R(c,!1);R(a,!0)};q.x6=function(a,b){var c=P(Ap+a),e=P(Bp+a);this.ZM[a].setValue(b);R(e,!1);R(c,!0)};var wO=function(a,b,c,e,f){this.sd=webspace.domain;this.$i=webspace.name;this.Og=webspace.page.path;this.iX=!1;this.IW=this.cI=this.La=null;this.SP=0;this.XV=!1;this.Im=null;c&&(this.Im=new hG(f),this.Im.U(!1),e?this.Im.render(P(a)):this.Im.R(P(a)));e=webspace.scottyUrl;webspace.user.sessionIndex&&(e+="?authuser="+webspace.user.sessionIndex);e=new AN(e);e.dxa(["XHR",Ec]);e.pBa(a);e.Aza(a);this.lb=e.RU();this.lb.zr(b);this.lb.tya(!1);c?I(this.Im,k,y(this.QY,this)):I(P(a),Bf,y(this.QY,this));I(this.lb,
xh,y(this.hma,this));I(this.lb,Lp,y(this.AZ,this));I(this.lb,Kp,y(this.AZ,this))};w("sites.attachments.UploadButton",wO,void 0);q=wO.prototype;q.b7=function(a){this.Og=a};q.O5=function(a,b){this.cI=a;this.IW=b};q.sza=function(a){this.iX=a};q.bza=function(a){this.XV=a};q.U=function(a){null!=this.Im&&this.Im.U(a)};q.QY=function(){this.SP=this.GX();this.lb.Ro(!1)};q.AZ=function(a){this.La&&a.file&&this.La.update(a.file)};
q.Sua=function(a){if(null!=this.cI)for(var b=0;b<a.files.length;b++)if(!a.files[b].getName().match(this.cI))return!1;return!0};q.hma=function(a,b){if(this.Sua(a)){!b&&a.files&&(this.La=new vO(this.lb,a.files,y(this.aC,this)));b=oh;this.iX&&(b=sp);var c=oh;this.XV&&(c=sp);b={domain:this.sd,webspace:this.$i,path:this.Og,generateFileName:b,editorAdded:c};for(c=0;c<a.files.length;c++)a.files[c].Zza(b),this.lb.dr(a.files[c])}else alert(this.IW)};q.GX=function(){var a=this.lb.Ez();return a?a.length:0};
q.ZX=function(){var a=[],b=this.lb.Ez();if(b)for(var c=0,e=this.SP;e<b.length;e++)if(b[e]){var f=this.lb.bq(b[e]);f&&(f=f.ez)&&f.path&&(a[c]=f.path,c++)}return a};q.aC=function(){window.location.reload()};var xO=/.*?\.(gif|jpg|jpeg|png)\s*$/i;w("sites.attachments.UploadButton.initFileCabinetButton",function(a){a=new wO(a,!0,!0,!1);a.U(!0);return a},void 0);w("sites.attachments.UploadButton.initAttachmentManagementButton",function(a){a=new wO(a,!0,!0,!1);a.b7("/");a.U(!0);return a},void 0);
w("sites.attachments.UploadButton.initColorsAndFontsButton",function(a,b){var c=new wO(a,!1,!0,!1);c.b7("/config");c.sza(!0);c.O5(xO,Kb);c.aC=function(){var a=c.ZX();1==a.length&&b(a[0]);E&&(c.SP=c.GX())};c.U(!0);return c},void 0);w("sites.attachments.UploadButton.initTrogEditImageUploadButton",function(a,b){var c=new wO(a,!0,!0,!0,"Upload Images");c.bza(!0);c.O5(xO,Kb);c.aC=function(){var a=c.ZX();0!=a.length&&b(a)};c.U(!0);return c},void 0);var yO=0,BO=function(){yO++;dI("RenderAttachments",{page:webspace.page.path},Wq(zO,yO),AO);R(P(Vn),!0)},zO=function(a,b){if(a==yO)if(R(P(Vn),!1),a=b.target.Ba(),a.error)AO(b);else{b=P("sites-attachments-container");a=a.html;ty(b);a="<doc>"+a+"</doc>";if("undefined"!=typeof DOMParser)a=(new DOMParser).parseFromString(a,"application/xml");else if(IN){var c=new ActiveXObject(Tc);c.resolveExternals=!1;c.validateOnParse=!1;try{c.setProperty("ProhibitDTD",!0),c.setProperty("MaxXMLSize",2048),c.setProperty("MaxElementDepth",
256)}catch(e){}c.loadXML(a);a=c}else throw Error("Your browser does not support loading xml documents");for(a=a.documentElement;c=a.firstChild;)b.appendChild(c);CO("sites-attachments-add-file-btn")}},CO=function(a){a=new wO(a,!0,!1,!1);a.U(!0);a.aC=function(){BO()};return a};w("sites.attachments.PageAttachmentsUtils.initUploadButton",CO,void 0);var AO=function(){S("Error retrieving attachment list.")};var DO={jLa:Pn,eIa:Si,dIa:Ri},EO=function(a){return Ss(DO,a)?a:Gq(a)?a?Si:Ri:Pn};var FO=function(a){a&&this.oAa(a)};q=FO.prototype;q.Yk=function(){return this.MR};q.oAa=function(a){this.MR=a};q.ca=function(a){var b=this.yv||0;this[b]=a;this.yv=b+1;return a};q.qs=function(a){return this.ca(new FO(a))};q.Ia=function(a,b){if(b){var c=[],e;for(e in this){var f=this[e];"undefined"!=typeof f&&f.Yk&&c.push(f)}c.sort(b);for(b=0;b<c.length;b++)a(c[b])}else for(e in this)f=this[e],"undefined"!=typeof f&&f.Yk&&a(f)};var GO=function(){FO.apply(this)};B(GO,FO);
GO.prototype.uba=function(a){function b(a,c,g){var e=a.shift(),f=g[e];f||(f=new FO,g[e]=f);0==a.length?f.MR=c:b(a,c,f)}if(a.path){var c=a.path.split("/");""==c[0]&&c.shift();b(c,a,this)}};GO.prototype.rB=function(a){for(var b=0;b<a.length;b++)this.uba(a[b]);this.ata=a.length};eE.pG=JOT_clearDotPath;
var HO=function(a,b,c,e,f,g,h,l){V.call(this);this.Dc(a);this.A7=b;this.vk=f;this.My=g;this.Fd=l;this.sK=!!h;this.Dl={};this.Uq={};this.Ci={};this.zK=0;this.DB=Number.MAX_VALUE;this.G0=function(a){return qr(a[Wj])};this.Fh=this.FH=!0;this.$i=c;eE.pG||(eE.pG=this.$i.baseUri+"/system/app/images/cleardot.gif");a=Tq(eE);e?(this.aa=new dE(xE(e||""),a),a={},a.path=this.$i.page.path,a[Wj]=qr(e||""),b=this.aa.xa(),b.wD(a)):(e=kx(this.$i.siteTitle||""),this.aa=new dE(e,a),a={path:"/"},a[Wj]=ix(e),b=this.aa.xa(),
b.wD(a),b.V6("/"),a=fI(this.$i.siteTitle),b.Rh(sx(Jo,{dir:a},e)),this.vk&&I(this.aa,tf,y(this.vk,this)),this.My&&(b.Cv=Wq(this.My,b)));this.sK&&(this.aa.Y5(Co),this.aa.L5(Co),this.aa.ZO(!1),this.aa.J6(!1),this.aa.NAa(!0));this.pe(this.aa,0);this.uCa=null;this.hv=!1};B(HO,V);q=HO.prototype;q.Wz=function(a){return a.split("/").length-1};q.DD=function(a){this.Fh=a};q.Vza=function(a){this.DB=a};q.xw=function(a){this.G0=a};q.ED=function(a){(this.hv=a)&&this.A().listen(this.aa,"beforeexpand",this.yta)};
q.xy=function(a){var b=this.aa.createNode("");this.$i.page.isSiteRtlLocale&&b.oo(!0);b.DD(this.Fh);b.wD(a);this.fo(b);this.vk&&(b.g2=y(this.vk,this));this.My&&(b.Cv=Wq(this.My,b));this.sK&&(a=this.cka(a.pageInheritsPermissions),b.Y5(a),b.L5(a));return b};q.cka=function(a){var b="sites-tree-icon-permissions-icon";switch(EO(a)){case Pn:b+=" sites-tree-icon-permissions-site-icon";break;case Si:b+=" sites-tree-icon-permissions-inherits-icon";break;case Ri:b+=" sites-tree-icon-permissions-ignores-icon"}return b};
q.g=function(){function a(b,g){var f=g.Yk(),l=b;f&&(l=f.path?this.Wz(f.path):0,l>this.zK&&(this.zK=l),l=e.xy(f),this.hv&&f.path&&(this.Uq[f.path]=l),b.add(l),e.fo(l));g.Ia(y(a,this,l),c)}var b=this.aa,c=this.uCa,e=this;this.A7?a.call(this,b,this.$):this.$.Ia(y(a,this,b),c);b.g();this.Na(b.b())};q.hga=function(a){this.aa.V&&(!this.FH&&a?this.aa.$o():a||this.aa.rj());this.FH=a};
q.B=function(){HO.c.B.call(this);if(this.Fd){var a=this;I(this.aa.rb,yj,function(b){13==b.keyCode&&(a.Fd(b),b.preventDefault())})}this.FH||this.aa.rj();30<this.$.ata?this.Ks():this.hv||this.bz();this.jt(this.aa,aj,!0)};q.Xja=function(){function a(a){var c={},f=a.$d(),g=f.path;g?0!=g.indexOf("/system/")&&(g=f.wuid):(g=f.url,c.title=f[Wj],c.openNewWin=!!f[Vj]);c.id=g;a.si()&&(c.children=b(a));return c}function b(b){var c=[];for(b=b.si();b;b=b.fe)c.push(a(b));return c}return b(this.aa)};
q.XO=function(a,b){if("/"==a)return this.aa.Bb(this.aa),this.aa;if(!this.aa.Pc().length)return null;var c=a;a+="/";for(var e=this.aa,f=!0;f;){var g=e.Pc();f=!1;for(var h=0;h<g.length;h++){var l=g[h];if(Yq(a,l.$d().path+"/")){f=!0;e=l;break}}}if(this.hv&&e&&e!=b&&e.$d().path!=c)return e.expand(),this.A().Of(this,"lazyLoad",y(this.XO,this,c,e)),null;e.Yv();this.aa.Bb(e);return e};HO.prototype.setSelectedPageByPath=HO.prototype.XO;
HO.prototype.FAa=function(a){function b(c){if(c.$d().wuid==a)return c;for(c=c.si();c;c=c.fe){var e=b(c);if(e)return e}return null}var c=b(this.aa);this.aa.Bb(c);return c};HO.prototype.setSelectedPageByWuid=HO.prototype.FAa;HO.prototype.Pka=function(){return this.aa};HO.prototype.getTreeControl=HO.prototype.Pka;HO.prototype.tc=function(){return!1};HO.prototype.bz=function(){this.aa.bz()};HO.prototype.Ks=function(){this.aa.Ks();this.aa.Td(!0)};
HO.prototype.xa=function(a){var b=this.aa.xa();a||b!=this.aa||this.A7||(b=null);return b};HO.prototype.getSelectedItem=HO.prototype.xa;q=HO.prototype;q.qs=function(a,b){a=this.xy(a);if(b){var c=b.getParent();b=b.fe}else c=this.aa,b=null;c.add(a,b);this.fo(a);return a};q.twa=function(){var a=this.xa();if(a){var b=a.getParent(),c=a.fe||a.Ei;null==c&&b!=this.aa&&(c=b);b.remove(a);this.aa.Bb(c);return!0}return!1};q.fo=function(a){var b=a.$d();a.Rh(xE(this.G0(b,a)));a.V6(b.url||b.path||null)};
q.AO=function(a,b){a.wD(b);this.fo(a)};q.fM=function(a,b,c){if(b&&b!=this.aa){var e=b.getParent();c&&(b=b.fe);e.add(a,b);this.fo(a);this.aa.Bb(a);return!0}return!1};q.Msa=function(){var a=this.xa();if(a){var b=a;do{var c=b.fe;if(!c&&(b=b.getParent(),b===this.aa))return!1}while(null==c);return this.fM(a,c,!0)}return!1};q.Nsa=function(){var a=this.xa();return null!=a&&this.fM(a,a.lJ(),!1)};
q.xpa=function(){var a=this.xa();if(a){var b=a.Ei,c=this.DB!==Number.MAX_VALUE;if(b&&(!c||b.Tk()+1<=this.DB)){b.add(a);b.expand();this.fo(a);this.aa.Bb(a);if(c){c=[];for(var e=0;e<a.Xa();e++){var f=a.pa(e);a.Tk()+this.GY(f)>this.DB&&c.push(f)}for(e=0;e<c.length;e++)b.add(c[e])}return!0}}return!1};q.zua=function(){var a=this.xa();if(a){var b=a.getParent();if(b&&b!=this.aa)return this.fM(a,b,!0)}return!1};
q.Jba=function(a,b){var c=b.target.getResponseJson();b=a.$d().path;var e=c.pages;c=c.tNa;this.Dl[b]||(this.Dl[b]=a);for(var f={},g=e.length,h=0;h<g;h++){var l=e[h],p=l.path;if(!this.Uq[p]&&!this.Dl[p]){var r=this.xy(l);this.Dl[p]=r;l=this.Wz(p);p=p.split("/");var z=p.slice(0,l).join("/");f[z]=1;if(z=this.Dl[z]||this.Uq[z])for(z.add(r),r=1;r<l;r++)(z=p.slice(0,r).join("/"))&&(this.Ci[z]=1)}}for(var O in f)this.Wz(O)<c-1&&(this.Ci[O]=1);this.Ci[b]=1;O=a.si();O.$d().loadingNode&&(a.removeChild(O),a.Ia(y(function(a){var b=
a.b();b&&(b.style.display="");this.jt(a,aj)},this)));this.dispatchEvent("lazyLoad")};q.Jsa=function(a,b){var c=a.$d(),e=b.$d(),f=c.path,g=XH(e.path,IO(f.substring(f.lastIndexOf("/")+1),e.path)),h=Oy(a.yI());Gy(a.yI(),"(Moving)");webspace.gM({path:f,newPath:g},y(function(c){Gy(a.yI(),h);c=c.target.Ba();c.error?S(c.error.substring(c.error.lastIndexOf(":")+1)):(a.getParent().remove(a),this.x9(f,g,a),b.add(a),b.expand(),this.jt(a,aj,!0),SA())},this))};
q.GY=function(a){if(!a)return 0;for(var b=0,c=0;c<a.Xa();c++)b=Math.max(this.GY(a.pa(c)),b);return b+1};q.x9=function(a,b,c){var e=c.$;if(0==e.path.indexOf(a)){var f=e.path;e.path=b+e.path.substring(a.length);this.cEa(c,f,e.path);c.Na(null);this.fo(c);c.Ia(y(this.x9,this,a,b))}};q.cEa=function(a,b,c){this.Dl[b]&&(this.Dl[c]=a,delete this.Dl[b]);this.Ci[b]&&(this.Ci[c]=this.Ci[b],delete this.Ci[b]);this.Uq[b]&&(this.Uq[c]=a,delete this.Uq[b])};
q.yta=function(a){a=a.target;var b=a.$d().path,c=this.Wz(b);if(c<this.zK-1||this.Ci[b]||"/"==b)a.Yv(),this.A().Of(a,kh,function(a){a.target.Ia(y(function(a){this.jt(a,aj,!0)},this))});else if(!Rs(this.Ci,b)){this.Ci[b]=null;var e=a.si(),f=this.xy({loadingNode:!0,"main/title":"",path:""});f.Rh(sx(Jo,{style:{"font-style":"italic"}},"Loading"));a.add(f,e);a.expand();this.A().Of(this,kh,function(a){a=a.target.Pc();for(var b=a.length,c=1;c<b;c++){var e=a[c].b();e&&(e.style.display=Ek)}});dI("ShallowSearch",
{forDescendants:b,order:"path",filterName:"pagetreeview",filterVars:{$clickedPathDepth:c,$clickedPathDepth2:c+4},limit:2500,includePermissionsMetaData:this.sK,adjustDepthForLargeResults:!0},y(this.Jba,this,a))}return!0};q.jt=function(a,b,c){a.Od()&&this.dispatchEvent(new JO(b,a));c&&a.Ad()&&a.Ia(y(function(a){this.jt(a,b,c)},this))};q.dispose=function(){this.NI()||this.aa.dispose()};HO.prototype.dispose=HO.prototype.dispose;var JO=function(a,b){H.call(this,a);this.G8=b};B(JO,H);
JO.prototype.o=function(){JO.c.o.call(this);this.G8=null};var LO=function(a){this.Ow=P(a||"sites-sidebar-expander");this.G=new jC(this);this.XT=!1;this.k0=null;KO.push(this)};B(LO,F);var KO=[];w("sites.CollapsibleSidebar.createCollapsibles",function(a){var b=P("mobile-sidebar-expander");b&&(new LO(b)).bT(a,!0);if(a=dy("sites-header-nav"))b=new LO("sites-horiz-expander"),b.bT(a),b.OD(!0)},void 0);q=LO.prototype;q.Qi=null;
q.bT=function(a,b){this.Qi=P(a);b&&(this.G.listen(window,[fl,Om],y(this.BT,this)),this.BT());this.Ow&&this.G.listen(new nB(this.Ow),k,y(this.wDa,this));this.Qi&&cB(this.Qi,"initial")};q.OD=function(a){if(this.Ow&&this.Qi){this.XT=a;var b=this.Ow;a?aB(b,Ef):cB(b,Ef);b=this.Qi;a?aB(b,Ef):cB(b,Ef);a||this.Ida()}};q.o=function(){G(this.G);this.Ow=this.Qi=null;LO.c.o.call(this)};q.wDa=function(){this.OD(!this.XT)};q.BT=function(){var a=this.sda();a!=this.k0&&(this.OD(a),this.k0=a)};
q.sda=function(){if("undefined"!==typeof window.orientation)return!(0!=window.orientation&&180!=window.orientation);var a=hy();return a.width<a.height};q.Ida=function(){for(var a=0,b;b=KO[a];++a)this!=b&&b.OD(!0)};var MO=function(a,b,c,e,f,g){this.ma=a;this.Ua=b;this.Va=c;this.U7=e||null;this.ya=f||null;this.D_=u(g)?g:null};w("sites.core.SearchProvider",MO,void 0);q=MO.prototype;q.getId=function(){return this.ma};q.wg=function(){return this.Ua};q.getType=function(){return this.Va};q.getUrl=function(){return this.ya};q.ad=function(a){return this==a?!0:a.ma==this.ma&&a.Ua==this.Ua&&a.Va==this.Va&&a.U7==this.U7&&a.ya==this.ya&&a.D_==this.D_};var NO=function(a,b){this.ia=a||{};this.FO(b?b.logoUrl:null);this.G5(b?b.defaultLogoUrl:null);this.h7(b?b.webspaceType:null);this.K5(b?b.expandedHorizontalNavigationTree:null);this.U5(b?b.genericWidgetIconUrl:null);this.Q6(b?b.textWidgetIconUrl:null);this.y6(b?b.recentChangesWidgetIconUrl:null);this.B5(b?b.countdownWidgetIconUrl:null);this.wya(b?b.bleedSiteHeaderBackgroundColorRepeat:null);this.xya(b?b.bleedSiteHeaderBackgroundImageRepeat:null);this.Sya(b?b.defaultHorizNavStyle:null)};
w("sites.core.Config",NO,void 0);q=NO.prototype;q.OL=null;q.bH=null;q.j$=null;q.XH=null;q.xI=null;q.iQ=null;q.dN=null;q.zG=null;q.nV=null;var OO={WFa:eg,SHa:Fi},PO={AIa:"links",WLa:"tabs",BFa:"boxes"},QO={Z$:Ij,yaa:Pm,NONE:Fk};q=NO.prototype;q.$v=function(a,b){b=y(this.sxa,this,y(this.Kla,this,b));var c=y(this.txa,this);dI("SaveConfig",{properties:a.ia},b,c)};q.Kla=function(a){RO(a)};
q.sxa=function(a,b){(b=b.target.Ba().error)?S("ERROR: Your changes were not saved. Please try again in a few minutes. ["+b+"]"):(S("Your changes have been saved."),SA(1E4),a&&a())};q.txa=function(){S("ERROR: Your changes were not saved. Please try again in a few minutes.")};q.clone=function(a){this.ia=Xs(a.ia);this.FO(a.OL);this.G5(a.bH);this.h7(a.NY());this.K5(a.XH);this.U5(a.xI);this.Q6(a.iQ);this.y6(a.dN);this.B5(a.zG)};q.VI=function(){return this.ia[Rf]};q.vO=function(a){this.ia[Rf]=a};
q.Hz=function(){var a=this.VI();return a?"%"==a?"logo":pg:dp};q.Iz=function(){var a=this.ia[Tf];return a==op?op:a==hk?hk:a==lf?lf:dp};q.OX=function(){return this.ia[Sf]==sf?sf:Mo};q.sja=function(){return this.ia[Uf]};q.DO=function(a){this.ia[Uf]=a};q.Qz=function(){var a=this.sja();return"DEFAULT_LOGO"==a?webspace.isConsumer?Ek:Og:"NO_LOGO"==a?Ek:pg};q.uja=function(){return this.ia[Vf]};q.Qza=function(a){this.ia[Vf]=a};q.uO=function(a,b){a==pg&&b?this.vO(String(b)):"logo"==a?this.vO("%"):a==dp&&this.vO(null)};
q.wza=function(a){this.ia[Tf]=a==op||a==hk||a==lf?a:dp};q.vza=function(a){this.ia[Sf]=a==sf?a:Mo};q.EO=function(a,b,c){a==Ek?this.DO("NO_LOGO"):a==Og?this.DO("DEFAULT_LOGO"):a==pg&&b&&c&&(this.DO(b),this.Qza(c),this.FO(XH(webspace.baseUri,"/config/customLogo.gif?revision="+this.uja())))};q.tqa=function(){return this.Hz()==dp};q.c0=function(){return"logo"==this.Hz()};q.sqa=function(){return this.Hz()==pg};q.yqa=function(){return this.Iz()==dp};q.zqa=function(){return this.Iz()==op};
q.xqa=function(){return this.Iz()==hk};q.wqa=function(){return this.Iz()==lf};q.vqa=function(){return this.OX()==Mo};q.uqa=function(){return this.OX()==sf};q.Hqa=function(){return this.Qz()==Ek};q.Gqa=function(){return this.Qz()==Og};q.Fqa=function(){return this.Qz()==pg};q.G5=function(a){this.bH=a||""};q.FO=function(a){this.OL=a||""};q.NY=function(){return this.j$==Fi?Fi:eg};q.h7=function(a){this.j$=Ss(OO,a)?a:eg};q.ora=function(){return this.NY()==Fi};q.zka=function(){return!!this.ia[Lf]};
q.QAa=function(a){this.ia[Lf]=!!a};q.yka=function(){return!!this.ia[Kf]};q.PAa=function(a){this.ia[Kf]=!!a};q.XI=function(){var a=this.ia[Mf];return Ss(PO,a)?a:this.uX()};q.yza=function(a){this.ia[Mf]=Ss(PO,a)?a:this.uX()};q.zza=function(a){this.ia["component/navbar/navigationTree"]=a};q.K5=function(a){this.XH=a||"{}"};q.U5=function(a){this.xI=a||""};q.Q6=function(a){this.iQ=a||""};q.y6=function(a){this.dN=a||""};q.B5=function(a){this.zG=a||""};q.dra=function(){return!!this.ia[$f]};
q.bBa=function(a){this.ia[$f]=a};q.hra=function(){return!!this.ia[cg]};q.eBa=function(a){this.ia[cg]=a};q.gra=function(){return!!this.ia[bg]};q.dBa=function(a){this.ia[bg]=a};q.fra=function(){return!!this.ia[ag]};q.cBa=function(a){this.ia[ag]=a};q.Wu=function(){var a=this.ia[Of];return!a||"goog-ws-none"!=a&&-1==a.indexOf("nohead")};q.xq=function(){return!!this.ia[Wf]};q.w0=function(){return this.Xu()||this.Bq()};q.Xu=function(){var a=this.ia[Of];return!a||-1!=a.indexOf(Ij)};
q.Bq=function(){var a=this.ia[Of];return!!a&&-1!=a.indexOf(Pm)};q.PA=function(){var a=this.ia[Qf];return!!a&&a!=Ek};q.Eza=function(a){this.ia[Of]=this.CI(!!a,this.vY(),this.xq())};q.xia=function(){return this.ia[Pf]};q.Oya=function(a){this.ia[Pf]=a};q.Fza=function(a){this.ia[Wf]=!!a;this.ia[Of]=this.CI(this.Wu(),this.vY(),!!a)};q.bP=function(a){Ss(QO,a)&&(this.ia[Of]=this.CI(this.Wu(),a,this.xq()))};q.vY=function(){return this.Xu()?Ij:this.Bq()?Pm:Fk};q.Dza=function(a){this.ia[Qf]=a?"content":Ek};
q.CI=function(a,b,c){var e="goog-ws";if(!a&&b==Fk&&!c)return e+"-none";c&&(e+="-nav");e+="-"+b;a||(e+="-nohead");return e};q.TAa=function(a){this.ia[Yf]=a.toString()};q.K6=function(a){this.ia[Xf]=a||""};q.wY=function(){return Number(this.ia[Yf])||150};q.uY=function(){return this.ia[Xf]};q.aA=function(){return this.ia[Jf+this.ia[Xf]+"/items"]||[]};q.aP=function(a){this.ia[Jf+this.ia[Xf]+"/items"]=a||[]};q.hf=function(a,b,c){this.ia[Jf+c+"/"+a]=b};q.Cf=function(a,b){return this.ia[Jf+b+"/"+a]};
q.qJ=function(a){var b=this.ia[Jf+a+"/type"];b==ab&&this.ia[Jf+a+"/myLinksOnly"]&&(b=bb);return b};q.$va=function(a){a=Jf+a+"/";for(var b in this.ia)-1!=b.indexOf(a)&&(this.ia[b]=null)};q.L6=function(a){this.ia[Zf]=a};q.rJ=function(){return this.ia[Zf]};q.wya=function(a){this.Nca=a};q.xya=function(a){this.Oca=a};q.Sya=function(a){Ss(PO,a)&&(this.nV=a)};q.uX=function(){return this.nV||"boxes"};q.Yqa=function(){return this.ia["config/search/settings/disabled"]?!1:!0};var SO=!1,RO=function(a){SO||(SO=!0,dI("GetDialogProperties",{},Wq(TO,a),UO))},TO=function(a,b){SO=!1;b=b.target.Ba();a(new NO(b.props,b.extraProps))},UO=function(){SO=!1;S("Error loading the site layout editing dialogs.")};var VO=function(a,b){this.v=a;this.L=b||N()};VO.prototype.j=function(){return this.L};VO.prototype.update=function(){this.Kw()?this.show():this.Ce()};VO.prototype.handleError=function(){S("ERROR: The page could not be updated with your changes. Please reload the page.")};var WO=function(a,b){for(var c=0;c<b.length;c++){var e=a.b(b[c]);if(e){var f=a.g(d,uo,e.childNodes),g=a.g(d,to);a.appendChild(f,g);a.appendChild(e,f)}}},XO=function(a,b){for(var c=0;c<b.length;c++){var e=a.b(b[c]);if(e){var f=a.Fc(uo,e),g=a.Fc(to);a.removeNode(g);f&&(g=a.Pc(f),a.append(e,g),a.removeNode(f))}}},YO=function(a){(a=a.b(jo))&&a.setAttribute(Rk,"return false")};var ZO=function(a,b){VO.call(this,a,b);this.Fa=this.j().b(io);this.eDa=this.j().b(bo)};B(ZO,VO);q=ZO.prototype;q.Kw=function(){return this.v.Wu()};q.show=function(){dI("RenderHeader",{},y(this.kn,this),y(this.handleError,this));My(this.Fa,!0);R(this.Fa,!0)};q.Ce=function(){this.j().Ke(this.Fa);My(this.Fa,!1);R(this.Fa,!1)};
q.kn=function(a){a=a.target.Ba();this.sEa(a.html);this.eDa.className=a.hboxClassName;this.YDa();var b=JSON.parse(a.serializedScopes),c=JSON.parse(a.configureSearch);this.JBa()&&cL(a.searchButtonId,b.object,a.defaultScopeJsSafe,c)};q.YDa=function(){var a=this.v.Hz(),b=this.nqa(a,this.v.Qz());this.iza(b);this.Pya(!b&&a==pg)};q.JBa=function(){return this.v.Yqa()};q.nqa=function(a,b){return a!=pg&&b==pg};
q.iza=function(a){a=a?af:"";var b=this.j().b(bo),c=this.j().b("sites-chrome-header-wrapper");Zz(b,a);Zz(c,a)};q.Pya=function(a){a=a?this.v.VI()||"":"";var b=this.j().b("sites-header-title");Zz(b,a)};q.sEa=function(a){var b=py(document,Fg);b.innerHTML="<table><tr>"+a+"</tr></table>";a=zy(b.firstChild.rows[0]);WO(this.j(),a);this.j().Ke(this.Fa);this.j().append(this.Fa,a);YO(this.j())};var aP=function(a){var b=a.b(co);b&&$O(a,b,"Click to edit horizontal navigation")},bP=function(a){var b=a.b(ao);b&&$O(a,b,"Click to edit custom footer")},$O=function(a,b,c){ar(Oy(b))&&(c=UE(NI,{hpa:c}),a.DK(b,c,0))};var cP=function(a,b){VO.call(this,a,b);this.Fa=this.j().b(co)};B(cP,VO);cP.prototype.Kw=function(){return this.v.xq()};cP.prototype.show=function(){dI("RenderNavigationBar",{page:webspace.page.path},y(this.kn,this),y(this.handleError,this));My(this.Fa,!0);R(this.Fa,!0)};cP.prototype.Ce=function(){this.j().Ke(this.Fa);My(this.Fa,!1);R(this.Fa,!1)};cP.prototype.kn=function(a){a=a.target.Ba();this.Fa.innerHTML=a.html;qI("sites-header-nav-dropdown",!1);WO(this.j(),[this.Fa]);aP(this.j())};var eP=function(){this.Qoa=!!Iq("gbar.lPWF");this.vI=!1;dP=[];dP.push("g-plusone");webspace.features.plusBadge&&dP.push("g-plus");window.hNa={lang:webspace.page.locale,ZNa:"explicit"}};Kq(eP);var dP=[],fP=function(a){eP.H().go(a)};w("sites.util.Plus.go",fP,void 0);JOT_addListener("renderPlus",function(a){fP(a.payload)});q=eP.prototype;q.go=function(a){a=P(a||null)||document.body;this.Roa(a)&&(this.Qoa?this.gla(a):this.fla(a))};
q.Roa=function(a){for(var b=0;b<dP.length;b++)if(0<by(Fg,dP[b],a).length)return!0;return!1};q.kN=function(a){gapi.plusone.go(a)};q.jN=function(a){webspace.features.plusBadge&&gapi.plus.go(a)};q.sO=function(a){this.vI=a};q.fla=function(a){var b=y(this.dda,this,a);this.vI?b():webspace.features.gapiLoaderUtil?(b=y(this.cda,this,a),PH(b)):this.Gra(b)};q.Gra=function(a){var b=GH(Jw(ow(Ki)));b.ua(y(this.sO,this,!0));b.ua(a)};q.cda=function(a){this.sO(!0);this.kN(a);this.jN(a)};
q.dda=function(a){this.kN(a);this.jN(a)};q.gla=function(a){gbar.lPWF(y(this.kN,this,a));webspace.features.plusBadge&&(a=y(this.jN,this,a),this.vI?a():gbar.lPWF(y(this.Lra,this,a)))};q.Lra=function(a){var b=y(this.sO,this,!0);gapi.load("plus",function(){b();a()})};var gP=function(a,b){VO.call(this,a,b)};B(gP,VO);q=gP.prototype;q.Qi=null;q.Kw=function(){return!0};q.show=function(){var a=this.pJ(),b=this.v.w0();if(b){Yz(a,this.v.wY());var c=this.via(),e=this.ria();c!=e&&this.SAa(a,e)}R(a,b)};q.Ce=function(){};q.Vba=function(a,b){var c=this.v.qJ(a);c&&dI(dd,{id:a,type:c,path:webspace.page.path},y(this.foa,this,a,b),y(this.handleError,this))};
q.SAa=function(a,b){var c=this.j().b(Xn);b==Pm?(this.j().kl(a,c),a.id=ho,a.className="sites-layout-sidebar-right"):b==Ij&&(this.j().Su(a,c),a.id=go,a.className=qo)};q.pJ=function(){this.Qi||(this.Qi=this.j().b(go)||this.j().b(ho));return this.Qi};q.foa=function(a,b,c){c=c.target.Ba();c=this.j().Nh(xE(c.html));this.pJ().appendChild(c);WO(this.j(),[c]);fP(Pb+a);b(a)};q.via=function(){return dB(this.pJ(),qo)?Ij:Pm};q.ria=function(){var a=this.v.Bq();return this.v.Xu()?Ij:a?Pm:yi};
q.hx=function(a,b){var c=this.v.qJ(a);c&&dI(dd,{id:a,type:c,path:webspace.page.path},y(this.goa,this,a,b),y(this.handleError,this))};q.goa=function(a,b,c){c=c.target.Ba();c=this.j().Nh(xE(c.html));var e=this.j().b(Pb+a);yy(c,e);WO(this.j(),[c]);fP(Pb+a);b(a)};var hP=function(a,b){this.v=a;this.L=b||N()};hP.prototype.ug=function(){return this.L};hP.prototype.update=function(){var a=this.v.rJ();this.zwa();a&&!webspace.user.renderMobile?this.M6(a):this.M6()};
hP.prototype.zwa=function(){for(var a=FN(),b=0;b<a.length;b++){var c=a[b].href;if(c&&-1!=c.indexOf("overlay.css")){var e=EN(a[b]);if(!e)break;for(c=0;c<e.length;c++)if("#sites-chrome-header, #sites-chrome-main, #sites-chrome-footer"==e[c].selectorText){a=a[b];b=c;a.deleteRule?a.deleteRule(b):a.removeRule(b);break}else if("#sites-chrome-page-wrapper"==e[c].selectorText||"#sites-chrome-everything"==e[c].selectorText){var f=a[b],g=c;f.deleteRule?f.deleteRule(g):f.removeRule(g)}break}}};
hP.prototype.M6=function(a){a=a||"";var b=this.ug().b($n);Q(b,"min-width",a);if("no-repeat"==this.v.Nca&&"no-repeat"==this.v.Oca)b=this.ug().b("sites-chrome-page-wrapper"),Yz(b,a);else{b=this.ug().b(bo);var c=this.ug().b("sites-chrome-main"),e=this.ug().b(ao);Yz(b,a);Yz(c,a);Yz(e,a)}};var iP=function(a,b){VO.call(this,a,b);this.Fa=P(Yn)};B(iP,VO);iP.prototype.Kw=function(){return!0};iP.prototype.show=function(){dI("RenderSystemFooter",{},y(this.kn,this),y(this.handleError,this))};iP.prototype.Ce=function(){};iP.prototype.kn=function(a){a=a.target.Ba();this.Fa.innerHTML=a.html;WO(this.j(),[this.Fa])};var jP=function(a,b){VO.call(this,a,b);this.Fa=this.j().b(ao)};B(jP,VO);jP.prototype.Kw=function(){return this.v.PA()};jP.prototype.show=function(){dI("RenderCustomFooter",{},y(this.kn,this),y(this.handleError,this));My(this.Fa,!0);R(this.Fa,!0)};jP.prototype.Ce=function(){this.j().Ke(this.Fa);My(this.Fa,!1);R(this.Fa,!1)};jP.prototype.kn=function(a){a=a.target.Ba();this.Fa.innerHTML=a.html;WO(this.j(),[this.Fa]);bP(this.j());this.Fa.scrollIntoView()};var kP=function(){};w("sites.editor.chrome.LayoutHelper",kP,void 0);kP.prototype.Z1=function(a){a=String(a).replace(/\s*/g,"");a=a.replace(/[^0-9]/g,"");if("0"===a)throw Error(Vd);if(!a)throw Error("No digits supplied.");return Number(a)};
kP.prototype.Ysa=function(a){var b=String(a).replace(/[^0-9px%]/g,"");if(-1!=b.indexOf("%")||-1!=b.indexOf(n)){a=b.match(/([0-9]*)/)[0];if(!a)throw"Units provided without digits.";if(0==a)throw Vd;if(100<a&&-1!=b.indexOf("%"))throw">100% is invalid";return b}b=Number(a);if(isNaN(b))throw"No units provided, and value that was provided is not a number.";if(0>b)throw"Negative number is invalid.";if(0==b)throw Vd;b+=100>=b?"%":n;if(!b)throw"Could not handle value: "+a;return b};
kP.prototype.Kqa=function(a){a=Number(a);return isFinite(a)&&0==a%1&&0<=a&&2147483648>a};var lP=function(a,b){var c=Iq("sites.editor.ToolbarProvider.provideToolbar")(!0,!1,!0,!1);c=new (Iq("sites.editor.Editor"))("/config",c);c.addField(bp,!1,null,"body { font-family:Arial,Verdana,sans-serif;font-size:13px; }").setContent(a);c.setBaseZindex(200);c.open(!0);b(c)},mP=function(a){return(a=a.getField(bp))?a.getContent().replace(/\&nbsp;/g,"&#160;"):""};var nP=function(a,b,c){H.call(this,dg);this.lda=a;this.ara=b;this.Cwa=c||null};B(nP,H);var oP=function(a,b,c){wC.call(this,void 0,!1,c);this.Dc(a);this.Hg=b;this.Ob=new ZO(this.$,this.j());this.fb("Configure site header");this.A().listen(this,Cg,y(this.vc,this))};B(oP,iJ);w("sites.editor.chrome.HeaderDialog",oP,void 0);q=oP.prototype;q.g=function(){oP.c.g.call(this);this.J().innerHTML='<div class="sitelayout-dlg-section"><table border="0" class="sitelayout-dlg-section-border sitelayout-dlg-horizontal"><tr><td><h4 class="sitelayout-dlg-header-group">Height</h4><div><label class="sitelayout-dlg-header-group"><input id="sites-chrome-headerdialog-usethemedefault" name="headerheight" type="radio" class="sitelayout-dlg-header-group"/> Use theme default value</label></div><div><label class="sitelayout-dlg-header-group"><input id="sites-chrome-headerdialog-uselogoheight" name="headerheight" type="radio" class="sitelayout-dlg-header-group"/> Use logo size</label></div><div><span class="sitelayout-dlg-header-group"><input id="sites-chrome-headerdialog-usecustomheight" name="headerheight" type="radio" class="sitelayout-dlg-header-group"/> </span><input id="sites-chrome-headerdialog-customheight" type="text" dir="ltr" class="text-input sitelayout-dlg-header-group"/> pixels</div></td><td><h4 class="sitelayout-dlg-header-group">Alignment</h4><table border="0"><tr><td style="width: 84px; vertical-align: middle"><label class="sitelayout-dlg-header-group">Vertical:</label></td><td><select id="sites-chrome-headerdialog-verticalalign" class="sitelayout-dlg-header-group"><option value="themedefault" id="sites-chrome-headerdialog-verticalalign-themedefault">theme default</option><option value="top" id="sites-chrome-headerdialog-verticalalign-top">top</option><option value="middle" id="sites-chrome-headerdialog-verticalalign-middle">middle</option><option value="bottom" id="sites-chrome-headerdialog-verticalalign-bottom">bottom</option></select></td></tr></table><table border="0"><tr><td style="width: 84px; vertical-align: middle"><label class="sitelayout-dlg-header-group">Horizontal:</label></td><td><select id="sites-chrome-headerdialog-horizontalalign" class="sitelayout-dlg-header-group"><option value="standard" id="sites-chrome-headerdialog-horizontalalign-standard">Standard</option><option value="center" id="sites-chrome-headerdialog-horizontalalign-center">Center</option></select></td></tr></table></td></tr><tr><td colspan="2"><div class="goog-ws-logo sites-clear"><p><strong>Select Logo:</strong></p><table><tr><td><div><input id="sites-chrome-headerdialog-usenologo" type="radio" name="logo" class="goog-ws-logo-radio"/> No Logo</div><div><input id="sites-chrome-headerdialog-usecustomlogo" type="radio" name="logo" class="goog-ws-logo-radio"/> Custom Logo<div class="goog-ws-logo-custom"><img id="sites-chrome-headerdialog-customlogoimage" style="display:block;margin:2px 0;max-width:230px"/></div><div class="goog-ws-logo-upload sites-clear"><form id="sites-chrome-headerdialog-logoattachmentform" enctype="multipart/form-data" method="POST" style="margin-bottom: 5px;"><p>Attach a file:<br/><input id="sites-chrome-headerdialog-logofileinput" name="userfile" type="file"/><input type="hidden" name="pagePath" value="/config"/><input type="hidden" name="overrideFileName" value="customLogo.gif"/></p></form></div></div></td><td><div id="sites-chrome-header-dialog-usedefaultlogo-container"><input id="sites-chrome-headerdialog-usedefaultlogo" type="radio" name="logo" class="goog-ws-logo-radio"/> Domain Default Logo <span id="sites-chrome-headerdialog-defaultlogo-none">(No logo)</span><br/><img class="goog-ws-logo-default-scaled" id="sites-chrome-headerdialog-defaultlogoimage"/></div></td></tr></table></div></td></tr></table></div>'};
q.B=function(){oP.c.B.call(this);var a=this.j();this.IEa=a.b("sites-chrome-headerdialog-usethemedefault");this.N9=a.b("sites-chrome-headerdialog-uselogoheight");this.NQ=a.b("sites-chrome-headerdialog-usecustomheight");this.VG=a.b("sites-chrome-headerdialog-customheight");a.b("sites-chrome-headerdialog-verticalalign");this.REa=a.b("sites-chrome-headerdialog-verticalalign-themedefault");this.Y9=a.b("sites-chrome-headerdialog-verticalalign-top");this.X9=a.b("sites-chrome-headerdialog-verticalalign-middle");
this.W9=a.b("sites-chrome-headerdialog-verticalalign-bottom");a.b("sites-chrome-headerdialog-horizontalalign");this.ipa=a.b("sites-chrome-headerdialog-horizontalalign-standard");this.b_=a.b("sites-chrome-headerdialog-horizontalalign-center");this.M9=a.b("sites-chrome-headerdialog-usedefaultlogo");this.P9=a.b("sites-chrome-headerdialog-usenologo");this.QE=a.b("sites-chrome-headerdialog-usecustomlogo");this.L9=a.b("sites-chrome-header-dialog-usedefaultlogo-container");a.b("sites-chrome-header-dialog-defaultlogoimage-container");
this.lV=a.b("sites-chrome-headerdialog-defaultlogo-none");this.Ey=a.b("sites-chrome-headerdialog-defaultlogoimage");this.WG=a.b("sites-chrome-headerdialog-customlogoimage");this.Vra=a.b("sites-chrome-headerdialog-logoattachmentform");this.NL=a.b("sites-chrome-headerdialog-logofileinput");a.b(bo);this.A().listen(this.NL,tf,y(this.Tma,this))};q.Hc=function(){oP.c.Hc.call(this);this.Xi(this.$)};q.Xi=function(a){this.XDa(a);this.uEa(a);this.$Da(a);this.dEa(a);this.UDa(a);this.NL.value=""};
q.XDa=function(a){this.IEa.checked=a.tqa();this.N9.checked=a.c0();a.sqa()?(this.NQ.checked=!0,this.VG.value=a.VI()):(this.NQ.checked=!1,this.VG.value=null)};q.uEa=function(a){this.REa.selected=a.yqa();this.Y9.selected=a.zqa();this.X9.selected=a.xqa();this.W9.selected=a.wqa()};q.$Da=function(a){this.ipa.selected=a.vqa();this.b_.selected=a.uqa()};q.dEa=function(a){this.M9.checked=a.Gqa();this.P9.checked=a.Hqa();a.Fqa()?(this.QE.checked=!0,this.WG.src=a.OL):(this.QE.checked=!1,this.WG.src=JOT_clearDotPath)};
q.UDa=function(a){a.ora()?(R(this.L9,!0),a=a.bH,"NO_LOGO"==a?(R(this.lV,!0),R(this.Ey,!1),this.Ey.src=""):(R(this.lV,!1),R(this.Ey,!0),this.Ey.src=a)):R(this.L9,!1)};q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;this.dispatchEvent(new nP(a,!1,y(this.Ob.update,this.Ob)))}this.dispose();return!0};
q.dd=function(){var a=new NO;if(this.NQ.checked)try{a.uO(pg,this.Hg.Z1(this.VG.value))}catch(b){alert("Please enter a valid value for header height.");return}else a.uO(this.N9.checked?"logo":dp);a.wza(this.Wka());a.vza(this.Uia());this.QE.checked&&this.Ura?a.EO(pg,"CUSTOM_LOGO_2",this.Tra):this.M9.checked?a.EO(Og):this.P9.checked&&(a.EO(Ek),a.c0()&&a.uO(dp));return a};q.Wka=function(){return this.W9.selected?lf:this.X9.selected?hk:this.Y9.selected?op:dp};
q.Uia=function(){return this.b_.selected?sf:Mo};q.Tma=function(){this.NL.value.match(xO)?eI("AttachFile",this.Vra,null,y(this.Sma,this),y(this.Rma,this)):alert(Kb)};q.Sma=function(a){a=a.target.Ba();a.error?/TooLarge/.exec(a.error)?S(this.tja(a.maxSize)):/AttachmentEmpty/.exec(a.error)?S("ERROR: The attachment is empty."):S(a.error):(this.Ura=!0,this.Tra=a.version,this.QE.checked=!0,this.WG.src=a.cacheUrl)};
q.tja=function(a){return"ERROR: The attachment exceeds the maximum size of "+((Math.round(a/1048576)||1)+" megabytes.")};q.Rma=function(){S("An error occurred while uploading the file.")};var pP=function(a){a=cr(a);if(0>a.indexOf(":"))if(0<a.indexOf("@"))a="mailto:"+a;else if(0<a.indexOf(".")||0<a.indexOf("/"))a="http://"+a;else return null;var b=a.match(/^([a-zA-Z]+):([^\s<>]+)$/);if(!b||!b[1]||!b[2])return null;b=b[1].toLowerCase();return"javascript"==b||b==rh?null:a};var qP=function(a,b,c,e,f,g,h,l){this.ea=a;this.CH=my(d,{className:"goog-sites-pagefinder goog-ws-lp-list"});this.ea.appendChild(this.CH);this.cm=[];this.zE=0;this.Fd=b;this.xga=!!e;this.RH=!!f;this.SH=!!g;this.Aga=!!h;this.tW=!!l;this.fQ=[];this.wn={};this.iD=!1;this.gU="goog-ws-tree-wrapper jfk-scrollbar";this.tW||this.Eea();this.rea();c&&this.show()};q=qP.prototype;q.ks=1;q.Oo=0;q.baa=5;q.show=function(){Us(this.wn)&&(this.tQ?this.CL||this.f1():this.JU());this.tW||this.Zf.focus()};
q.S4=function(){this.EN&&this.GN(this.Zf.value);return this.EN};q.Eea=function(){var a=my(d);this.CH.appendChild(a);ty(a);ry(a,my(Jc,{type:$o,size:"15"}));this.Zf=a.firstChild;I(this.Zf,Aj,function(a){13==a.keyCode&&(this.GN(this.Zf.value),a.stopPropagation())},!1,this);I(this.Zf,zh,function(){this.EN=!0},!1,this);I(this.Zf,hf,function(){this.EN=!1},!1,this);var b=lG();b.render(a);I(b,k,function(){this.GN(this.Zf.value)},!1,this)};q.IT=function(a){return A()-a>6E4*this.baa?!0:!1};
q.f1=function(){if(this.wn.recentChanges||this.CL&&!this.IT(this.CL))return!1;this.wn.recentChanges=!0;dI("LoadRecentChanges",{excludeCurrentPath:this.RH,currentPath:webspace.page.path},y(this.Kva,this),null);return!0};
q.JU=function(){this.wn.siteMap||this.tQ&&!this.IT(this.tQ)||(this.wn.siteMap=!0,webspace.shallowSearch(this.RH?{forAll:!0,includeReadOnly:!this.SH,includePermissionsMetaData:!0,filterName:"pageFinderExcludeCurrent",filterVars:{$path:webspace.page.path}}:{forAll:!0,includeReadOnly:!this.SH,includePermissionsMetaData:!0,filterName:pl},y(this.FDa,this)))};
q.rea=function(){var a=my(d);this.CH.appendChild(a);this.Si=new JC(a,0);I(this.Si,tf,function(){var a=this.fQ[this.Si.yg()];a&&a()},!1,this);this.yF("Site map",this.Oo);this.fQ[this.Oo]=y(this.JU,this);this.Aga||(this.yF("My Recent Changes",this.ks),this.fQ[this.ks]=y(this.f1,this));this.Si.Yk(this.Oo).J().className=this.gU};q.Kva=function(a){a=a.target.getResponseJson();a.error?S("Error finding recent changes."):(this.wn.recentChanges=!1,this.CL=A(),this.U3(a.myChanges,this.ks))};
q.FDa=function(a){a=a.target.getResponseJson();if(a.error)S("Error finding Site Tree.");else{this.wn.siteMap=!1;this.tQ=A();this.cm[this.Oo]={};var b=this.Si.Yk(this.Oo).J();ty(b);var c=my(d);b.appendChild(c);this.Rw=rP(a,void 0,c,null,y(this.DDa,this),function(a){var b=-1==Bw(a[Wj],void 0)?Tm:Tj;return'<span title="'+qr(a.path)+oa+b+ua+qr(a[Wj])+ob},!0,this.Fd);this.EP()}};
q.oCa=function(a){this.iD=!1;a=a.target.getResponseJson();a.error?S("Error searching site."):(u(this.V7)||(this.V7=this.yF("Search results")),this.U3(a,this.V7,!0))};q.yF=function(a,b){var c=!1,e=a;65<a.length+this.zE?(c=65-this.zE,a=a.substring(0,2<c?c:2),c=!0):20<a.length&&(a=a.substring(0,20),c=!0);this.zE+=a.length;a=new KC(null,a);c&&a.dn().setAttribute(ip,e);this.Si.qs(a,b);ty(a.J());b=a.J();e=my("UL",null,my("LI",null,my("STRONG",null,Sc)));b.appendChild(e);return a.xn};
q.U3=function(a,b,c){this.cm[b]={};var e=this.Si.Yk(b).J();ty(e);e=e.appendChild(my("UL"));if(0==a.length)a=my(d,{style:"margin:10px"},"No results found"),e.appendChild(a);else{e.className=this.gU;for(var f=0;f<a.length;f++)a[f].path&&e.appendChild(this.T3(a[f],b))}c&&this.Si.kf(b);this.EP();this.eX&&this.wEa(this.eX)};
q.T3=function(a,b){var c=my("LI"),e=c.appendChild(my("A"));e.href="#";var f=-1==Bw(a[Wj],void 0)?Tm:Tj,g=ur(a[Wj]),h=e.appendChild(my(gd));h.setAttribute("dir",f);Gy(h,g);e.onclick=function(){return!1};e.title=a.path;e.wuid=a.wuid;I(e,nk,this.gja(a.path));var l=this,p=a.path;I(e,zj,function(a){13==a.keyCode&&(l.nr(p),l.Fd&&l.Fd(a),a.preventDefault())});this.cm[b]||(this.cm[b]={});this.cm[b][a.path]=e;return c};q.gja=function(a){return y(function(){this.nr(a)},this)};
q.DDa=function(){var a=this.Rw.getSelectedItem(!0);a&&this.nr(a.getClientData().path)};q.GN=function(a){a&&!this.iD&&(this.iD=!0,dI("KeywordSearch",{excludeCurrentPath:this.RH,currentPath:webspace.page.path,excludeAttachments:this.xga,excludeNonEditablePages:this.SH,keywords:a,limit:100},y(this.oCa,this),y(function(){this.iD=!1},this)))};
q.wEa=function(a){this.eX=null;var b=this.Si.Yk(this.ks);if(!this.nr(a.path)){var c=b.J(),e=this.T3(a,this.ks);c.firstChild?c.insertBefore(e,c.firstChild):c.appendChild(e);this.nr(a.path)}this.Si.WO(b)};q.qY=function(){return this.Li&&this.Xg&&0<this.Xg.length?Oy(this.Xg[0]):null};q.nr=function(a,b){this.unselect();this.Li=a;this.EP();0!=this.Xg.length||b||(this.gw=this.Li=null);return null!=this.Li};
q.EP=function(){var a=null;if(this.Li){var b=this.Si.yg(),c=null;this.Xg=[];for(var e=0;e<this.cm.length;e++){if(e==this.Oo){var f=null;if(this.Rw){var g=this.Rw.setSelectedPageByPath(this.Li);g&&(f=g.getLabelElement().parentNode,a=a||g.getClientData().wuid)}}else this.cm[e]&&(f=this.cm[e][this.Li])&&(a=a||f.wuid);f&&(aB(f,hn),this.Xg.push(f),e==b&&(c=f))}0<this.Xg.length&&(f=c?c:this.Xg[0],f!=c&&E||f.focus())}this.gw=a};
q.unselect=function(){if(this.Xg&&0!=this.Xg.length){for(var a=0;a<this.Xg.length;a++)cB(this.Xg[a],hn);this.gw=this.Li=this.Xg=null}};q.dispose=function(){this.Rw&&this.Rw.dispose()};var sP=function(a,b,c){wC.call(this,void 0,!1,c);this.Gv=a;this.bs=b||null;this.fb(this.bs?"Edit URL or email address":"Add a URL or email address");this.A().listen(this,Cg,y(this.vc,this))};B(sP,iJ);w("sites.editor.chrome.NavigationAddLinkDialog",sP,void 0);q=sP.prototype;q.mQ=null;q.PE=null;q.H2=null;q.g=function(){sP.c.g.call(this);var a={webspace:webspace};null==this.bs?(a.url="",a.title="",a.G2=!1):(a.url=this.bs.$d().url||"",a.title=this.bs.$d()[Wj],a.G2=!!this.bs.$d()[Vj]);SE(this.J(),OI,a)};
q.Hc=function(){sP.c.Hc.call(this);var a=this.j();this.mQ=a.b("sites-chrome-externalurl-title");this.mQ.focus();this.PE=a.b("sites-chrome-externalurl-url");this.H2=a.b("sites-chrome-externalurl-opennewwin")};q.vc=function(a){if(Lk==a.key){this.j();a=pP(this.PE.value);if(!a)return this.PE.focus(),this.PE.select(),xG("Warning","Please enter a valid URL or email address."),!1;var b=cr(this.mQ.value)||a;this.gEa(a,b,this.H2.checked,this.bs)}this.dispose();return!0};
q.gEa=function(a,b,c,e){if(e){var f=e.$d();f.url=a;f[Wj]=b;f[Vj]=c;this.Gv.AO(e,f)}else this.Gv.G_({url:a,"main/title":b,"main/openNewWin":c})};var tP=function(a,b){wC.call(this,void 0,!1,b);this.Gv=a;this.fb("Select page to add");this.A().listen(this,Cg,y(this.vc,this))};B(tP,iJ);w("sites.editor.chrome.NavigationAddPageDialog",tP,void 0);q=tP.prototype;q.b9=null;q.Tq=null;q.g=function(){tP.c.g.call(this);this.J().appendChild(this.j().g(d,{id:"treeDiv"}))};q.Hc=function(){tP.c.Hc.call(this);this.b9=this.j().b("treeDiv");this.Tq=new qP(this.b9,y(this.vc,this),!0,!0);this.ha();var a=Lz(this.b());Kz(this.b(),a.x+20,a.y+80)};
q.vc=function(a){if(void 0==a.key||Lk==a.key)if(this.Tq.gw)a={wuid:this.Tq.gw,path:this.Tq.Li,"main/title":this.Tq.qY()},this.Gv.MM[a.wuid]=a,this.Gv.G_(a);else return xG("Warning","Please select a page."),!1;this.dispose();return!0};q.o=function(){G(this.Tq);tP.c.o.call(this)};var uP=function(a,b,c,e){wC.call(this,void 0,!1,b);this.Dc(a);this.MM={};if(this.ol=!!c){if(!e)throw"opt_sidebarWidgetId must be defined";this.$a=e;this.Mr=new gP(a,this.j())}else this.e_=new cP(a,this.j());this.fb("Configure navigation");this.A().listen(this,Cg,y(this.vc,this))};B(uP,iJ);w("sites.editor.chrome.NavigationDialog",uP,void 0);q=uP.prototype;q.sQ=null;q.R1=null;q.P1=null;q.J3=null;q.q_=null;q.L2=null;q.iS=null;q.hS=null;q.Qw=null;q.Rv=null;q.BL=null;q.gQ=null;q.dT=null;q.fg=null;
q.yH=null;q.ut=null;q.ct=null;q.VV=null;q.s1=null;q.V1=null;q.g=function(){uP.c.g.call(this);var a=this.ol?this.Aka():this.Via();SE(this.J(),PI,a);aB(this.Dj(),"sites-sitelayouteditor-navigation-dialog")};q.Via=function(){return{title:null,baseUri:webspace.baseUri,SA:!0,tK:this.SX(),HM:this.fY()}};q.Aka=function(){var a=this.$.Cf(ip,this.$a);a||(a="Navigation");return{title:a,baseUri:webspace.baseUri,SA:!1,tK:this.SX(),HM:this.fY()}};q.SX=function(){return webspace.page.isRtlLocale?eo:fo};
q.fY=function(){return webspace.page.isRtlLocale?fo:eo};q.ola=function(a){(new tP(this)).C(!0);a.stopPropagation();a.preventDefault()};q.nla=function(a){(new sP(this)).C(!0);a.stopPropagation();a.preventDefault()};
q.B=function(){uP.c.B.call(this);var a=this.j();this.sQ=a.b("pageListEl");this.R1=a.b("moveUpBtn");this.P1=a.b("moveDownBtn");this.J3=a.b("removeBtn");this.q_=a.b("indentBtn");this.L2=a.b("outdentBtn");this.iS=a.b("addPageBtn");this.hS=a.b("addLinkBtn");this.Qw=a.b("showSitemap");this.Rv=a.b("showRecentSiteActivity");this.ol?(this.yH=a.b("displayTitleCheckbox"),this.ut=a.b("dynamicModeCheckbox"),this.ct=a.b("depthSelector"),this.VV=a.b("dynamicModeEditor"),this.s1=a.b("manualModeEditor"),this.V1=
a.b("navTitle")):(this.BL=a.b("navbarTabTypeLinks"),this.gQ=a.b("navbarTabTypeTabs"),this.dT=a.b("navbarTabTypeBoxes"));this.A().listen(new nB(this.iS),k,this.ola).listen(new nB(this.hS),k,this.nla)};q.Hc=function(){uP.c.Hc.call(this);this.Xi(this.$)};
q.Xi=function(){this.j();this.fg=this.Vca(this.Qka());if(this.ol){this.yH.checked=this.$.Cf("hideTitle",this.$a)!=sp;var a=this.$.Cf(Ak,this.$a)||0;this.ut.checked=0<a;this.ct.selectedIndex=Math.min(this.ct.options.length,a||2)-1;this.x7();this.A().listen(this.ut,Bf,this.x7);this.Qw.checked=this.$.Cf("showSiteMap",this.$a);this.Rv.checked=this.$.Cf("showRecents",this.$a)}else this.fg.Vza(2),this.Qw.checked=this.$.zka(),this.Rv.checked=this.$.yka(),this.BL.checked="links"==this.$.XI(),this.gQ.checked=
"tabs"==this.$.XI(),this.dT.checked="boxes"==this.$.XI();this.fg.A().listen(new nB(this.R1),k,this.fg.Nsa).listen(new nB(this.P1),k,this.fg.Msa).listen(new nB(this.J3),k,this.fg.twa).listen(new nB(this.q_),k,this.fg.xpa).listen(new nB(this.L2),k,this.fg.zua)};q.Qka=function(){var a=new GO;this.$R(a,this.Gja());return a};q.$R=function(a,b){for(var c=0;c<b.length;c++){var e=this.Wca(b[c]);e&&a.ca(e)}};
q.Wca=function(a){var b=null;if(typeof a==So)var c=a;else c=a.id,b=a.children;c=cr(c);if(!c||"/system/app/pages/sitemap/hierarchy"===c||"/system/app/pages/recentChanges"===c)return null;var e=a;e&&0==c.indexOf("wuid:")&&a.title?(e={wuid:c,"main/title":a.title,path:a.path},this.MM[c]=e):e&&0==c.indexOf("wuid:")?e=this.MM[c]:0!=c.indexOf("wuid:")&&(e={url:c,"main/title":a.title,"main/openNewWin":!!a.openNewWin});a=null;e&&(a=new FO(e),typeof b==Jk&&this.$R(a,b));return a};
q.Vca=function(a){a=new HO(a,!1,webspace,void 0,void 0,y(this.ena,this));a.xw(function(a,b){var c=a[Wj];c&&(b=b.getParent()==b.zd(),a=!!a[Vj],c=""+(b?"<b>":"")+W(c)+(a?'<span class="sites-chrome-navigationdialog-btn sites-chrome-navigationdialog-icon-popout"></span>':"")+(b?"</b>":""));return c});a.DD(!1);var b=a.aa;b.$O(!1);b.ZO(!1);b=b.v;b.Vs=null;b.OG=b.NG=null;b.$U="goog-tree-row jot-navconfig-tree-row";ty(this.sQ);a.g();ry(this.sQ,a.b());a.B();return a};
q.ena=function(a,b){a.$d().url&&(new sP(this,a)).C(!0);b.stopPropagation();b.preventDefault()};q.Gja=function(){var a;if(a=this.ol?this.$.Cf(Ck,this.$a):this.$.XH)try{a=JSON.parse(a),a.children&&(a=a.children)}catch(b){a=null}return a||[]};q.x7=function(){var a=this.ut.checked;R(this.VV,a);R(this.s1,!a)};q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;var b=this.ol?y(this.Mr.hx,this.Mr,this.$a):y(this.e_.update,this.e_);this.dispatchEvent(new nP(a,this.ol,b))}this.dispose();return!0};
q.dd=function(){var a=new NO;if(this.ol){var b=0;this.ut.checked?(b=Math.max(0,this.ct.selectedIndex)+1,b>=this.ct.options.length&&(b=999)):a.hf(Ck,this.sY(),this.$a);a.hf(Ak,String(b),this.$a);a.hf("showSiteMap",this.Qw.checked,this.$a);a.hf("showRecents",this.Rv.checked,this.$a);a.hf(ip,this.V1.value,this.$a);a.hf("hideTitle",String(!this.yH.checked),this.$a)}else a.zza(this.sY()),a.QAa(this.Qw.checked),a.PAa(this.Rv.checked),a.yza(this.Gka());return a};q.sY=function(){return lv(this.fg.Xja())};
q.Gka=function(){return this.BL.checked?"links":this.gQ.checked?"tabs":"boxes"};q.G_=function(a){a=this.fg.qs(a,this.fg.xa());this.fg.aa.Bb(a)};q.AO=function(a,b){this.fg.AO(a,b)};var vP=function(a,b,c){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Configure Ad Placement");this.$a=c;this.Ph(IC());this.Ob=new gP(a,this.j());this.Ni(!0)};B(vP,iJ);vP.prototype.g=function(){vP.c.g.call(this);SE(this.J(),QI);Yz(this.J().parentNode,"475px")};var wP=function(a,b,c){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Configure Countdown");this.$a=c;this.Ob=new gP(a,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(wP,iJ);q=wP.prototype;q.qW=null;q.bt=null;q.g=function(){wP.c.g.call(this);var a=this.$.Cf(ih,this.$a)||"";SE(this.J(),RI,{event:a})};
q.B=function(){wP.c.B.call(this);var a=rB.No[1],b=new zB(a);a=new ID(a);b=new ND(b,a);a=b.Az();a.RAa(!1);a.OAa(!1);"ja"==webspace.page.locale&&a.lza(6);a=this.j();var c=a.b("dateEl");b.R(c);this.bt=b;this.Y(b);this.Dwa();this.qW=a.b("eventEl")};q.Dwa=function(){var a=this.$.Cf("fromDateUTC",this.$a);if(a){var b=new uB;rr(a,"-")?(a=a.split("-"),b.setYear(a[0]),b.setMonth(a[1]-1),b.setDate(a[2])):b.setTime(a);this.bt.setDate(b)}else(b=this.$.Cf("fromDate",this.$a))&&"undefined"!=b?this.bt.b6(b):this.bt.setDate(new uB)};
q.uga=function(a){alert(a)};q.dd=function(){var a=this.bt.getDate();if(!a)return this.uga("Please enter a valid date."),null;var b=new NO;b.hf(ih,this.qW.value,this.$a);a=a.getYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();b.hf("fromDateUTC",a,this.$a);return b};q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;this.dispatchEvent(new nP(a,!0,y(this.Ob.hx,this.Ob,this.$a)))}this.dispose();return!0};var xP=function(a,b,c){wC.call(this,a,b,c);this.fb("Google+ Page URL");this.A().listen(this,Cg,this.Ila);vG(this,this.Wb.qj)};B(xP,iJ);var yP=/^\d+$/;q=xP.prototype;q.BK=null;q.Cd=null;q.$H=null;q.g=function(){xP.c.g.call(this);this.BK=this.Ig("plusPageInput");var a=this.J(),b={id:webspace.plusPageId,Vpa:this.BK};this.$H&&at(b,this.$H);this.j().appendChild(a,UE(uO,b))};
q.B=function(){xP.c.B.call(this);this.b().style.width="475px";var a=this.j().b(this.BK);this.A().listen(a,[Bj,tf],this.yma);this.Cd=a};q.yma=function(){this.Cd.style.color=this.z0(cr(this.Cd.value))?gf:"red"};q.mO=function(a){this.tO(a);fB(this.Cd,!a);this.Wb.jya(a)};q.KY=function(){var a=this.$I();return null!==a&&""!==a?(a=encodeURIComponent(String(a)),"https://plus.google.com/"+a+"/"):""};q.$I=function(){if(this.Cd){var a=cr(this.Cd.value);if(this.z0(a))return a}return null};
q.z0=function(a){return""===a||yP.test(a)};q.N5=function(a){this.$H=a};q.Ila=function(a){if(a.key!=this.Wb.qj)return!0;a=this.$I();if(null===a)return S("Invalid page ID"),M(SA,5E3),!1;if(this.KY()==webspace.plusPageUrl)return!0;dI("SaveConfig",{properties:{"config/plusPageId":a}},y(this.Hna,this),y(this.sZ,this));this.mO(!1);return!1};q.Hna=function(a){a.target.getResponseJson().error?this.sZ(a):this.Ina(a)};
q.Ina=function(){webspace.plusPageUrl=this.KY();webspace.plusPageId=this.$I();SA();this.mO(!0);this.C(!1)};q.sZ=function(){S("Unable to save the setting. Please try again later.");this.mO(!0)};q.o=function(){this.Cd=null;xP.c.o.call(this)};var zP=function(){};q=zP.prototype;q.V2=null;q.OE=null;q.K9=null;q.MQ=null;q.CT=null;q.lna=function(a,b,c,e){this.K9=P(c);this.CT=P(a);this.MQ=P(b);this.OE=new xP;this.V2=e;I(this.OE,zi,this.Hla,!1,this);I(new nB(this.CT),k,y(this.N7,this));this.OE.N5({J7:!0,O7:!webspace.plusPageUrl});webspace.plusPageUrl||this.N7()};q.N7=function(){this.OE.C(!0)};q.Hla=function(){webspace.plusPageUrl?this.iEa():this.V2.C(!1)};
q.iEa=function(){var a=webspace.plusPageUrl;R(this.K9,!!a);a&&(this.MQ.href=a,Gy(this.MQ,a))};var AP=function(a,b,c){wC.call(this,void 0,!1,c);this.Dc(a);this.$ua=new zP;this.fb("Configure Google+ Badge");this.$a=b;this.Ob=new gP(a,this.j());this.A().listen(this,Cg,y(this.vc,this));this.Ni(!0)};B(AP,iJ);var BP={u$:"changeUrlId",$aa:Op,Zaa:"urlPreviewId"};AP.prototype.g=function(){AP.c.g.call(this);var a={style:this.$.Cf(To,this.$a)||"",url:webspace.plusPageUrl,Rc:BP};SE(this.J(),MI,a);Yz(this.J().parentNode,"475px")};
AP.prototype.B=function(){AP.c.B.call(this);this.QCa=this.j().b(To);this.$ua.lna("changeUrlId",Op,"urlPreviewId",this)};AP.prototype.dd=function(){var a=new NO;a.hf(To,this.QCa.value,this.$a);return a};AP.prototype.vc=function(a){Lk==a.key&&(a=this.dd(),this.dispatchEvent(new nP(a,!0,y(this.Ob.hx,this.Ob,this.$a))));return!0};var CP=function(a,b,c,e,f){wC.call(this,void 0,!1,c);this.Dc(a);this.Hg=b;a="Configure Recent Site Activity";f&&(a="Configure My Recent Activity");this.fb(a);this.$a=e;this.Ob=new gP(this.$,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(CP,iJ);q=CP.prototype;q.pM=null;q.pW=null;q.g=function(){CP.c.g.call(this);var a=this.$.Cf("numItems",this.$a)||"";SE(this.J(),SI,{oM:a})};q.B=function(){CP.c.B.call(this);this.pM=this.j().b("numItemsEl");this.pW=this.j().b("errEl")};
q.dd=function(){var a=new NO,b=this.pM.value;if(this.Hg.Kqa(b))return a.hf("numItems",b,this.$a),a;Q(this.pW,"display","");this.pM.focus()};q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;this.dispatchEvent(new nP(a,!0,y(this.Ob.hx,this.Ob,this.$a)))}this.dispose();return!0};var DP=function(a,b){J.call(this);this.v=a;this.L=b||N();this.qh=new NN;this.qh.zF(this.qh);this.qh.init();this.Y(this.qh);I(this.qh,Rg,y(this.Sfa,this));I(this.qh,Qg,y(this.Rfa,this));I(this.qh,"drop",y(this.Wfa,this));I(this.qh,Sg,y(this.Tfa,this));I(this.qh,"dragend",y(this.Qfa,this))};B(DP,J);q=DP.prototype;q.vba=function(a,b){a=new MN(a,b);a.OI=function(a){if(!a.id||!a.id.match(/COMP_[a-z0-9]+/))for(;null!=a.parentNode&&(a=a.parentNode,!a.id||!a.id.match(/COMP_[a-z0-9]+/)););return a};this.qh.tF(a)};
q.bwa=function(a){this.qh.removeItem(a)};q.Wfa=function(a){var b=a.sh.element;a=a.Jk.element;cB(a,Kn);if(b!=a){this.Osa(b,a);b=[];a=this.L.b(go)||this.L.b(ho);a=this.L.Pc(a);for(var c=0;c<a.length;c++){var e=a[c];e&&e.id&&e.id.match(/COMP_[a-z0-9]+/)&&b.push(e.id.substring(5))}a=new NO;a.K6(this.v.uY());a.aP(b);this.dispatchEvent(new nP(a,!0,null))}};
q.Osa=function(a,b){for(var c=null,e=b.previousSibling;e;){if(e&&e.id&&e.id.match(/COMP_[a-z0-9]+/)){c=e;break}e=e.previousSibling}var f=null;for(e=b.nextSibling;e;){if(e&&e.id&&e.id.match(/COMP_[a-z0-9]+/)){f=e;break}e=e.nextSibling}e=a.parentNode;c?f?1==this.Nda(a,b)?e.insertBefore(a,f):e.insertBefore(a,b):e.insertBefore(a,f):e.insertBefore(a,b)};q.Nda=function(a,b){if(a===b)return 0;for(a=a.previousSibling;a;){if(a===b)return-1;a=a.previousSibling}return 1};q.Tfa=function(a){aB(a.sh.element,Ln)};
q.Qfa=function(a){cB(a.sh.element,Ln)};q.Sfa=function(a){aB(a.Jk.element,Kn)};q.Rfa=function(a){cB(a.Jk.element,Kn)};var EP=function(a,b,c){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Configure Text Box");this.$a=c;this.Ob=new gP(this.$,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(EP,iJ);q=EP.prototype;q.Dp=null;q.J8=null;q.g=function(){EP.c.g.call(this);var a=this.$.Cf(ip,this.$a)||"";SE(this.J(),TI,{title:a});Yz(this.J().parentNode,"475px")};
q.B=function(){EP.c.B.call(this);this.J8=this.j().b("titleEl");var a=this.$.Cf("content",this.$a)||"",b=y(this.HJ,this);bH.jv(webspace.editorResources.text).ua(Wq(lP,a,b))};q.HJ=function(a){this.Dp=a;this.ha()};q.dd=function(){var a=new NO;a.hf(tp,cb,this.$a);a.hf(ip,this.J8.value,this.$a);a.hf("content",mP(this.Dp),this.$a);return a};
q.vc=function(a){if(Lk==a.key)a=this.dd(),this.dispatchEvent(new nP(a,!0,y(this.Ob.hx,this.Ob,this.$a)));else if(this.Dp.hasUnsavedChanges()){a=y(this.dispose,this);var b=lx("Are you sure you want to discard your unsaved changes?");wG("Close Text Box",b,a,null,void 0,void 0,void 0,void 0);return!1}this.dispose();return!0};var FP=function(a,b){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Choose a New Sidebar Item");this.Ph((new xC).Gd(DC,!1,!0));this.Ob=new gP(a,this.j());this.Ni(!0)};B(FP,iJ);w("sites.editor.chrome.SidebarWidgetDialog",FP,void 0);q=FP.prototype;
q.g=function(){FP.c.g.call(this);var a=this.Yja(this.$),b=this.J();a='<div class="goog-ws-element"><div class="goog-ws-list-gadget">'+(a.Sqa?'<div class="goog-ws-element-section"><table><tr><td class="goog-ws-element-icon"><div class="goog-plusone-icon"></div></td><td><p><strong>+1 button</strong><br/>Add a +1 button that lets visitors recommend your pages and helps your site stand out.</p><div id="sites-layout-add-plus-one-widget"></div></td></tr></table></div>':"")+(a.Rqa?'<div class="goog-ws-element-section"><table><tr><td class="goog-ws-element-icon"><div class="goog-plusbadge-icon"></div></td><td><p><strong>Google+ badge</strong><br/>Add a Google+ badge that lets visitors recommend your pages and helps your site stand out.</p><div id="sites-layout-add-plus-badge-widget"></div></td></tr></table></div>':
"")+(wb+W(a.wI)+'"/></td><td><p><strong>Navigation</strong><br/>Add links to individual pages for users of your site to quickly access</p><div id="sites-layout-add-navigation-widget"></div></td></tr></table></div>')+(wb+W(a.lDa)+'"/></td><td><p><strong>Text</strong><br/>Add text to your site\'s sidebar</p><div id="sites-layout-add-text-widget"></div></td></tr></table></div>')+(wb+W(a.w3)+'"/></td><td><p><strong>Recent site activity</strong><br/>A list of recent activity in your site</p><div id="sites-layout-add-recent-changes-widget"></div></td></tr></table></div>')+
(wb+W(a.w3)+'"/></td><td><p><strong>My recent activity</strong><br/>A list of recent activity by the currently signed-in user</p><div id="sites-layout-add-my-recent-changes-widget"></div></td></tr></table></div>')+(wb+W(a.$da)+'"/></td><td><p><strong>Countdown</strong><br/>Countdown days to a specific date</p><div id="sites-layout-add-countdown-widget"></div></td></tr></table></div>')+(wb+W(a.wI)+'"/></td><td><p><strong>Site owners</strong><br/>Display the owners of your site in your site\'s sidebar</p><div id="sites-layout-add-site-admins-widget"></div></td></tr></table></div>')+
('<div class="goog-ws-element-section" style="border:0;"><table><tr><td class="goog-ws-element-icon"><img src="'+W(a.wI)+'"/></td><td><p><strong>Page authors</strong><br/>Display recent page authors in your site\'s sidebar</p><div id="sites-layout-add-recent-authors-widget"></div></td></tr></table></div>')+"</div></div>";b.innerHTML=a};q.B=function(){FP.c.B.call(this);this.ypa()};
q.ypa=function(){this.Mh("sites-layout-add-adsense-widget",Ib,"adsense");this.Mh("sites-layout-setup-adsense-widget","Setup AdSense");this.Mh("sites-layout-add-plus-one-widget",Ib,"plusone");this.Mh("sites-layout-add-plus-badge-widget",Ib,qm);this.Mh("sites-layout-add-navigation-widget",Ib,Bk);this.Mh("sites-layout-add-text-widget",Ib,$o);this.Mh("sites-layout-add-recent-changes-widget",Ib,"recentchanges");this.Mh("sites-layout-add-my-recent-changes-widget",Ib,yk);this.Mh("sites-layout-add-countdown-widget",
Ib,"countdown");this.Mh("sites-layout-add-site-admins-widget",Ib,"siteadmins");this.Mh("sites-layout-add-recent-authors-widget",Ib,"recentauthors")};q.Mh=function(a,b,c){if(a=P(a)){var e=new hG(b);e.render(a);"Setup AdSense"==b?this.A().listen(e,k,this.Pva):this.A().listen(e,k,y(this.Wba,this,c));this.Y(e);return e}return null};q.Pva=function(){Sx(window.location,XH(webspace.baseUri,"/system/app/pages/admin/ads"))};
q.Wba=function(a){if(a!=qm||webspace.plusPageUrl){a=this.qia(a);var b=a.aA();this.dispatchEvent(new nP(a,!0,y(this.Ob.Vba,this.Ob,b[b.length-1])));this.C(!1);this.dispose()}else a=new xP,a.N5({J7:!0,O7:!0}),a.C(!0)};
q.qia=function(a){var b=String(Math.random()).substring(2),c={};a==Bk?(c.type=$a,c.navigationTree="[]"):"adsense"==a?(c.type=Ya,c.textAndImage='checked="true"',c.adlayout="125x125"):a==$o?(c.type=cb,c.content=" "):"recentchanges"==a?(c.type=ab,c.numItems=5):a==yk?(c.type=ab,c.numItems=5,c.myLinksOnly=!0):"countdown"==a?(c.type=Za,c.event="",c.fromDateUTC=""):"siteadmins"==a?c.type=jb:"recentauthors"==a?c.type=ib:"plusone"==a?c.type=hb:a==qm&&(c.type=gb,c.style="largeicon");a=new NO;for(var e in c)a.hf(e,
c[e],b);c=this.$;e=c.aA();e.push(b);a.K6(c.uY());a.aP(e);return a};q.Yja=function(a){return{wI:a.xI,lDa:a.iQ,w3:a.dN,$da:a.zG,Sqa:webspace.isPublic,Rqa:webspace.features.plusBadge}};var GP=function(a,b){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Customize System Footer");this.Ob=new iP(this.$,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(GP,iJ);w("sites.editor.chrome.SystemFooterDialog",GP,void 0);q=GP.prototype;q.YJ=null;q.bK=null;q.aK=null;q.$J=null;q.g=function(){GP.c.g.call(this);this.J().innerHTML='<label><input type="checkbox" id="hideDesktopLink"/>Hide <strong>View Site as Desktop</strong> link for mobile enabled sites</label><br/><label><input type="checkbox" id="hideSignInLink"/>Hide <strong>Sign in</strong> link</label><br/><label><input type="checkbox" id="hideRecentChangesLink"/>Hide <strong>Recent Changes</strong> link</label><br/><label><input type="checkbox" id="hidePrintPageLink"/>Hide <strong>Print Page</strong> link</label>'};
q.B=function(){GP.c.B.call(this);var a=this.j();this.YJ=a.b("hideDesktopLink");this.bK=a.b("hideSignInLink");this.aK=a.b("hideRecentChangesLink");this.$J=a.b("hidePrintPageLink");this.Xi(this.$)};q.Xi=function(a){this.YJ.checked=a.dra();this.bK.checked=a.hra();this.aK.checked=a.gra();this.$J.checked=a.fra()};q.dd=function(){var a=new NO;a.bBa(this.YJ.checked);a.eBa(this.bK.checked);a.dBa(this.aK.checked);a.cBa(this.$J.checked);return a};
q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;this.dispatchEvent(new nP(a,!1,y(this.Ob.update,this.Ob)))}this.dispose();return!0};var HP=function(a,b){wC.call(this,void 0,!1,b);this.Dc(a);this.fb("Edit site footer");this.Ob=new jP(this.$,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(HP,iJ);w("sites.editor.chrome.CustomFooterDialog",HP,void 0);q=HP.prototype;q.Dp=null;q.g=function(){HP.c.g.call(this);this.J().innerHTML='<div class="goog-ws-text"><div id="textBoxContent" jotId="contentEl" class="goog-ws-text-content"></div></div>';Yz(this.J().parentNode,"630px")};
q.B=function(){HP.c.B.call(this);var a=this.$.xia()||"",b=y(this.HJ,this);bH.jv(webspace.editorResources.text).ua(Wq(lP,a,b))};q.HJ=function(a){this.Dp=a;this.ha()};q.dd=function(){var a=new NO;a.Oya(mP(this.Dp));return a};q.vc=function(a){Lk==a.key&&(a=this.dd(),this.dispatchEvent(new nP(a,!1,y(this.Ob.update,this.Ob))));this.dispose();return!0};var IP=function(a,b,c){wC.call(this,void 0,!1,c);this.Dc(a);this.fb("Edit sidebar");this.Hg=b;this.Ob=new gP(a,this.j());this.A().listen(this,Cg,y(this.vc,this))};B(IP,iJ);q=IP.prototype;q.yL=null;q.vN=null;q.JP=null;
q.g=function(){IP.c.g.call(this);var a=webspace.page.isSiteRtlLocale;this.J().innerHTML='<div class="sitelayout-dlg-section"><table border="0" class="sitelayout-dlg-section-border sitelayout-dlg-horizontal"><tr><td><div><h4 class="sitelayout-dlg-sidebar-group">Display</h4></div></td></tr><tr><td><div><label class="sitelayout-dlg-sidebar-group"><input id="sidebar-config-sidebar-left" name="sidePos" type="radio" class="sitelayout-dlg-sidebar-group"/> '+(a?Nk:Mk)+'</label></div><div><label class="sitelayout-dlg-sidebar-group"><input id="sidebar-config-sidebar-right" name="sidePos" type="radio" class="sitelayout-dlg-sidebar-group"/> '+
(a?Mk:Nk)+'</label></div></td><td><div><label class="sitelayout-dlg-sidebar-group">Width: <input id="sidebar-config-sidebar-width" type="text" class="text-input sitelayout-dlg-sidebar-group" dir="'+(a?Tm:Tj)+'"/> pixels</label></div></td></tr></table></div>'};q.B=function(){IP.c.B.call(this);var a=this.j();this.yL=a.b("sidebar-config-sidebar-left");this.vN=a.b("sidebar-config-sidebar-right");this.JP=a.b("sidebar-config-sidebar-width")};q.Hc=function(){IP.c.Hc.call(this);this.Xi(this.$)};
q.Xi=function(a){this.yL.checked=a.Xu();this.vN.checked=a.Bq();this.JP.value=a.wY()};q.dd=function(){var a=new NO;try{a.TAa(this.Hg.Z1(this.JP.value))}catch(c){return alert("Please enter a valid value for sidebar width."),null}var b=Fk;this.yL.checked?b=Ij:this.vN.checked&&(b=Pm);a.bP(b);return a};q.vc=function(a){if(Lk==a.key){a=this.dd();if(!a)return!1;this.dispatchEvent(new nP(a,!1,y(this.Ob.update,this.Ob)))}this.dispose();return!0};var JP=function(a,b){F.call(this);this.L=b||N();this.Hg=new kP;this.fv=[];this.v=a;this.kt=new DP(this.v,this.L);this.Wk().listen(this.kt,dg,this.WY);this.Y(this.kt);this.Bpa()};B(JP,F);w("sites.editor.chrome.DialogManager",JP,void 0);var KP={B$:"customFooter",R$:"header",S$:Di,Gaa:"sidebar",Haa:Ya,Iaa:Za,Jaa:bb,Kaa:$a,fLa:hb,Laa:gb,gLa:ib,Maa:ab,hLa:jb,Naa:cb,Oaa:Mn,Vaa:"systemFooter"};q=JP.prototype;q.BV=!1;q.v=null;q.G=null;q.kt=null;q.z5=function(a){this.v=a};
q.Bpa=function(){this.BV||(this.qo(io,"header",this.v.Wu(),"Edit site header"),this.qo(co,Di,this.v.xq(),"Edit horizontal navigation"),this.qo(Yn,"systemFooter",!0,"Edit system footer"),this.qo(ao,"customFooter",this.v.PA(),"Edit custom footer"),this.qo("sites-chrome-editsidebar","sidebar",!0),this.qo("sites-chrome-add-sitebarwidget",Mn,!0),this.Mra(),this.BV=!0)};q.Mra=function(){for(var a=this.v.aA(),b=0;b<a.length;b++)this.i1(a[b])};
q.i1=function(a){var b=this.v.qJ(a);this.qo(Pb+a,b,!0,"Edit sidebar item",a);this.Nra(Pb+a,b)};q.qo=function(a,b,c,e,f){var g=this.L.b(a);g&&("sidebar"!=b&&b!=Mn&&aB(g,Zn),R(g,c),c&&My(g,!0),this.fv.push(g),c=function(a){qH("Site layout","Open edit layout dialog",b);this.wra(b,f,a)},this.Wk().listen(g,Bf,c),this.Wk().listen(g,Aj,c),e&&(a=new TG(a,e,this.L,1),this.Y(a)),this.Pba(g,b))};
q.Nra=function(a,b){var c=this.L.b(a);if(c){b=UE(UI,{id:a,title:this.$ka(b)});R(b,!1);this.L.DK(c,b,0);var e=this.L.b(a+"_delete");My(e,!0);this.Wk().listen(e,[Aj,Bf],y(this.Tda,this,a));this.Wk().listen(c,[qk,zh],y(R,this,b,!0));this.Wk().listen(c,pk,y(R,this,b,!1));this.Wk().listen(e,hf,y(R,this,b,!1));this.kt.vba(c)}};q.Pba=function(a,b){"header"==b?(a=this.L.Pc(a),YO(this.L)):a=[a];WO(this.L,a)};
q.pwa=function(a){if(a.id==io){a=this.L.Pc(a);var b=this.L.b(jo);b&&b.getAttribute(Rk)&&b.removeAttribute(Rk)}else a=[a];XO(this.L,a)};q.$ka=function(a){return a==$a?"Navigation":a==cb?"Text Box":a==bb?"My recent activity":a==ab?"Recent site activity":a==Za?"Countdown":a==Ya?"AdSense":a==jb?"Site owners":a==ib?"Page authors":a==hb?"+1 Button":a==gb?"Google+ Badge":"Unknown dialog type"};
q.Tda=function(a,b){if(this.y0(b)){a=y(this.wwa,this,a);var c=lx("Are you sure you want to delete this sidebar item?");wG("Delete sidebar item",c,a,null,void 0,void 0,void 0,void 0)}b.stopPropagation()};q.y0=function(a){if(a.type==Aj){if(!(13==a.keyCode||zt&&3==a.keyCode))return!1}else if(0>a.clientX||0>a.clientY)return!1;return!0};
q.wwa=function(a){var b=this.L.b(a);this.L.removeNode(b);var c=this.v.aA();a=a.substring(5);os(c,a)&&this.v.aP(c);this.v.$va(a);c=y(this.bl,this,null,!0);this.v.$v(this.v,c);this.kt.bwa(b)};
q.wra=function(a,b,c){if(this.y0(c)&&this.v){c=null;switch(a){case KP.R$:c=new oP(this.v,this.Hg,this.L);break;case KP.S$:c=new uP(this.v,this.L);break;case KP.Vaa:c=new GP(this.v,this.L);break;case KP.B$:c=new HP(this.v,this.L);break;case KP.Gaa:c=new IP(this.v,this.Hg,this.L);break;case KP.Oaa:c=new FP(this.v,this.L);break;case KP.Kaa:c=new uP(this.v,this.L,!0,b);break;case KP.Naa:c=new EP(this.v,this.L,b);break;case KP.Jaa:c=new CP(this.v,this.Hg,this.L,b,!0);break;case KP.Maa:c=new CP(this.v,
this.Hg,this.L,b,!1);break;case KP.Iaa:c=new wP(this.v,this.L,b);break;case KP.Haa:c=new vP(this.v,this.L,b);break;case KP.Laa:c=new AP(this.v,b,this.L)}c&&(this.Wk().listen(c,dg,this.WY),c.C(!0))}};q.WY=function(a){this.L.getWindow().scroll(0,0);S(ld);var b=y(this.bl,this,a.Cwa||null,a.ara);this.v.$v(a.lda,b)};q.bl=function(a,b,c){this.v.clone(c);a&&(b?a(y(this.i1,this)):a())};q.Wk=function(){this.G||(this.G=new jC(this),this.Y(this.G));return this.G};
q.o=function(){for(var a=0;a<this.fv.length;a++)cB(this.fv[a],Zn),My(this.fv[a],!1),this.pwa(this.fv[a]);var b=this.L.Xm("sites-sitelayouteditor-sidebar-widget-toolbar");for(a=0;a<b.length;a++)this.L.removeNode(b[a]);JP.c.o.call(this)};var LP=function(a){V.call(this,a);this.v=null;this.Hg=new kP;this.Nb=new TN;this.Nb.Me(!1);this.Nb.rO(!0);this.UG=this.Mr=this.iK=this.WJ=null};B(LP,V);q=LP.prototype;q.g=function(){LP.c.g.call(this);this.Nb.render(this.b())};
q.B=function(){LP.c.B.call(this);aB(this.Nb.b(),"sites-sitelayouteditor-toolbar");this.PZ=this.ue("sites-sitelayout-icon-header","Header",wo,y(this.rma,this));new TG(this.j().b(wo),"Enable/disable header");this.Cx();this.c_=this.ue("sites-sitelayout-icon-horizontal-nav","Horizontal navigation",xo,y(this.sma,this));new TG(this.j().b(xo),"Enable/disable horizontal navigation");this.Cx();this.R7=this.ue("sites-sitelayout-icon-sidebar","Sidebar",yo,y(this.eoa,this));new TG(this.j().b(yo),"Enable/disable sidebar");
this.Cx();this.cV=this.ue("sites-sitelayout-icon-custom-footer","Custom footer",vo,y(this.Pla,this));new TG(this.j().b(vo),"Enable/disable custom footer");this.Cx();this.Xba()};q.ue=function(a,b,c,e){a=UE(VI,{id:c,opa:[a,"sites-sitelayout-toggle-button-icon"],label:b});a=new VN(a);a.tb(16,!0);this.Nb.ca(a,!0);I(a,k,e);return a};q.Cx=function(){var a=new oO;this.Nb.ca(a,!0)};
q.Xba=function(){var a=UE(WI,{isSiteRtlLocale:webspace.page.isSiteRtlLocale,Xua:"px or %"});this.j().appendChild(this.Nb.J(),a);this.cg=this.j().b("sites-sitewidth");this.kb=new TG(this.cg,"Press Enter key to save",this.j(),1);I(this.cg,Aj,y(this.vZ,this));this.bN=new tO;a=this.j().b("sites-sitewidth-radio-container");this.qCa=this.IU("Theme default",a,y(this.ioa,this));this.pCa=this.IU("Custom",a,y(this.hoa,this))};
q.IU=function(a,b,c){a=new rO(this.j(),a);a.render(b);a.addEventListener(k,c);this.bN.Gd(a);return a};q.ioa=function(){this.cg.disabled=!0;var a=new NO;a.L6(null);S(ld);var b=y(this.cE.update,this.cE);b=y(this.bl,this,b);this.v.$v(a,b)};q.hoa=function(){this.cg.disabled=!1;this.cg.value&&this.vZ()};
q.vZ=function(a){if((!a||13==a.keyCode)&&dA(this.b())&&!this.cg.disabled&&this.cg.value!=this.v.rJ()){a=new NO;try{this.cg.value=this.Hg.Ysa(this.cg.value),a.L6(this.cg.value)}catch(c){xG("Update site width","Please enter a valid value for site width.");return}S(ld);var b=y(this.cE.update,this.cE);b=y(this.bl,this,b);this.v.$v(a,b)}};q.RDa=function(a){this.v=a;this.Xi(a);this.Mea(a);this.nCa=this.v.Xu()?Ij:this.v.Bq()?Pm:Ij};
q.Xi=function(a){a&&(this.PZ.ke(a.Wu()),this.c_.ke(a.xq()),this.R7.ke(a.w0()),this.cV.ke(a.PA()),a=a.rJ(),this.cg.value=a||"",a?(this.bN.lk(this.pCa),this.cg.disabled=!1):(this.bN.lk(this.qCa),this.cg.disabled=!0))};q.Mea=function(a){this.WJ=new ZO(a);this.iK=new cP(a);this.Mr=new gP(a);this.UG=new jP(a);this.cE=new hP(a)};q.rma=function(){this.pA(y(this.WJ.update,this.WJ))};q.sma=function(){this.pA(y(this.iK.update,this.iK))};q.eoa=function(){this.pA(y(this.Mr.update,this.Mr))};
q.Pla=function(){this.pA(y(this.UG.update,this.UG))};q.pA=function(a){var b=this.dd();S(ld);a=y(this.bl,this,a);this.v.$v(b,a)};q.bl=function(a,b){this.v.clone(b);a()};q.dd=function(){var a=new NO;a.Eza(this.PZ.bf());a.Fza(this.c_.bf());this.R7.bf()?a.bP(this.nCa):a.bP(Fk);a.Dza(this.cV.bf());return a};q.C=function(a){this.V&&(a&&this.Xi(this.v),R(this.b(),a))};var MP=function(){J.call(this);this.kr={};this.L=N();this.yT=this.L.b(Xn)};B(MP,J);w("sites.editor.chrome.SiteLayoutEditor",MP,void 0);var NP=Zs({gR:ko}),OP=[{Ls:ko,label:bc,style:2}],PP=["page-btns",Tn];q=MP.prototype;q.Pw=null;q.eD=null;q.mp=null;q.MK=!1;q.Nt=null;q.v=null;q.z5=function(a){this.v=a};q.Ut=function(){if(!this.v)throw"Config was not set yet.";return this.v};q.Rb=function(){return!!this.MK};MP.prototype.isActive=MP.prototype.Rb;q=MP.prototype;
q.open=function(){this.O8(!1);this.Dea();this.yba();this.Hpa();WO(this.L,[this.yT]);this.Lea();this.lCa();var a=P("back-to-template-listing");a&&R(a,!1);RO(y(this.bl,this));aB(document.body,mo);this.MK=!0};q.bl=function(a){SA();S("Click on the parts of your site you want to edit");this.z5(a);this.Uba();this.mda();this.tfa=new JP(this.Ut());this.Nb.RDa(this.Ut())};
q.close=function(){this.O8(!0);this.qfa();this.cwa();this.swa();this.vwa();this.apa();G(this.tfa);cB(document.body,mo);this.MK=!1;XO(this.L,[this.yT]);for(var a=this.L,b=a.Xm("sites-sitelayout-chrome-hint"),c=0;c<b.length;c++)a.removeNode(b[c]);JOT_postEvent(Hf);SA()};q.O8=function(a){for(var b=0;b<PP.length;b++){var c=P(PP[b]);c&&R(c,a)}};
q.Dea=function(){this.eD||(this.eD=my(d,{id:"sites-editor-savecancel"}),P("sites-page-info-bar").appendChild(this.eD));for(var a=0;a<OP.length;a++)this.zpa(OP[a]);a=GK.H();this.mp=new JK(y(this.Gla,this),!0);this.mp.To(this.kr[ko].b());a.gh(this.mp,this.mp.Mp);this.kr[ko].b().focus()};q.zpa=function(a){var b=new hG(a.label,null,a.style);b.Ls=a.Ls;b.render(this.eD);b.b().id="sites-editor-button-"+a.Ls;I(b,k,this.rZ,!1,this);this.kr[a.Ls]=b};
q.qfa=function(){for(var a in this.kr){var b=this.kr[a];Vu(b,k,this.rZ,!1,this);b.dispose();delete this.kr[a]}GK.H().ao(this.mp);G(this.mp)};q.yba=function(){var a=my(gd,{"class":"sites-site-name"},vc);this.Pw=my(d,{"class":Tn},a);P("collaborator-bar-container").appendChild(this.Pw)};q.cwa=function(){null!=this.Pw&&(xy(this.Pw),this.Pw=null)};q.Hpa=function(){this.Nt=new fE;this.Nt.R(P(lo));this.Nt.SO(!0)};q.swa=function(){this.Nt.SO(!1);this.Nt.dispose()};
q.mda=function(){this.Ut().xq()&&aP(this.L);this.Ut().PA()&&bP(this.L)};q.Lea=function(){this.Nb||(this.yDa=P(lo),this.Nb=new LP(this.L),this.Nb.render(this.yDa))};q.lCa=function(){this.Nb.C(!0)};q.apa=function(){this.Nb.C(!1)};q.execCommand=function(a){a==ko&&this.close()};q.rZ=function(a){(a=a.target.Ls)&&a in NP&&this.execCommand(a)};q.Gla=function(){this.execCommand(ko)};q.Uba=function(){var a=this.Ut().Bq()?ho:go;a=this.L.b(a);var b=UE(XI);this.L.DK(a,b,0)};
q.vwa=function(){var a=this.L.b("sites-chrome-sidebar-editor");this.L.removeNode(a)};var QP={},RP={},SP=function(a){this.Kk=a};SP.prototype.load=function(a){if(QP[this.Kk])this.Nk(a);else if(RP[this.Kk])RP[this.Kk].ua(y(this.Nk,this,a));else{var b=webspace.editorResources[this.Kk];b?(b=bH.jv(b),b.ua(y(this.pU,this)),b.ua(y(this.Nk,this,a)),RP[this.Kk]=b):(this.pU(),this.load(a))}};SP.prototype.Nk=function(a){for(var b=0;b<a.length;b++)a[b](QP[this.Kk])};SP.prototype.pU=function(){var a=this.create();QP[this.Kk]=a};var TP=function(){this.Kk="sitelayout"};B(TP,SP);Kq(TP);JOT_addListener(Xk,function(){TP.H().load([function(a){a.open()}])});TP.prototype.load=function(a){for(var b in QP){var c=QP[b];if(c&&c.isActive&&c.isActive())return}qH(Uc,vc);S(Rc);TP.c.load.call(this,a)};TP.prototype.create=function(){return new MP};var VP=function(a,b,c,e,f){if(UP(f))return!0;c++;if(c>e)return S("Could not permanently delete site."),!1;20==c&&S("Still deleting site...");M(function(){dI("VerifyWebspaceEntityExists",{wsName:a,domain:b},Wq(VP,a,b,c,e),WP)},200+100*c);return!1},UP=function(a){return a&&(a=a.target.Ba(),u(a.exists)&&0==a.exists)?(Sx(window.location,XH(webspace.baseUri,"/system/app/pages/meta/dashboard/deleted")),!0):!1},WP=function(){S("Error verifying if site has been purged. Please reload.")};w("JOT_decorateButtons",function(a){a=by(Fg,Qh,a);for(var b=0;b<a.length;b++)dB(a[b],"sites-convert-button")?XP(a[b]):(new QD(null,uE.H())).R(a[b])},void 0);var YP={};w("JOT_serverButtons",YP,void 0);w("JOT_getButtonForElement",function(a){a=P(a);dB(a,Wn)||(a=Ry(a,void 0,Wn));return a&&1==a.parentNode.nodeType&&(a=a.className.match(/sites-button-closure-id-(\S*)/))?YP[a[1]]:null},void 0);
var XP=function(a){if(a){var b=dB(a,"goog-button-base-disabled"),c=dy(Rh,a);cB(c,Rh);if(c.onclick){var e=y(c.onclick,c);c.onclick=null}var f=Yu(c,Bf,!1);My(c,!1);a.className=Xh;ty(a);var g=uE.H();g=new QD(c,g);g.U(!b);g.Wc(Oy(c));e&&I(g,k,e);for(b=0;b<f.length;b++)e=f[b],Wu(e.key),I(g,k,e);f=a.parentNode;if(1==f.nodeType&&"A"==f.tagName){if(null!=f.onclick)I(g,k,y(f.onclick,c));else if(f.href){var h=f.href;I(g,k,function(){window.location.href=h})}yy(a,f)}c=g.getId();aB(a,Wn);aB(a,"sites-button-closure-id-"+
c);YP[c]=g;g.render(a)}};function IO(a,b,c){var e=1500-(b||"").length-1;if(0>=e)return null;a.length>e&&(a=a.substring(0,e));c&&null!=b&&(a=b+"/"+a);return a}function ZP(a,b,c,e,f){for(var g="",h=0;h<a.length;h++){var l=a.charCodeAt(h);32==l?c||(g+="-"):45==l&&c||95==l&&f||45>l||45<l&&48>l||57<l&&65>l||90<l&&95>l||96==l||122<l&&161>l||e&&126<l||(g+=a.charAt(h))}g=g.replace(/-+$/,"");g=g.replace(/^_+/,"");return b?g.toLowerCase():g}w("getValidWebspaceUrl",ZP,void 0);
function $P(a){a.requestPath||(a.requestPath=(new Ty(new String(window.location))).getPath())}w("JOT_revertToRevision",function(a,b,c,e){S("Please wait...");e&&(e=e.parentNode,ty(e),e.appendChild(document.createTextNode("Reverting...")));dI("RevertToVersion",{sourcePage:b,rev:c},function(b){b=b.target.Ba();b.error?S(b.error):(b=XH(webspace.baseUri,a),b+=Fb+c,Sx(window.location,b))},function(){S("An error occured while reverting the page.")})},void 0);
w("JOT_restoreWebspace",function(a){S("Restoring webspace...");dI("RestoreWebspace",{webspace:a},function(b){b=b.target.Ba();b.error?S(b.error):Sx(window.location,XH(webspace.domain.toLowerCase()==yg?"/site/"+a:"/a/"+webspace.domain+"/"+a,"/")+"?webspaceRestored=true")},function(){S("An error occured while restoring the webspace.")},Zc,!0,null,!0)},void 0);
w("JOT_purgeWebspace",function(a,b){aQ('Permanently delete site "'+(a+'"?'),"Deleting this site will also permanently delete all of its contents. <br/><br/> Are you sure you want to continue?",null,"Delete",function(){S("Permanent deletion in progress...");b&&b();dI("DeleteSite",{webspace:a,makePermanent:!0},function(b){b=b.target.Ba();b.error?S(b.error):VP(a,webspace.domain.toLowerCase(),0,1E3)},function(){S("An error occured while permanently deleting the webspace.")},Zc,!0,null,!0)}).C(!0)},void 0);
function bQ(a){a=P(a);var b=Ir.get("jotxtok");a.name=vj;a.value=b}var cQ=null,dQ=function(a){webspace.page.autosave?S("Recovering edit from draft...."):S(Rc);var b=bH.jv(webspace.editorResources.text);b.ua(function(){cQ||(cQ=new (Iq("sites.editor.PageEditor"))("draft"==webspace.page.state,a));return cQ});return b};JOT_addListener(ol,function(a){cQ&&cQ.isActive&&cQ.isActive()||dQ(null!=a&&null!=a.eventSrc&&!!a.eventSrc.justCreated).ua(function(a){a.open(!1)})});
JOT_addListener(Hf,function(){var a=by("html");a[0]&&a[0].focus()});JOT_addListener("recoverEdit",function(){bH.jv(webspace.editorResources.text).ua(function(){JOT_DRAFTMAN_showRecoverDraftDialog()})});window.onbeforeunload||(window.onbeforeunload=function(){if(cQ&&cQ.editing&&cQ.hasUnsavedChanges())return"Your changes have not been saved."});
w("JOT_manageEditMode",function(){if(window.location.href.match(/#edit\s*$/)){var a=window.location.href.replace(/#edit\s*$/,"#");window.location.replace(a);JOT_postEvent(ol)}},void 0);w("MSG_JOT_DIALOG_YES","Yes",void 0);w("MSG_JOT_DIALOG_NO","No",void 0);w("JOT_getJotDialogById",function(a){return EJ[a]},void 0);function aQ(a,b,c,e,f,g,h,l,p,r){a=new FJ({wx:e,eba:f,C0:c,fG:g,jda:h,jH:l,template:b,title:a,FEa:!0,Ex:r});b=null;a.Wb&&(b=a.Wb.qj);vG(a,b);return a}w("JOT_createDialog",aQ,void 0);
function rP(a,b,c,e,f,g,h,l){var p=new GO;p.rB(a);a=g||function(a){return qr(a[Wj])};b=new HO(p,!1,webspace,b,f,void 0,h,l);b.xw(a);b.ED(!0);c&&1==c.nodeType||(e=YH(byId("COMP_dialog"+(e||""))),c=c?e[c]:e.treeDiv);h&&aB(c,"sites-permissions-sitemap");ty(c);b.g();c.appendChild(b.b());b.B();return b}w("JOT_addTreeToDialog",rP,void 0);
JOT_addListener("recoverNode",function(a){if(a.payload&&a.payload.id){var b=P(a.payload.id);S("Recovering page...");b.onclick=null}webspace.Mva({sourcePage:a.eventSrc},function(a){a=a.target.Ba();if(a.error)b&&(b.onclick=b.onclick),S(a.error);else{var c=XH(webspace.baseUri,a.path);c+=Fb+a.revision;Sx(window.location,c)}})});JOT_addListener("undoDelete",function(a){dI("UndoDelete",{sourceWuid:a.eventSrc},function(a){a.target.Ba().error?S(Sd):window.location.reload()},function(){S(Sd)})});
JOT_addListener(wp,function(a){dI("BulkRecover",{wuids:[a.eventSrc]},function(a){a.target.Ba().error?S(Sd):BO()},function(){S(Sd)})});webspace.FS=function(a,b,c){dI("Asciify",a,b,c)};webspace.wV=function(a,b,c){dI("DeleteNode",a,b,c)};webspace.createNode=function(a,b,c){$P(a);dI("CreateNode",a,b,c)};webspace.saveFileCabinetNode=function(a,b,c){$P(a);dI(hd,a,b,c)};webspace.rOa=function(a,b,c){$P(a);dI("SaveList",a,b,c)};webspace.qOa=function(a,b,c){$P(a);cI("/system/services/saveConfig",a,b,c)};
webspace.gM=function(a,b,c){dI("MoveNode",a,b,c)};webspace.sNa=function(a,b,c){dI("DeleteSite",a,b,c)};webspace.uxa=function(a,b,c){dI("SavePageSettings",a,b,c)};webspace.Mva=function(a,b,c){dI("RecoverNode",a,b,c)};function eQ(){if(P("sites-abuse-reason-spam").checked)var a="SPAM";else if(P("sites-abuse-reason-phishing").checked)a="PHISHING";else if(P("sites-abuse-reason-malware").checked)a="MALWARE";else if(P("sites-abuse-reason-nudity").checked)a="NUDITY";else if(P("sites-abuse-reason-harassment").checked)a="HARASSMENT";else if(P("sites-abuse-reason-hate").checked)a="HATE";else if(P("sites-abuse-reason-regulated").checked)a="REGULATED";else if(P("sites-abuse-reason-personal-info").checked)a="PERSONAL_INFO";
else if(P("sites-abuse-reason-impersonation").checked)a="IMPERSONATION";else if(P("sites-abuse-reason-other").checked)a="UNKNOWN";else return S("Please select why you are reporting this site."),!1;var b=(new Ty(window.location)).mb("src");b={abuseReason:a,opt_contentPath:b};var c=P("sites-abuse-reporter-email");c&&cr(c.value)&&(b.opt_reporterEmail=c.value);dI("ReportAbuse",b,function(b){b=b.target.Ba();b.error?S(b.error):"IMPERSONATION"==a?Sx(window.location,"https://support.google.com/sites/?p=impersonation"):
S("Abuse report submitted")},function(){S("An error occurred saving the abuse report.")})}w("JOT_reportAbuse",eQ,void 0);w("JOT_reportAbuseInit",function(){var a=P("sites-admin-settings-submit");if(a){var b=new hG;b.R(a);I(b,k,eQ);b.U(!0)}if(a=P(Sn))b=new mI(document.referrer||webspace.baseUri),b.R(a),I(b,k,b.Jl),b.U(!0)},void 0);function fQ(){dI("RemoveAccess",{},function(a){a=a.target.Ba();a.error?"Only Owner"==a.error?S("Can not remove the only owner of the site."):S(Cd):(S("You have been removed from this site."),a=webspace.baseUri.match(/\/.*\//)[0],Sx(window.location,a+Rn))},function(){S(Cd)})}w("JOT_removeAccess",fQ,void 0);
w("JOT_removeAccessInit",function(){var a=P("sites-remove-access-privilege");if(a){var b=new hG;b.R(a);I(b,k,fQ);b.U(!0)}if(a=P(Sn))b=new mI(document.referrer||webspace.baseUri),b.R(a),I(b,k,b.Jl),b.U(!0)},void 0);function gQ(){hH({productId:"70",bucket:"sites_general_feedback"},{})}w(Oc,gQ,void 0);w(Oc,gQ,void 0);var hQ=function(a,b,c,e,f){function g(a){a&&(a.tabIndex=0,MB(a,h.wd()),U(a,"goog-zippy-header"),h.HH(a),h.iga(a))}J.call(this);this.Z=f||N();this.uj=this.Z.b(a)||null;this.Ep=this.Z.b(e||null);this.Oc=(this.mB=Nq(b)?b:null)||!b?null:this.Z.b(b);this.ye=1==c;u(c)||this.mB||(this.Ep?this.ye=dA(this.Ep):this.uj&&(this.ye=bC(this.uj,ri)));this.F0=new jC(this);this.rb=new MC;this.dM=new jC(this);var h=this;g(this.uj);g(this.Ep);this.Td(this.ye)};B(hQ,J);q=hQ.prototype;q.jn=!0;
q.o=function(){hQ.c.o.call(this);G(this.F0);G(this.rb);G(this.dM)};q.wd=function(){return"tab"};q.J=function(){return this.Oc};q.expand=function(){this.Td(!0)};q.collapse=function(){this.Td(!1)};q.toggle=function(){this.Td(!this.ye)};q.Td=function(a){this.Oc?R(this.Oc,a):a&&this.mB&&(this.Oc=this.mB());this.Oc&&U(this.Oc,"goog-zippy-content");this.Ep?(R(this.uj,!a),R(this.Ep,a)):this.DQ(a);this.vw(a);this.dispatchEvent(new iQ(jp,this,this.ye))};q.vw=function(a){this.ye=a};
q.DQ=function(a){this.uj&&(fC(this.uj,ri,a),fC(this.uj,"goog-zippy-collapsed",!a),T(this.uj,lh,a))};q.AD=function(a){this.jn!=a&&((this.jn=a)?(this.HH(this.uj),this.HH(this.Ep)):this.dM.removeAll())};q.iga=function(a){a&&(this.rb.pd(a),this.F0.listen(this.rb,yj,this.eC))};q.HH=function(a){a&&this.dM.listen(a,Bf,this.dC)};q.eC=function(a){if(13==a.keyCode||32==a.keyCode)this.toggle(),this.GV(a),a.preventDefault(),a.stopPropagation()};q.dC=function(a){this.toggle();this.GV(a)};
q.GV=function(a){this.dispatchEvent(new iQ(k,this,this.ye,a))};var iQ=function(a,b,c){H.call(this,a,b);this.Ega=c};B(iQ,H);var jQ=function(a,b,c,e){e=e||N();var f=e.g(d,{style:"overflow:hidden"});b=e.b(b);b.parentNode.replaceChild(f,b);f.appendChild(b);this.Uy=f;this.jg=null;hQ.call(this,a,b,c,void 0,e);a=this.ye;this.Uy.style.display=a?"":Ek;this.DQ(a)};B(jQ,hQ);q=jQ.prototype;q.qca=500;q.pca=OA;q.fqa=function(){return null!=this.jg};
q.Td=function(a){if(this.ye!=a||this.jg){this.Uy.style.display==Ek&&(this.Uy.style.display="");var b=this.J().offsetHeight;if(this.jg){a=this.ye;Xu(this.jg);this.jg.stop(!1);var c=parseInt(this.J().style.marginTop,10);c=b-Math.abs(c)}else c=a?0:b;this.DQ(a);this.jg=new qz([0,c],[0,a?b:0],this.qca,this.pca);I(this.jg,["begin",pe,eh],this.fta,!1,this);I(this.jg,"begin",y(this.gta,this,a));I(this.jg,eh,y(this.hta,this,a));this.jg.play(!1)}};
q.fta=function(a){var b=this.J();b.style.marginTop=a.y-b.offsetHeight+n};q.gta=function(a){this.dispatchEvent(new iQ("m",this,a))};q.hta=function(a){a&&(this.J().style.marginTop="0");Xu(this.jg);this.vw(a);this.jg=null;a||(this.Uy.style.display=Ek);this.dispatchEvent(new iQ(jp,this,a));this.dispatchEvent(new iQ("n",this,a))};var kQ=function(a){V.call(this,a)};B(kQ,V);kQ.prototype.g=function(){this.Na(this.j().g("FORM",{method:Zc,style:"display:none"}))};kQ.prototype.hva=function(a,b,c){var e=this.b();e||(this.render(),e=this.b());e.action=b||"";e.target=c||"";this.pAa(e,a);e.submit()};kQ.prototype.pAa=function(a,b){var c,e=[];for(c in b){var f=b[c];Mq(f)?D(f,y(function(a){e.push(this.CU(c,String(a)))},this)):e.push(this.CU(c,String(f)))}Ox(a,vx(e))};kQ.prototype.CU=function(a,b){return sx(Vi,{type:yi,name:a,value:b})};var lQ=function(a,b,c){C(a,"Invalid service id + "+a);if(c)for(var e=0;e<c.length;e++)C(c[e],"Invalid dependency "+c[e]+" (index in dependency array: "+e+") for service "+a);this.md=a;this.ck=b||null;this.kfa=c||[]};lQ.prototype.toString=function(){return this.md};lQ.prototype.KI=function(){return this.kfa};var mQ=function(a){return mQ.L_(a)};mQ.L_=function(a){return a+"_"};mQ.SNa=function(){throw Error("xid.literal must not be used in COMPILED mode.");};mQ.object=function(a){if(a&&a.constructor&&a.constructor.toString()===Object.toString()){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[mQ.L_(c)]=a[c]);return b}throw Error("xid.object must be called with an object literal.");};mQ.XGa=!0;mQ.lNa=function(a){return a};mQ.ONa=function(){return!0};mQ.zc={};mQ.zc.iF="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";mQ.zc.bF=mQ.zc.iF+"0123456789";mQ.zc.jF=mQ.zc.iF.length;mQ.zc.hF=mQ.zc.bF.length;mQ.zc.rR=-2147483648;mQ.zc.xOa=function(a){C(6>=a.length,"Xids should not be longer than 6 characters");for(var b=0,c=a.length-1;0<=c;c--)b=b*(0==c?mQ.zc.jF:mQ.zc.hF)+mQ.zc.bF.indexOf(a.charAt(c));return b+mQ.zc.rR};
mQ.zc.toString=function(a){var b=[],c=0;a-=mQ.zc.rR;b[c++]=mQ.zc.iF.charAt(a%mQ.zc.jF);for(a=Math.floor(a/mQ.zc.jF);0<a;)b[c++]=mQ.zc.bF.charAt(a%mQ.zc.hF),a=Math.floor(a/mQ.zc.hF);return b.join("")};mQ.hash={};mQ.hash.iR=2654435769;mQ.hash.Eaa=314159265;
mQ.hash.wOa=function(a){a=mQ.hash.NCa(a);for(var b=mQ.hash.iR,c=mQ.hash.iR,e=mQ.hash.Eaa,f=a.length,g=f,h=0,l=function(){b-=c;b-=e;b^=e>>>13;c-=e;c-=b;c^=b<<8;e-=b;e-=c;e^=c>>>13;b-=c;b-=e;b^=e>>>12;c-=e;c-=b;c^=b<<16;e-=b;e-=c;e^=c>>>5;b-=c;b-=e;b^=e>>>3;c-=e;c-=b;c^=b<<10;e-=b;e-=c;e^=c>>>15};12<=g;g-=12,h+=12)b+=mQ.hash.gI(a,h),c+=mQ.hash.gI(a,h+4),e+=mQ.hash.gI(a,h+8),l();e+=f;switch(g){case 11:e+=a[h+10]<<24;case 10:e+=a[h+9]<<16;case 9:e+=a[h+8]<<8;case 8:c+=a[h+7]<<24;case 7:c+=a[h+6]<<16;
case 6:c+=a[h+5]<<8;case 5:c+=a[h+4];case 4:b+=a[h+3]<<24;case 3:b+=a[h+2]<<16;case 2:b+=a[h+1]<<8;case 1:b+=a[h+0]}l();return mQ.zc.toString(e)};mQ.hash.sDa=function(a){return a};mQ.hash.NCa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};mQ.hash.gI=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};new lQ("tdUkaf");new lQ("fJuxOc");new lQ("ZtVrH");new lQ("WSziFf");new lQ("ZmXAm");new lQ("BWETze");new lQ("UBSgGf");var nQ=new lQ("zZa4xc");new lQ("o1bZcd");new lQ("yRRtR");new lQ("WwG67d");new lQ("pVbxBc");var oQ=new lQ("n73qwf");new lQ("z72MOc");new lQ("JccZRe");new lQ("amY3Td");new lQ("ABma3e");new lQ("GHAeAc",mQ.hash.sDa("GHAeAc"));new lQ("gSshPb");new lQ("klpyYe");new lQ("OPbIxb");new lQ("pg9hFd");new lQ("Wt6vjf");new lQ("CV7dle");new lQ("yu4DA");new lQ("vk3Wc");new lQ("IykvEf");new lQ("J5K1Ad");
new lQ("IW8Usd");new lQ("IaqD3e");new lQ("byfTOb");new lQ("jbDgG");new lQ("b8xKu");new lQ("d0RAGb");new lQ("AzG0ke");new lQ("J4QWB");new lQ("LEikZe");new lQ("rJmJrc");new lQ("TuDsZ");var pQ=new lQ("MpJwZc"),qQ=new lQ("UUJqVe");new lQ("hdXIif");new lQ("mITR5c");new lQ("VYNvce");new lQ("NGntwf");new lQ("Bgf0ib");new lQ("Xpw1of");new lQ("v5BQle");new lQ("ofuapc");new lQ("FENZqe");new lQ("tLnxq");new lQ("lsjVmc");var rQ=function(a){a=a||new mK;this.$fa=this.uy(a,"share-email-attachment",wc);this.bga=this.uy(a,"share-email-collaborators",xc);this.k7=this.uy(a,"share-share","Share...");this.aV=this.uy(a,"share-current-user-request-access","Request edit access...")};rQ.prototype.uy=function(a,b,c){var e={};e.label=c;e.visible=!1;e.hint=c;return a.aea(b,e)};
rQ.prototype.PDa=function(a,b,c,e,f,g,h,l,p,r){e=1==e;a=30<=a;l=l&&!b&&(a||c)&&e;c=!b&&(c||a||e&&g);f=p&&!b&&e&&f;b=!b&&g&&!a&&e&&h;r?r.vOa(f,l,c,b):(this.$fa.U(f),this.bga.U(l),this.k7.U(c),this.aV.U(b),this.aV.C(b))};var sQ=function(a){wC.call(this,void 0,!1,a);this.tO(!1);this.oO(!0);this.Ph(null)};B(sQ,wC);sQ.prototype.C=function(a){var b=this.b(),c=this.j();fC(b,"share-client-offscreen",!a);this.o6(a);a?(this.ha(),sQ.c.C.call(this,!0)):(b.style.right="",b.style.left="",b.style.top="");c=c.ri("iframe",null,this.J());for(var e=0;e<c.length;e++)c[e].tabIndex=a?"0":"-1";b.tabIndex=a?"0":"-1";this.Kc.tabIndex=a?"0":"-1";b.setAttribute("aria-hidden",!a);a||this.dispatchEvent("p")};
sQ.prototype.B=function(){sQ.c.B.call(this);var a=this.ou();a&&T(a,yi,!0)};var tQ=function(){F.call(this)};B(tQ,F);q=tQ.prototype;q.Qa=function(a,b,c){c=new vD(b,c);this.a3(c,a,b);return c};q.eEa=function(a,b,c,e,f,g,h,l){this.uwa(a);this.a3(a,null,h,0);g=!Hq(g)||1==g;c?this.KE(a,!1,!1,!1):e?this.KE(a,!0,g&&!!f,g):30<=b?this.KE(a,!0,g&&!!f,g):this.KE(a,g&&!!l,g&&!!f,!1)};q.uwa=function(a){for(var b=a.eia(),c=0;c<b.length;c++){var e=a.Sk(b[c]);switch(e.$){case Zg:case $g:case kn:case vn:a.removeChild(e,!0)}}};
q.KE=function(a,b,c,e){a.Ia(function(a){switch(a.$){case vn:u(b)&&a.U(b);break;case Zg:u(e)&&a.U(e);break;case $g:u(c)&&a.U(c)}})};q.a3=function(a,b,c,e){c=this.II(c);b&&c.push(new uD);Hq(e)?Zr(c,function(b){a.pe(b,e,!0)}):D(c,function(b){a.ca(b,!0)});b=a.b();bC(b,bi)&&dC(b,bi)};
q.II=function(a){var b=[],c=this.vka(a);b.push(c);c=new qD("Advanced...",fe,a);b.push(c);c=new uD(a);c.Dc(kn);b.push(c);c=new qD("Restrictions...","restrictions",a);b.push(c);c=new uD(a);c.Dc(kn);b.push(c);c=new qD(xc,Zg,a);b.push(c);a=this.Lia(a);b.push(a);return b};q.vka=function(a){return new qD("Share...",vn,a)};q.Lia=function(a){return new qD(wc,$g,a)};var uQ=function(a){J.call(this);this.L=a||N()};B(uQ,J);q=uQ.prototype;q.zt=null;q.G=null;q.ed=!1;q.yh=function(){return this.G||(this.G=new jC(this))};q.j=function(){return this.L};q.init=function(){this.yq()||(this.HA(),this.ed=!0)};q.yq=function(){return this.ed};q.rja=function(){return yF(vb+X("share-client-loading-contents")+Aa+X("share-client-spinner")+'"> </div></div>').Ti()};q.tka=function(){return new tQ};q.uka=function(){return tD.H()};q.tY=function(){return pD.H()};
q.Spa=function(){if(!this.zt){var a=new wC(void 0,!0,this.j());a.render();a.Ph(IC());a.fb("");this.yh().listen(a,zi,this.ema).listen(a,Cn,this.fma);vG(a,CC.key);U(a.b(),"share-client-error-dialog");this.zt=a}};q.ema=function(){this.dispatchEvent("errorHidden")};q.fma=function(){this.dispatchEvent("errorShown")};q.t7=function(a,b){var c=this.zt;a&&(c||(this.Spa(),c=this.zt),c.Dw(kx(b||"")));c&&c.C(a)};q.o=function(){G(this.zt);G(this.G);uQ.c.o.call(this)};q.HA=Jq;q.g6=Jq;q.P6=Jq;
q.Pza=function(a){a&&this.dispatchEvent("beforeLoad");this.g6(a);a||this.dispatchEvent(ge)};var vQ=function(){this.Dm=0;this.q0=!0},wQ=sA||wA&&0<=Er(zA,31)||E&&0<=Er(zA,11),xQ=[.25,.33296337402885684,.5,.6659,.75,.9,1,1.1,1.25,1.5,1.75,2,2.5,3,4,5];vQ.prototype.clear=function(){this.Dm=0};vQ.prototype.Bia=function(){0==this.Dm&&(this.Dm=this.bda());return this.Dm};vQ.prototype.bda=function(){var a=ky().devicePixelRatio||1;if(wQ)return a;var b=1;if(zt)b=this.Cia();else if(E){b=screen.deviceXDPI;var c=screen.logicalXDPI;C(b&&c);b=Math.round(b/c*100)/100}return b*a};
vQ.prototype.Cia=function(){var a=ky(),b=a.outerWidth;this.q0=250<=b;if(!this.q0){if(void 0==document.width)return 1;var c=my(d,{"min-width":kb});b=document;b.body.appendChild(c);a=b.width/c.clientWidth;b.body.removeChild(c);return a}a=b/a.innerWidth;b=ws;for(var e=a,f=0,g=xQ.length;f<g;){var h=f+g>>1;var l=b(e,xQ[h]);0<l?f=h+1:(g=h,c=!l)}c=c?f:~f;0>c&&(c=-c-1,0<c&&a-xQ[c-1]<xQ[c]-a&&--c);return xQ[c]||xQ[xQ.length-1]};var yQ=function(a){J.call(this);this.Dm=new vQ;this.Ga=new jC(this);this.L=a||N();this.YC=this.Or=null;this.S0=0;this.CCa()};B(yQ,J);q=yQ.prototype;q.lka=function(){if(this.YC)return this.YC;this.Or=this.L.g("iframe",{style:"position:absolute;width:9em;height:9em;top:-99em",tabIndex:-1,"aria-hidden":sp});var a=this.L.K().body;a.insertBefore(this.Or,a.firstChild);a:{a=this.Or;try{var b=a.contentWindow||(a.contentDocument?ky(a.contentDocument):null);break a}catch(c){}b=null}return this.YC=b};
q.CCa=function(){this.aDa()&&this.Ga.listen(this.lka(),Om,this.Kj)};q.Kj=function(){this.Dm.clear();var a=this.Dm.Bia();this.S0!=a&&(this.S0=a,this.dispatchEvent(Om))};q.eQ=null;q.aDa=function(){if(null!=this.eQ)return this.eQ;var a=my(d,{style:"height:4.5px;width:4.5px;"});document.body.appendChild(a);var b=a.getBoundingClientRect();xy(a);return this.eQ=.1>=Math.abs(b.right-b.left-4.5)};q.o=function(){this.Ga.dispose();xy(this.Or);this.Or=null};var zQ=function(a,b,c,e,f,g){this.i_=a;this.Gn=b;this.Ir=c;this.em=e;this.U0=f||null;this.j9=g||null};zQ.prototype.getMessage=function(){return this.Gn};zQ.prototype.pk=function(){var a={};a.iconId=this.i_;a.learnMoreUrl=this.U0;a.message=this.getMessage();a.showInDialog=this.Ir;a.timeout=this.em;a.undoFn=this.j9;return a};var AQ=function(a,b){V.call(this,b);this.uc=a};B(AQ,V);AQ.prototype.Va="info";AQ.prototype.aM=!1;var BQ={info:"jfk-butterBar-info",error:"jfk-butterBar-error",warning:"jfk-butterBar-warning",promo:"jfk-butterBar-promo"};q=AQ.prototype;q.getType=function(){return this.Va};q.Ne=function(a){if(this.J()){var b=this.b(),c=BQ[a];dC(b,BQ[this.Va]);U(b,c)}this.Va=a};q.eb=function(a){this.uc=a;if(a=this.b()){var b=this.j();b.Ke(a);b.append(a,this.uc)}};q.N=function(){var a=this.b();return null!=a&&bC(a,ej)};
q.C=function(a){C(this.V,"setVisible must only be called after the butter bar is rendered.");fC(this.b(),ej,a)};q.m6=function(a){this.aM=a;(a=this.b())&&fC(a,"jfk-butterBar-mini",this.aM)};q.g=function(){this.Na(this.j().g(d,"jfk-butterBar"));C(this.b(),"The DOM element for the butter bar cannot be null.");this.wca();this.eb(this.uc);this.m6(this.aM);this.Ne(this.Va)};q.wca=function(){var a=this.b();a&&(T(a,Mj,We),T(a,Xe,sp))};var CQ=function(a,b){this.iva=a;this.L=b||N();this.hj=null;this.Ir=!1;this.uo=0};B(CQ,F);
CQ.prototype.OBa=function(a,b){var c=a.i_;switch(c){case "copy":var e="share-butter-copy-icon";break;case "specificPeople":e="share-butter-specific-people-icon";break;case "personLink":e="share-butter-person-link-icon"}this.hj&&this.hN();var f=this.L,g=f.g(gd);e&&c!=Ek&&(e=f.g(gd,[Ge,"share-butter-icon",e]),f.append(g,e));e=f.g(gd,"share-butter-message",a.getMessage());f.append(g,e);if(e=a.U0)c=f.g("A",{target:Xd,"class":xn,tabIndex:"0"},Qc),Px(c,e),f.append(g,"\u00a0","\u00a0"),f.append(g,c);var h=
a.j9;if(h){var l=f.g(gd,{"class":xn,tabIndex:"0"},"Undo");l.onclick=function(){h();l.onclick=Jq};f.append(g,"\u00a0","\u00a0");f.append(g,l)}this.hj=f.g(d,["share-butterbar-container","share-butterbar-top","share-butterbar-zindex"]);g=new AQ(g,f);g.render(this.hj);T(g.b(),Mj,"off");g.C(!0);this.Ir=a.Ir;f.appendChild(this.Ir&&b?b:document.body,this.hj);this.eva(this.hj,b);this.uo=window.setTimeout(y(this.hN,this),a.em)};CQ.prototype.hN=function(){this.hj&&(xy(this.hj),this.hj=null,delete this.hj,window.clearTimeout(this.uo))};
CQ.prototype.eva=function(a,b){var c=parseInt(Gz(a,kq),10);if(this.Ir&&b){var e=parseInt(Gz(b,Ij),10),f=parseInt(Gz(b,op),10);b=parseInt(Gz(b,kq),10);var g=parseInt(Gz(a,xi),10);Kz(a,e+(b-c)/2,this.iva?0:f+g/2)}else a.style.left="50%",a.style.marginLeft=-(c/2)+n};var DQ=function(a){uQ.call(this,a);this.La=new sQ(a);this.yh().listen(this.La,Cg,this.Ula).listen(this.La,"p",this.Tla);this.q$=new yQ(a);this.Y(this.q$);this.i0=!1;this.YF=new CQ(!1,a);this.Y(this.YF)};B(DQ,uQ);q=DQ.prototype;q.IL=null;q.Ula=function(){this.C(!1);this.dispatchEvent(vp);return!1};q.Tla=function(){this.dispatchEvent(vp)};q.Sla=function(a){this.vP(a.target)&&(this.La.b().blur(),this.La.b().focus())};q.vP=function(a){return Ey(this.La.b(),a)};
q.HA=function(){var a=this.La;a.V||a.render();this.Rpa();U(a.b(),"share-client-dialog");this.yh().listen(a.b(),Bf,this.Sla);R(a.b(),!0);a.b().setAttribute(vi,"share_dialog");this.C(!1);this.yh().listen(this.q$,Om,this.La.ha.bind(this.La))};q.N=function(){return this.i0};q.C=function(a){var b=this.La;b.V||this.init();b.C(a);this.i0=a};
q.g6=function(a){var b=this.IL;a&&!b&&(b=new wC(void 0,!0,this.j()),b.Dw(this.rja()),b.Ph(null),b.fb(Sc),this.yh().listen(b,zi,this.Pma),this.IL=b,b.render(),U(b.b(),"share-client-loading-dialog"));b&&b.C(a)};q.Rpa=function(){var a=this.j(),b=this.La.Dj(),c=a.g(d,{"class":"share-client-debug"});a.appendChild(b,c)};q.Pma=function(){this.dispatchEvent(up)};q.eb=function(a){this.La.Dw(a)};q.LI=function(){return this.La.J()};
q.fb=function(a,b){var c=this.j().ri(Fc,void 0,this.LI());0<c.length&&(c[0].title=a);fC(this.La.dn(),"share-client-dialog-hidden-title",b);this.La.fb(b?"":a)};q.resize=function(a,b){var c=this.LI();c.style.width=a+n;c.style.height=b+n;this.ir();E&&(b=gy(document),Qt(8)&&b||(b=b?0:18,this.La.b().style.width=a+b+n))};q.ir=function(){var a=hy().height,b=this.La.b();if(this.N()&&0<a&&b&&!this.mra(b,a)){var c=Iz(b)==yh?0:this.j().Df().y;Q(b,op,a-aA(b).height+c+n)}};
q.mra=function(a,b){a=a.getBoundingClientRect();return 0<=a.top&&a.bottom<=b};q.showNotification=function(a){this.YF.OBa(a,this.La.b())};q.nwa=function(){this.YF.hN()};q.o=function(){G(this.La);G(this.IL);DQ.c.o.call(this)};q.P6=function(a){var b=this.La.b();fC(b,"team-drive-share-client-dialog",a);b.setAttribute(vi,a?"drive_share_dialog":"share_dialog")};var EQ=function(a,b){F.call(this);this.ab=a;this.H8=b;this.wC=[];this.E1=y(this.$ma,this);window.addEventListener(gk,this.E1,!1);this.Lj=new L};B(EQ,F);EQ.prototype.$ma=function(a){if(a.origin==this.H8){try{var b=JSON.parse(a.data)}catch(e){return}var c=b.args;if(b=this.Lj.get(b.type))this.ab=a.source,this.wC&&(D(this.wC,function(a){this.sendMessage(a.messageType,a.vua)},this),this.wC=[]),b.call(null,c)}};EQ.prototype.wr=function(a,b,c){this.Lj.set(a,y(b,c))};
EQ.prototype.sendMessage=function(a,b){if(this.ab){var c={};c.type=a;b&&(c.args=b);this.ab.postMessage(lv(c),this.H8)}else this.wC.push({messageType:a,vua:b})};EQ.prototype.o=function(){window.removeEventListener(gk,this.E1,!1)};var IQ=function(a,b,c){b=c||b;a=a||{};c=yF;a=""+(a.PJ?FQ({Xd:CF("scb-button-icon  scb-dlp-icon  ")},null,b):a.d$?GQ({Xd:CF("scb-button-icon  "+HQ(a.d$,null,b))},null,b):"");b=yF("Share");return c(a+b+"")};IQ.ra="apps.share.client.templates.ShareClientButton.buttonContent";
var JQ=function(a,b,c){b=c||b;c=yF;a.PJ?(b=b||null,a=a||{},a=yF(Cb+X(Wm)+Da+X(Ym)+ua+FQ({Xd:CF("scb-dlp-icon  ")},null,b)+tb+X($m)+ua+W(a.RV)+"</div></td></tr></table>")):(b=b||null,a=yF(Cb+X(Wm)+Da+X(Ym)+ua+GQ({Xd:CF(""+HQ(a,null,b))},null,b)+tb+X($m)+ua+W(a.summary)+"</div></td></tr>"+(a.zV?'<tr><td></td><td class="'+X(Zm)+ua+W(a.zV)+rb:"")+qb+(a.AF||a.BF?vb+X("scb-tooltip-separator")+'"></div><table class="'+X(Wm)+'"><tr class="'+X("scb-tooltip-additional")+'"><td class="'+X(Ym)+ua+(a.AF?Bb+X(Vm)+
" "+X(a.AF)+va:"")+sb+X(Zm)+ua+(a.BF?"<div>"+W(a.BF)+lb:"")+"</td></tr></table>":"")+""));return c(""+a+"")},GQ=function(a){a=$F(v(a.Xd)||a.Xd instanceof FE,"classes",a.Xd,ka);return yF(Bb+X(Vm)+" "+X(Ge)+(a?" "+X(a):"")+va)},FQ=function(a){a=$F(v(a.Xd)||a.Xd instanceof FE,"classes",a.Xd,ka);return yF(Bb+X(Ge)+" "+X(Vm)+(a?" "+X(a):"")+va)},HQ=function(a){var b=$F(Gq(a.$C)||1===a.$C||0===a.$C,"restrictedToDomain",a.$C,jf),c=$F(Gq(a.aD)||1===a.aD||0===a.aD,"restrictedToSingleUserScope",a.aD,jf),e=
$F(v(a.state)||a.state instanceof FE,"state",a.state,ka),f="";if($F(Gq(a.Au)||1===a.Au||0===a.Au,"hasInvalidEntries",a.Au,jf))f+="scb-invalid-icon-white";else switch(Oq(e)?e.toString():e){case "private":f+=c?"scb-private-icon-white":"scb-privately-shared-icon-white";break;case "unlisted":f+=b?"scb-domain-unlisted-icon-white":"scb-unlisted-icon-white";break;case Dm:f+=b?"scb-domain-public-icon-white":"scb-public-icon-white"}return AF(f)};var KQ=function(a){return null!=a&&(!v(a)||!ar(Ar(a)))&&(!x(a)||!ks(a))&&(!Oq(a)||!Us(a))};var LQ=function(a,b,c,e,f,g,h,l,p){this.oa=a;this.dQ=b;this.hH=c;this.z4=e||0;this.s4=u(f)?f:!0;this.E0=g||null;this.Ly=h||null;this.t4=!!l;this.RJ=u(p)?p:!1};LQ.prototype.Au=function(){return this.RJ};LQ.prototype.pk=function(){var a={};a.visibilityState=this.oa;a.summary=this.dQ;a.details=this.hH;a.role=this.z4;a.restrictedToDomain=this.s4;this.E0&&(a.key=this.E0);this.Ly&&(a.domainDisplayName=this.Ly);a.restrictedToSingleUserScope=this.t4;a.hasInvalidEntries=this.RJ;return Ks(a,KQ)};
var MQ=function(a){return new LQ(a.visibilityState,a.summary,a.details,a.role,a.restrictedToDomain,a.key,a.domainDisplayName,a.restrictedToSingleUserScope,a.hasInvalidEntries)};LQ.prototype.Jka=function(){var a={};a.state=this.oa;a.summary=this.dQ;a.zV=this.hH;a.$C=this.s4;this.Ly&&(a.XNa=this.Ly);a.fOa=this.z4;a.yOa=lv(this.pk());a.aD=this.t4;a.Au=this.RJ;return a};var OQ=function(a){V.call(this,a);this.kb=new NQ(a);a=new hG("",this.j());this.ca(a);this.jT=a;this.Fx=null};B(OQ,V);q=OQ.prototype;q.rH=null;q.tk=null;q.tj=null;q.Mj=!1;q.Gx=null;q.Cj=function(){return this.jT};q.U=function(a,b){this.jT.U(a);this.rH=!a&&u(b)?b:null;this.pf()};q.n5=function(a,b){this.Gx=a||null;this.Fx=b||null;this.pf()};q.B=function(){OQ.c.B.call(this);this.pf()};q.q1=function(){var a=this.tk;return a?a.Jka():null};
q.Xra=function(){var a={};if(this.Mj)a.RV=this.zX(),a.PJ=!0;else{var b=this.q1();b&&(a.d$=b)}return a};q.zX=function(){var a="Document contains "+this.tj;return""==this.tj?"Document contains sensitive data":a};q.csa=function(){var a={};if(this.Mj)a.RV=this.zX(),a.PJ=!0;else if(a=this.q1(),this.Gx||this.Fx)a=a||{},this.Gx&&(a.BF=this.Gx),this.Fx&&(a.AF=this.Fx);return a};q.mP=function(a){this.tk=a;this.pf()};q.Yya=function(a,b){this.tj=a;this.Mj=b;this.pf()};q.g=function(){this.Cj().g();this.Na(this.j().createElement(Jo))};
q.Ka=function(a){OQ.c.Ka.call(this,a);var b=a.childNodes[0];this.Cj().R(b);this.mP(PQ(a));if(this.Mj=a?a.getAttribute("hasDlpViolation")==sp:!1)b=a.getAttribute("displayName"),this.tj=b==Gk?null:a?b||null:null};q.pf=function(){if(this.V){var a=this.Cj();a.Dr(2);var b=UE(IQ,this.Xra());a.eb(b);T(a.b(),Cj,this.$ha());b=this.kb;if(this.rH)b.Rh(kx(this.rH)),b.pd(a.b());else{var c=this.csa();c?(b.Rh(JQ(c).Ti()),b.pd(a.b())):b.detach(a.b())}}};
q.$ha=function(){if(this.Mj){var a="Share. Warning, this document contains "+(this.tj+".");return""==this.tj?"Share. Warning, this document contains sensitive content.":a}if(!this.tk)return"Share";a="Share. "+(this.tk.dQ+". ");var b=this.tk.hH;b&&(a+=b);return a};var PQ=function(a){if(!a)return null;a=a.getAttribute("vsjson");return a?(a=JSON.parse(ur(a)))?MQ(a):null:null};OQ.prototype.o=function(){OQ.c.o.call(this);this.kb.dispose();this.tk=null};var NQ=function(a){TG.call(this,void 0,void 0,a)};
B(NQ,TG);NQ.prototype.Rh=function(a){this.b().style.left="";this.b().style.top="";NQ.c.Rh.call(this,a)};var RQ=function(a,b,c,e,f,g){this.Ab=a;this.ma=String(b);this.Axa=c||"user";this.usa=!!e;this.ppa=ar(Ar(f))?null:QQ(f);this.Ywa=!!g},SQ=new L,QQ=Ds;q=RQ.prototype;q.getName=function(){return this.Ab};q.getId=function(){return this.ma};q.clone=function(a){var b=this.pk();a&&at(b,a);a=b.scopeType;return SQ.Xb(a)?SQ.get(a).call(void 0,b):new RQ(b.name,b.id,b.scopeType,b.me,b.iconUrl,b.requiresKey)};
q.pk=function(){var a={};a.iconUrl=this.ppa;a.scopeType=this.Axa;a.name=this.Ab;a.id=this.ma;a.me=this.usa;a.requiresKey=this.Ywa;return Ks(a,KQ)};q.toString=function(){return"<scope id="+this.getId()+", name="+this.getName()+">"};var UQ=function(a,b,c,e,f,g,h){RQ.call(this,a,b,"user",e,f,h);this.vj=c||null;this.dqa=g||null};B(UQ,RQ);UQ.prototype.getEmail=function(){return this.vj};UQ.prototype.pk=function(){var a=UQ.c.pk.call(this);a.email=this.vj;a.invitedEmail=this.dqa;return Ks(a,KQ)};var VQ=function(a){return new UQ(a.name,a.id,a.email,a.me,a.iconUrl,a.invitedEmail,a.requiresKey)};SQ.set("user",VQ);var WQ=function(a){F.call(this);this.MEa=a.userRole||0;this.Zfa=!!a.editorsCanInvite;this.cta=a.numSharedUsers||0;this.XD=!!a.sharingDisabled;this.SQ=a.userScope||null;this.ZH=!!a.exportable;this.tk=a.visibilitySetting||null;this.WD=a.shareableUrl||null;this.pN=!!a.requestShareEnabled;this.l7=a.shareAppPath||null;this.tj=a.dlpDetectorDisplayName||null;this.Mj=a.hasDlpViolation||!1;var b=a.emailCollaboratorsSupported;this.aW=null==b||!!b;a=a.emailAsAttachmentSupported;this.$V=null==a||!!a};B(WQ,F);
q=WQ.prototype;q.cq=function(){return this.MEa};q.Cz=function(){return this.Zfa};q.gJ=function(){return this.cta};q.eq=function(){return this.tk};q.mP=function(a){this.tk=a};
q.pk=function(){var a={};a.userRole=this.cq();a.editorsCanInvite=this.Cz();a.numSharedUsers=this.gJ();a.sharingDisabled=this.XD;a.userScope=this.SQ?this.SQ.pk():null;a.exportable=this.ZH;this.eq()&&(a.visibilitySetting=this.eq().pk());a.shareableUrl=this.WD;a.requestShareEnabled=this.pN;a.shareAppPath=this.l7;a.hasDlpViolation=this.Mj;a.dlpDetectorDisplayName=this.tj;a.emailCollaboratorsSupported=this.aW;a.emailAsAttachmentSupported=this.$V;return a};var XQ=function(a,b,c,e,f,g,h,l,p,r,z,O,ea,qa){J.call(this);this.qz=a;this.hb=l||new DQ(e);this.ge=p||window;a=this.hb.uka();e=new vD(e,a);this.tT=25E3;this.Gpa=1E4;a=e.b();a||(e.g(),a=e.b());U(a,"goog-menu-noaccel");e.C(!1);this.Ul=e;a=this.hb.tY();(this.JL=new qD(this.haa,void 0,void 0,a)).U(!1);(this.VD=new qD(this.iaa,void 0,void 0,a)).U(!1);this.mw=b;this.Lha=c;this.vBa=h||b;this.Nc=new WQ({});this.L=e.j();this.Qf=f||null;this.bva=u(g)?g:!0;this.Iw=this.hb.tka();this.kh=z||null;this.mx=!!r;this.bW=
r||null;this.wBa=O||null;this.TR=qa||new rQ;this.rCa=!1;this.AS=null;this.pya();this.aI=null;this.jza(ea);this.mx||this.YH(this.ge);b=this.SI();b.listen(e,Cn,this.Zma);b.listen(e,k,this.coa);b.listen(this.hb,up,this.Lma);b.listen(this.hb,vp,this.woa);b.listen(this.hb,"errorHidden",this.xoa);b.listen(this.hb,"errorShown",this.KJ)};B(XQ,J);q=XQ.prototype;q.HE=null;q.Es=null;q.lh=null;q.MA=!1;q.wB=null;q.RG="share";q.aj=!1;q.Pi=!1;q.Ok=null;q.Eq=null;q.Cr=null;q.x4=null;q.G=null;q.Ac=null;q.Bh=null;
q.BN=null;q.JA=!1;q.GA=null;q.WQ=!1;q.lm=!1;q.Zi=!1;q.l1=!1;q.qp=null;q.ZB=0;q.cW=!1;q.cQ=null;q.pL=0;q.Gr=null;q.rP=!1;q.Zva=!1;q.Pu=!1;q.O_=!1;q.haa=Sc;q.iaa="Sharing is unavailable at this time. Please try again later.";q.jaa="Sorry, sharing is unavailable at this time. Please try again later.";q.sf=null;
q.YH=function(a){this.mx||(a.SC_setTitle=y(this.Hw,this),a.SC_resize=y(this.hb.resize,this.hb),a.SC_setVisible=y(this.X6,this),a.SC_prepareForVisible=y(this.WM,this),a.SC_setClientModel=y(this.x5,this),a.SC_dispatchEvent=y(this.zp,this),a.SC_handleError=y(this.be,this),a.SC_handleCommandComplete=y(this.VY,this),a.SC_setExecuteCommandFn=y(this.hza,this),a.SC_switchShareApp=y(this.bDa,this),a.SC_setSetShareSystemVisibleFn=y(this.KAa,this),a.SC_setGetInterfaceVersionNumberFn=y(this.uza,this),a.SC_getVersionNumber=
y(this.Vka,this),a.SC_rewriteUrl=y(this.ixa,this),a.SC_showNotification=y(this.ZBa,this),a.SC_removeNotification=y(this.owa,this),a.SC_getAriaLiveRegion=y(this.Uha,this))};
q.Qba=function(){if(this.mx&&!this.sf){var a=this.lh.clone().$g("").setQuery("").vr("").toString();this.sf=new EQ(null,a);this.Y(this.sf);this.sf.wr("setClientModel",function(a){this.x5(a.clientModelJson)},this);this.sf.wr("handleCommandComplete",function(a){this.VY(a.commandType,a.commandStatus)},this);this.sf.wr(Om,function(a){this.hb.resize(a.width,a.height);this.sf.sendMessage("resizeComplete")},this);this.sf.wr("prepareForVisible",function(){this.WM();this.sf.sendMessage("makeBodyVisible");this.sf.sendMessage("prepareComplete")},
this);this.sf.wr("setVisible",function(a){this.X6(a.visible)},this);this.sf.wr("setTitle",function(a){this.Hw(a.title,a.hidden)},this);this.Eq=null;this.Ok=y(function(a){this.sf.sendMessage("executeCommand",{commandType:a})},this)}};q.mEa=function(){this.Gr&&(this.Gr.mP(this.Nc.eq()),this.Gr.Yya(this.Nc.tj,this.Nc.Mj))};q.lEa=function(){var a=this.Nc.l7;a!=Wg&&(a="share");if(a!=this.RG){var b=this.lh.clone();b=YQ(b,a);this.Pi=!1;this.lh=b;this.RG=a}};q.ww=function(a){var b={};b.impressionType=a;return b};
q.vya=function(a){if(this.lh)throw Error("Base uri has already been set and cannot be set again.");v(a)&&(a=new Ty(a));this.lh=a;this.mx&&this.Qba()};q.Jza=function(a,b){a=x(a)?a:[a];vs(a);xs(a);var c=this.Ac,e;if(!(e=!this.aj)){a:if(Mq(a)&&Mq(c)&&a.length==c.length){e=a.length;for(var f=0;f<e;f++)if(a[f]!==c[f]){c=!1;break a}c=!0}else c=!1;e=!c}e&&(this.Ac=a,this.Pu=this.aj=!1,this.pL=0,this.wB=b?b:null,this.mi(Lm),this.hb.N()&&this.iP(!1))};q.Vka=function(){return 2};
q.DBa=function(a,b){b=b&&!!b.forceFullLoad;switch(a){case Pj:case ak:return!b;case um:return!0;default:return!1}};q.W_=function(){return 2E4<A()-this.pL};q.x5=function(a){var b=this.Nc;a=Xs(a);var c=a.userScope;c&&(a.userScope=VQ(c));(c=a.visibilitySetting)&&(a.visibilitySetting=MQ(c));this.Nc=new WQ(a);this.aj&&b.WD!=this.Nc.WD&&(this.rP=!0);this.aj=!0;this.lm=!1;this.lEa();this.nEa();this.zQ();this.mEa();this.zp(ce)};q.FBa=function(a){return this.rCa?!1:a||this.Ul.N()?!0:!1};
q.Zma=function(){if(this.FT())this.aj?this.g3():(this.Ul.N()||this.Ul.C(!0,!0),this.IE(!0));else{this.Sv();for(var a=this.Iw.II(this.L),b=a.length-1;0<=b;b--)this.ts(a[b])}};q.be=function(a,b){switch(a){case Ti:this.iCa(b),this.aj=this.Pu=!0}};q.VY=function(a,b,c){b=b==Vo;switch(a){case Ti:this.N3();break;case "init_share":case "data":b&&(this.pL=A());this.aoa(b);break;case vn:case fe:b||this.u7(c||"")}};q.uza=function(){};q.hza=function(a){this.Pi=!0;this.Eq=this.Ok;this.Ok=a};
q.bDa=function(a,b){b&&b.forceFullLoad&&(this.Pi=!1);var c=this.Ok;this.Eq?this.Ok=this.Eq:this.Pi=!1;this.Eq=c;this.gG();this.mi(a,b)};q.KAa=function(a){this.Cr=a};q.iCa=function(a){this.Sv();if(a){var b=this.hb.tY();a=new qD(qy(document,xE(a)),void 0,void 0,b);a.U(!1);this.ts(a)}else this.ts(this.VD)};q.ixa=function(a){return this.x4?this.x4(a):a};q.ZBa=function(a){this.hb.showNotification(new zQ(a.iconId,a.message,a.showInDialog,a.timeout,a.learnMoreUrl,a.undoFn))};q.owa=function(){this.hb.nwa()};
q.Hw=function(a,b){this.hb.fb(a,b)};q.kqa=function(){return this.RG==Wg};q.cq=function(){return this.Nc.cq()};q.Cz=function(){return this.Nc.Cz()};q.gJ=function(){return this.Nc.gJ()};q.uJ=function(){var a=this.Nc.cq();return this.Nc.XD?!1:40==a||45==a||30==a&&this.Nc.Cz()};q.eq=function(){return this.Nc.eq()};q.pya=function(a){var b=null;a&&(b=this.L.b(a));this.AS=b?b:this.L.b("docs-aria-speakable")};q.Uha=function(){return this.AS};
q.jza=function(a){a&&(this.aI=function(){var b=a(),c=new Gv(function(a){t.setTimeout(a,1500)});return Lv([b,c])})};q.IE=function(a,b,c){this.Ac&&!ks(this.Ac)&&(this.hb.N()?this.HE=y(this.IE,this,a,b):(a&&this.pva(),this.lm||(this.Pi?(this.lm=!0,this.LN(c,!0)):this.FBa(b)&&(this.lm=!0,this.Qxa(),a&&this.g3()))))};q.pva=function(){this.Sv();this.ts(this.JL);M(this.NR,this.Gpa,this)};q.Qxa=function(){this.WQ=!0;this.dja().src=this.JY(Ti);M(this.pda,this.tT,this)};
q.g3=function(){this.Pu||(this.Zi||this.Pi?this.Pi&&this.W_()&&(this.Zi=!0,this.LN(void 0,!0)):(this.Zi=!0,this.g5("unknown",!0)))};q.g5=function(a,b){var c={};c.locationHint=a;c.preload=!!b;a=this.Rka("init_share",c);this.hb.eb(a);b||this.yw(!0);this.WM()};q.LN=function(a,b){a=a||{};a.itemIds||(a.itemIds=this.Ac);a.locationHint||(a.locationHint=this.wB);!a.hybrid_access_token&&this.Bh&&(a.hybrid_access_token=this.Bh);!a.adminRequest&&this.MA&&(a.adminRequest=!0);this.TH("data",a,void 0,b)};
q.Sv=function(){for(var a=this.Ul,b=this.ZB,c=0;c<b;c++)a.L3(0,!0);this.ZB=0;this.zp(ek)};q.ts=function(a){a.getParent()||(this.Ul.pe(a,0,!0),this.ZB++,this.zp(ek))};q.SI=function(){return this.G||(this.G=new jC(this))};q.Rka=function(a,b){a=this.lh&&this.JY(a,b);return yF('<iframe frameborder="0" src="'+(a?X(UF(a)):"javascript:&quot;&quot;")+ma+X("share-client-content-iframe")+ya).Ti()};
q.JY=function(a,b){if(!this.lh)return bj;var c=this.lh.clone();if(a==Ti)c=YQ(c,Ti);else if(b){var e=b.locationHint;e||Vs(b,"locationHint");"teamDriveRoot"==e||"teamDriveItem"==e?c=YQ(c,Wg):"myDriveItem"==e&&(c=YQ(c,"share"))}c.T("id",this.Ac);c.T("foreignService",this.mw);c.T("gaiaService",this.Lha);c.T("shareService",this.vBa);a!=Ti&&c.T("command",a);c.T("subapp",10);c.T("popupWindowsEnabled",this.bva);c.T("shareUiType",xg);this.Qf&&c.T("hl",this.Qf);this.Bh?c.T("hybrid_access_token",this.Bh):c.T($e,
this.qz?this.qz:"0");c.T("rand",A());b&&c.zh().extend(b);this.mx&&c.T("client","postMessage");this.kh&&c.T("appId",this.kh);this.bW&&c.T("embedOrigin",this.bW);this.MA&&c.T("admin",!0);return c.toString()};var YQ=function(a,b){b=b==Wg||b==Ti?b:"share";return a.$g(a.getPath().replace(/[a-z]+$/,b))};q=XQ.prototype;
q.mi=function(a,b){b=b||{};b.itemIds=this.Ac;b.triggerInstantMs=A();this.Bh&&(b.hybrid_access_token=this.Bh);this.MA&&(b.adminRequest=!0);this.wB&&(b.locationHint=this.wB);this.YH(this.ge);var c=!0;switch(a){case Ti:case Pj:case "maybe_email_collaborators":case ak:case um:case Lm:case Nm:c=!1}switch(a){case Pj:case ak:this.SN(!0)}if(a==Nm)this.NR();else if(!this.Pi&&this.Ac&&15<this.Ac.length)this.BN=this.Ac,this.Ac=[this.Ac[0]],this.JA=!0,this.UH(a,b,!c);else if(a==Ti||a==Lm)this.IE(!1,!0,b);else if(!this.FT())this.dispatchEvent(new ZQ(y(this.mi,
this,a,b)));else if(this.dispatchEvent(new $Q(a,b))){if("invite"==a&&b.inviteFromUrl){if(this.aj&&!this.uJ())return;if(!this.aj){this.lm||this.IE(!1,!0);this.SI().Of(this,ce,y(this.mi,this,a,b));return}}a==vn&&!b.itemContentSummaryPromise&&this.aI&&(b.itemContentSummaryPromise=this.aI());!this.Pi||this.W_()&&!this.DBa(a,b)?((this.JA&&c||b.itemContentSummaryPromise)&&this.yw(!0),this.UH(a,b,!c)):this.TH(a,b)}};
q.UH=function(a,b,c){this.qp=a;this.Xs=b;this.Ay=(new Date).getTime();this.tBa();this.Zi||(this.Zi=!0,this.Pi?this.lm||this.LN(b,a==Pj||a==ak):(a="unknown",b&&b.locationHint&&(a=b.locationHint),this.g5(a,c)))};
q.TH=function(a,b,c,e){if(a!=um){var f=b||{};f.itemIds||(f.itemIds=this.Ac);!f.hybrid_access_token&&this.Bh&&(f.hybrid_access_token=this.Bh);!f.adminRequest&&this.MA&&(f.adminRequest=!0);if(a==ak||a==Pj)f.aclFixerMode=f.aclFixerMode||"mail";this.YH(this.ge);(b=f.itemContentSummaryPromise)?b.then(function(b){this.yw(!1);b?f.itemContentSummaryInfo=b:f.itemContentSummaryPromiseTimeout=!0;this.Ok(a,f,c,e)},void 0,this):this.Ok(a,f,c,e)}};
q.tBa=function(){Hq(this.Es)&&Rv(this.Es);this.Es=M(this.qda,this.tT,this)};q.aoa=function(a){this.Zi=!1;var b=this.qp,c=this.Xs;if(this.JA)if(this.JA=!1,this.Ac=this.BN,delete this.BN,this.qp=null,delete this.Xs,delete this.Ay,a){if(b){c.itemIds=this.Ac;this.Bh&&(c.hybrid_access_token=this.Bh);this.UH(b,c);return}}else b==ak&&this.tH();b&&(a?(a=y(this.TH,this,b,this.Xs,this.Ay),M(a,10,this)):b==ak&&this.tH(),this.qp=null,delete this.Xs,delete this.Ay)};
q.dja=function(){var a=this.GA;a||(this.GA=a=this.Zra());return a};q.Zra=function(){var a=my(Fc);E&&!Qt("7")&&Qx(a,Jw(ow(bj)));var b=a.style;b.visibility=yi;b.width=b.height="10px";xA&&!Qt("419.3")?b.marginTop=b.marginLeft="-99px":(b.position=be,b.top=b.left="-10px");document.body.appendChild(a);return a};q.N3=function(){var a=this.GA;a&&(xy(a),this.GA=null)};q.pda=function(){this.WQ&&(this.N3(),this.WQ=!1)};q.NR=function(){this.lm&&!this.Pu&&(this.Sv(),this.ts(this.VD),this.lm=!1,this.Pu=!0)};
q.FT=function(){return this.Ac?!!this.Ac.length:!1};q.xwa=function(){this.iP(!1);this.hb.eb(yx)};q.qda=function(){if(this.Zi){switch(this.qp){case ak:this.tH();break;case Pj:case um:break;default:this.u7(this.jaa)}this.zp(Oj);this.gG()}};q.Lma=function(){this.l1&&this.gG()};q.gG=function(){this.Zi&&(this.xwa(),this.Zi=!1,this.yw(!1),this.qp=null,delete this.Xs,delete this.Ay)};q.yw=function(a){this.l1=a;this.hb.Pza(a);a&&this.KJ()};q.u7=function(a){this.hb.t7(!0,a)};
q.coa=function(a){switch(a.target.getValue()){case Zg:this.cga();break;case $g:this.aga();break;case vn:this.uBa();break;case fe:this.dca();break;case "restrictions":this.exa()}};q.aga=function(){this.mi("email_attach",this.ww(6))};q.cga=function(){this.mi(Zg,this.ww(5))};q.uBa=function(){this.mi(vn,this.ww(2))};q.dca=function(){this.mi(fe,this.ww(2))};q.exa=function(){this.mi("team_drive_restrictions",this.ww(2))};
q.zQ=function(){var a=this.Nc;this.TR.PDa(a.cq(),this.O_||a.XD,this.uJ(),this.Ac?this.Ac.length:0,a.ZH&&this.cW,a.pN,!!a.SQ,a.aW,a.$V,this.wBa||void 0)};q.nEa=function(){this.Sv();var a=this.Nc;this.ZB=this.Iw.II(this.L).length;this.Iw.eEa(this.Ul,a.cq(),a.XD,this.uJ(),a.ZH&&this.cW,this.Ac?this.Ac.length:0,this.L,a.pN);this.zp(ek)};q.X6=function(a){a&&(this.Zi=!1,this.yw(!1),this.hb.t7(!1));this.iP(a)};q.WM=function(){this.hb.init()};
q.iP=function(a){a&&(this.hb.init(),this.hb.P6(this.kqa()));this.hb.C(a);a?this.KJ():this.zZ()};q.SN=function(a){this.O_=a;this.aj?this.zQ():(this.TR.k7.U(!a),this.SI().Of(this,ce,y(this.zQ,this)))};q.KJ=function(){this.dispatchEvent("uiOpened")};q.zZ=function(){this.HE&&(this.HE(),this.HE=null);if(this.rP){this.rP=!1;var a=this.Nc.WD,b=this.Nc.eq();a&&b&&"unlisted"==b.oa&&(a=new aR(a),this.Zva?a.Usa():this.dispatchEvent(a))}this.Cr&&this.Cr(!1);this.dispatchEvent("uiClosed")};
q.woa=function(){this.Cr&&this.Cr(!1)};q.xoa=function(){this.hb.N()||this.zZ()};q.tH=function(){this.SN(!1);this.dispatchEvent(new bR(jg))};q.zp=function(a,b){switch(a){case "aclFixerDone":a=jg;b&&b.aclFixerDoneStatus&&(a=b.aclFixerDoneStatus);this.SN(!1);this.dispatchEvent(new bR(a));break;default:this.dispatchEvent(new H(a))}};
q.o=function(){XQ.c.o.call(this);Hq(this.Es)&&Rv(this.Es);this.Ul.dispose();delete this.Ul;this.Gr&&(this.Gr.dispose(),this.Gr=null);this.JL.dispose();delete this.JL;this.VD.dispose();delete this.VD;delete this.L;this.Iw.dispose();delete this.Iw;this.hb.dispose();delete this.hb;this.G&&(this.G.dispose(),this.G=null);this.cQ&&(this.cQ.dispose(),this.cQ=null);this.lh=this.Bh=this.Ac=null;this.Nc.dispose();delete this.Nc;this.Cr=this.Ok=this.Eq=null};
var $Q=function(a,b){H.call(this,"beforeExecute");this.wua=b||{}};B($Q,H);$Q.prototype.getArgs=function(){return this.wua};var ZQ=function(a){H.call(this,"createItems");this.Mc=a};B(ZQ,H);var aR=function(a){H.call(this,"reloadSuggested");this.xBa=a};B(aR,H);
aR.prototype.Usa=function(a){var b=bz(this.xBa).mb("authkey"),c=a||window;a=bz(c.location.href).removeParameter("userstoinvite");b&&a.T("authkey",b);var e=a.toString();e!=bz(c.location.href).toString()&&((b=this.target)&&b.dispose(),c.setTimeout(function(){Sx(c.location,e)},0))};var bR=function(a){H.call(this,"aclFixerDone");this.Ur=a};B(bR,H);bR.prototype.Ij=function(){return this.Ur};var cR=function(a){DQ.call(this,a);this.qy={}};B(cR,DQ);var dR={AFa:lf,iMa:op};q=cR.prototype;q.uc=yx;q.m7=!0;q.to=null;q.qP=null;q.py=null;q.x8="";q.Xc="";
q.HA=function(){cR.c.HA.call(this);var a=this.j(),b=this.LI(),c=a.g(d),e=a.g(d);Ox(e,this.uc);e.className="share-client-panel-dialog-share";var f={};for(g in dR){var g=dR[g];f[g]=a.g(d)}a.appendChild(b,f.top);a.appendChild(b,c);a.appendChild(b,e);a.appendChild(b,f.bottom);this.to=e;c.className="share-client-panel-dialog-overlay";this.qP=c;this.YO(this.m7);this.py=f;for(g in dR)g=dR[g],f[g].className="share-client-panel-dialog-component-"+g,(a=this.qy[g])&&this.Apa(a,g)};
q.C=function(a){cR.c.C.call(this,a);a&&this.La.focus()};q.fb=function(a,b){this.Xc=a;this.x8&&(a=a+" - "+this.x8);cR.c.fb.call(this,a,b)};q.eb=function(a){this.uc=a;this.to&&Ox(this.to,a)};q.vP=function(a){if(!cR.c.vP.call(this,a))return!1;for(var b in dR)if(b=dR[b],Ey(this.py[b],a))return!1;return!0};q.Apa=function(a,b){a&&b&&a.render(this.py[b])};q.YO=function(a){this.m7=a;var b=this.qP;if(b){if(!a){var c=aA(this.to);this.n4(c.width,c.height)}R(b,!a);cA(this.to,a?1:.5)}};
q.Kj=function(){var a=aA(this.to);this.resize(a.width,a.height)};q.resize=function(a,b){this.axa(a,b);var c=0;for(e in dR){var e=dR[e];var f=this.qy[e];!f||e!=op&&e!=lf||(f.UD(a),c+=f.ti())}cR.c.resize.call(this,a,b+c)};q.axa=function(a,b){var c=this.to;c.style.width=a+n;c.style.height=b+n;this.n4(a,b)};q.n4=function(a,b){var c=this.qP;c.style.width=a+n;c.style.height=b+n};q.o=function(){for(var a in dR)a=dR[a],G(this.qy[a]);this.py=this.qy=null;cR.c.o.call(this)};var eR=function(a){this.action=a;this.wfv=!1},fR={Mo:qf,GFa:"cancel-upload",qKa:Lm,MKa:"select-contacts",NKa:"select-fonts",OKa:"select-people",TKa:"set-album-sort-order",UKa:on,VKa:pn,WKa:qn,XKa:rn,YKa:sn,ZKa:tn,$Ka:un,IR:dq};var gR=function(){eR.call(this,qf)};B(gR,eR);var hR=function(a){eR.call(this,"cancel-upload");this.id=a};B(hR,eR);var iR=function(){eR.call(this,Lm)};B(iR,eR);var jR=function(a,b){eR.call(this,on);this.appId=a;this.appOrigin=b};B(jR,eR);var kR=function(a){eR.call(this,qn);this.wfv=!0;this.maxSizeBytes=a};B(kR,eR);var lR=function(a){eR.call(this,pn);this.wfv=!0;this.maxItems=a};B(lR,eR);var mR=function(a){eR.call(this,rn);this.wfv=!0;this.title=a};B(mR,eR);var nR={E$:ke,wGa:Ig,xGa:Jg,yGa:Kg,F$:Mg,FGa:Tg,pHa:Ch,wHa:Hh,LJa:sl,ZJa:wm,IKa:an,kLa:Rn,KLa:Lo,VLa:Xo,kGa:ng,ZHa:Ni,PJa:vl,QJa:wl,taa:xl,SJa:yl,saa:zl,VMa:hq,gNa:rq,LMa:Wp,IMa:Xp,cba:pq,aaa:Xj,LIa:Yj,fR:zf,x$:fg,gF:tl,I$:"et",EFa:of,N$:Fh,aKa:ym,lKa:Jm,rMa:zp,URL:Mp,WMa:gq,fKa:"quota"},oR=function(a){switch(a){case ke:case Ig:case Jg:case Kg:case Mg:case Tg:case Ch:case Hh:case sl:case wm:case Rn:case Lo:case Xo:return!0}return!1};var pR=function(a){this.ma=a;this.W={}};q=pR.prototype;q.Ra=function(a){this.Ua=a||void 0;return this};q.setQuery=function(a){this.W.query=a;return this};q.Gb=function(a){this.W.mimeTypes=a;return this};q.Fb=function(a){this.W.hideBc=a?sp:null;return this};q.Db=function(a,b){var c=this.W.data||{};c[a]=b;this.W.data=c;return this};q.Ea=function(a){this.W.parent=a;return this};q.Mb=function(a){this.W.cRename=a;return this};
q.Vh=function(){var a=Ks(this.W,function(a){return null!==a});a=Us(a)?null:a;a=[this.ma,this.Ua,a];var b=hs(a,Ds);return a=a.slice(0,b+1)};q.toString=function(){var a=this.Vh();return"("+as(a,function(a){return lv(a)}).join(",")+")"};q.getId=function(){return this.ma};q.wg=function(){return this.Ua};q.getOptions=function(){return Xs(this.W)};q.getQuery=function(){return this.W.query};var qR=function(a){eR.call(this,tn);this.view=a.Vh()};B(qR,eR);var rR=function(a){eR.call(this,un);this.viewOptions=a};B(rR,eR);var sR=function(a){eR.call(this,dq);this.visible=a};B(sR,eR);var tR={Mo:qf,TJa:Bl,vMa:Cp,wMa:Dp,yMa:Ep,EIa:Qj,yFa:"blurred",WGa:ch,NMa:$p,SMa:cq,OMa:aq,kKa:Im};var uR=[void 0,ll,"limited",nh,Ng,Dm,le];var vR=function(a){pR.call(this,zp);this.W.query=a};B(vR,pR);q=vR.prototype;q.setQuery=function(){throw Error("Query cannot be set for upload views.");};q.kBa=function(a){this.W.notifications=a?sp:null;return this};q.Ra=function(a){vR.c.Ra.call(this,a);return this};q.Gb=function(a){vR.c.Gb.call(this,a);return this};q.Fb=function(a){vR.c.Fb.call(this,a);return this};q.Db=function(a,b){vR.c.Db.call(this,a,b);return this};q.Ea=function(a){vR.c.Ea.call(this,a);return this};
q.Mb=function(a){vR.c.Mb.call(this,a);return this};var wR=function(){vR.call(this,Hg)};B(wR,vR);q=wR.prototype;q.zO=function(a){this.W.includeFolders=a;return this};q.Ra=function(a){wR.c.Ra.call(this,a);return this};q.setQuery=function(a){wR.c.setQuery.call(this,a);return this};q.Gb=function(a){wR.c.Gb.call(this,a);return this};q.Fb=function(a){wR.c.Fb.call(this,a);return this};q.Db=function(a,b){wR.c.Db.call(this,a,b);return this};q.Ea=function(a){wR.c.Ea.call(this,a);return this};q.Mb=function(a){wR.c.Mb.call(this,a);return this};var xR=function(a){a&&C(oR(a),"opt_viewId must be a docs view type");pR.call(this,a||ke)};B(xR,pR);q=xR.prototype;q.VAa=function(a,b){this.W.sortKey=a;b&&(this.W.ff=b);return this};q.HO=function(a){this.W.mode=a;return this};q.cza=function(a){this.W.td=a;return this};q.mAa=function(a){u(a)?this.W.ownedByMe=a:delete this.W.ownedByMe;return this};q.XAa=function(a){this.W.starred=a;return this};q.zO=function(a){this.W.includeFolders=a;return this};q.BAa=function(a){this.W.selectFolder=a;return this};
q.Zya=function(a){this.W.docTypesDropDown=a;return this};q.Z6=function(a){this.W.upload=a;return this};q.Mya=function(a){this.W.createFolder=a;return this};q.Sza=function(a){this.W.maxPrefetchCollections=a;return this};q.Ra=function(a){xR.c.Ra.call(this,a);return this};q.setQuery=function(a){xR.c.setQuery.call(this,a);return this};q.Gb=function(a){xR.c.Gb.call(this,a);return this};q.Fb=function(a){xR.c.Fb.call(this,a);return this};q.Db=function(a,b){xR.c.Db.call(this,a,b);return this};
q.Ea=function(a){xR.c.Ea.call(this,a);return this};q.Mb=function(a){xR.c.Mb.call(this,a);return this};q.lAa=function(a){this.W.ops=a;return this};q.Kza=function(a){this.W.items=a;return this};q.cAa=function(a){this.W.mbl=a;return this};q.C6=function(a){this.W.sblois=a;return this};q.gya=function(a){this.W.eai=a;return this};q.hya=function(a){this.W.ail=a;return this};q.kAa=function(a){this.W.sou=a;return this};q.xfa=function(a){this.W.drois=a;return this};q.Fya=function(a){this.W.cv=a.Vh();return this};
q.yfa=function(a){this.W.drdis=a;return this};q.xAa=function(a){this.W.rdem=a;return this};var yR={OFa:"cwpc",HGa:"daape",JGa:"driveGridViewSwitcherHidden",NGa:"driveSortHidden",SGa:"showAttach",UGa:"emci",VGa:bh,TGa:"edbe",jHa:"ftd",YGa:"esUsersOnly",fHa:"faceRecoPromo",xHa:"formsEnabled",RHa:"horizNav",YIa:"mineOnly",ZIa:kk,$Ia:"minew",jJa:vk,mJa:"navHidden",nJa:"newDriveView",oJa:"newHorizNav",pJa:"newPhotoGridView",qJa:"npuv",zJa:"odv",waa:zm,PKa:"swue",aLa:wn,bLa:"shapeSuggestions",dLa:"showroomNav",eLa:"sodw",iLa:On,TLa:"std",zMa:Np,ZMa:jq};var zR=function(){pR.call(this,Ni)};B(zR,pR);q=zR.prototype;q.po=function(a){this.W.site=a;return this};q.Ne=function(a){this.W.type=a;return this};q.Mza=function(a){"*"==a?delete this.W.license:this.W.license=a;return this};q.xb=function(a){this.W.imgsz=a;return this};q.y5=function(a){this.W.imgcolor=a;return this};q.yO=function(a){this.W.imgtype=a;return this};q.Ew=function(a){this.W.safe=a;return this};q.Ra=function(a){zR.c.Ra.call(this,a);return this};
q.setQuery=function(a){zR.c.setQuery.call(this,a);return this};q.Gb=function(a){zR.c.Gb.call(this,a);return this};q.Fb=function(a){zR.c.Fb.call(this,a);return this};q.Db=function(a,b){zR.c.Db.call(this,a,b);return this};q.Ea=function(a){zR.c.Ea.call(this,a);return this};q.Mb=function(a){zR.c.Mb.call(this,a);return this};var AR=function(){pR.call(this,vl)};B(AR,pR);q=AR.prototype;q.Ne=function(a){this.W.type=a;return this};q.Ra=function(a){AR.c.Ra.call(this,a);return this};q.setQuery=function(a){AR.c.setQuery.call(this,a);return this};q.Gb=function(a){AR.c.Gb.call(this,a);return this};q.Fb=function(a){AR.c.Fb.call(this,a);return this};q.Db=function(a,b){AR.c.Db.call(this,a,b);return this};q.Ea=function(a){AR.c.Ea.call(this,a);return this};q.Mb=function(a){AR.c.Mb.call(this,a);return this};var BR=function(){pR.call(this,zl)};B(BR,pR);var CR={s$:"banner",vFa:"bannergallery",FFa:pf,hHa:qh,EHa:"gmail_themes",nHa:"flat",P$:Nh,QHa:Bi,daa:ck,cJa:"moment",yJa:"ofuser",SLa:"streamid",ZLa:"tpp",sMa:Fp,JMa:Yp,KMa:Zp,aNa:Rj,fNa:"ytbanner"};q=BR.prototype;q.HO=function(a){this.W.mode=a;return this};q.Ne=function(a){this.W.type=a;return this};q.Z6=function(a){this.W.upload=a?sp:null;return this};q.lBa=function(a){this.W.uploadpos=a;return this};q.Ra=function(a){BR.c.Ra.call(this,a);return this};
q.setQuery=function(a){BR.c.setQuery.call(this,a);return this};q.Gb=function(a){BR.c.Gb.call(this,a);return this};q.Fb=function(a){BR.c.Fb.call(this,a);return this};q.Db=function(a,b){BR.c.Db.call(this,a,b);return this};q.Ea=function(a){BR.c.Ea.call(this,a);return this};q.Mb=function(a){BR.c.Mb.call(this,a);return this};var DR={DoclistBlob:rh,doc:Lg,drawing:"drawing",folder:"folder",kix:Lg,pres:vm,spread:"spreadsheet"};var ER=function(a){switch(a){case Hg:case "DoclistBlob":case "doc":case "drawing":case "drive":case Ug:case "form":case "freebird":case "kix":case "pres":case "punch":case "ritz":case "spread":return!0;default:return!1}};var FR=function(){pR.call(this,Wp)};B(FR,pR);q=FR.prototype;q.po=function(a){this.W.site=a;return this};q.Ew=function(a){this.W.safe=a;return this};q.Ra=function(a){FR.c.Ra.call(this,a);return this};q.setQuery=function(a){FR.c.setQuery.call(this,a);return this};q.Gb=function(a){FR.c.Gb.call(this,a);return this};q.Fb=function(a){FR.c.Fb.call(this,a);return this};q.Db=function(a,b){FR.c.Db.call(this,a,b);return this};q.Ea=function(a){FR.c.Ea.call(this,a);return this};
q.Mb=function(a){FR.c.Mb.call(this,a);return this};var GR=function(){pR.call(this,Xj)};B(GR,pR);q=GR.prototype;q.HO=function(a){this.W.mode=a;return this};q.Bya=function(a,b){this.W.center=[a,b];return this};q.setZoom=function(a){this.W.zoom=a;return this};q.Ra=function(a){GR.c.Ra.call(this,a);return this};q.setQuery=function(a){GR.c.setQuery.call(this,a);return this};q.Gb=function(a){GR.c.Gb.call(this,a);return this};q.Fb=function(a){GR.c.Fb.call(this,a);return this};q.Db=function(a,b){GR.c.Db.call(this,a,b);return this};
q.Ea=function(a){GR.c.Ea.call(this,a);return this};q.Mb=function(a){GR.c.Mb.call(this,a);return this};var HR=function(){pR.call(this,Mp)};B(HR,pR);q=HR.prototype;q.po=function(a){this.W.site=a;return this};q.Ne=function(a){this.W.type=a;return this};q.Ra=function(a){HR.c.Ra.call(this,a);return this};q.setQuery=function(a){HR.c.setQuery.call(this,a);return this};q.Gb=function(a){HR.c.Gb.call(this,a);return this};q.Fb=function(a){HR.c.Fb.call(this,a);return this};q.Db=function(a,b){HR.c.Db.call(this,a,b);return this};q.Ea=function(a){HR.c.Ea.call(this,a);return this};
q.Mb=function(a){HR.c.Mb.call(this,a);return this};var IR=function(){pR.call(this,gq)};B(IR,pR);q=IR.prototype;q.po=function(a){this.W.site=a;return this};q.Qya=function(a){this.W.cse=a;return this};q.AAa=function(a){this.W.cseLabel=a;return this};q.Bza=function(a){this.W.inUrl=a;return this};q.Ew=function(a){this.W.safe=a;return this};q.Ra=function(a){IR.c.Ra.call(this,a);return this};q.setQuery=function(a){IR.c.setQuery.call(this,a);return this};q.Gb=function(a){IR.c.Gb.call(this,a);return this};q.Fb=function(a){IR.c.Fb.call(this,a);return this};
q.Db=function(a,b){IR.c.Db.call(this,a,b);return this};q.Ea=function(a){IR.c.Ea.call(this,a);return this};q.Mb=function(a){IR.c.Mb.call(this,a);return this};var JR=function(a){this.Sd=v(a)?new pR(a):a;this.Tb=[];this.W={}};q=JR.prototype;q.Xda=function(a){switch(a){case Ni:return new zR;case Xj:return new GR;case zl:return new BR;case Mp:return new HR;case Wp:return new FR;case gq:return new IR}return new pR(a)};q.Uo=function(a){this.Tb.push(v(a)?this.Xda(a):a);return this};q.So=function(a){this.Tb.push((new pR(null)).Ra(a));return this};q.Vo=function(a){this.Tb.push(a);return this};
q.Lz=function(){return"("+as(this.Tb,function(a){return a.toString()}).join(",")+")"};q.Rja=function(){var a=Ks(this.W,function(a){return null!==a});return(a=Us(a)?null:a)?lv(Ls(a,function(a){return a.toString()})):""};q.toString=function(){if(this.Sd){var a=["{root:",this.Sd.toString(),",items:",this.Lz()],b=this.Rja();b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return this.Lz()};
q.wo=function(){var a=as(this.Tb,function(a){return a instanceof JR?a.wo():a.Vh()});return this.Sd?{root:this.Sd.Vh(),items:a,options:this.getOptions()}:a};q.Eu=function(a){for(var b=this.Tb,c=0;c<b.length;c++){var e=b[c];if(e instanceof JR&&e.Eu(a)||e instanceof pR&&e.getId()==a)return!0}return!1};q.dA=function(a,b){b=b||[];for(var c=this.Tb,e=0;e<c.length;e++){var f=c[e];f instanceof JR?f.dA(a,b):f.getId()==a&&b.push(f)}return b};q.getOptions=function(){return Xs(this.W)};
q.Jya=function(a){this.W.collapsible=a;return this};var KR=function(a,b){pR.call(this,hq);a&&(this.W.type=a);b&&(this.W.query=b)};B(KR,pR);q=KR.prototype;q.setQuery=function(){throw Error("Query cannot be set for web camera views.");};q.Ra=function(a){KR.c.Ra.call(this,a);return this};q.Gb=function(a){KR.c.Gb.call(this,a);return this};q.Fb=function(a){KR.c.Fb.call(this,a);return this};q.Db=function(a,b){KR.c.Db.call(this,a,b);return this};q.Ea=function(a){KR.c.Ea.call(this,a);return this};q.Mb=function(a){KR.c.Mb.call(this,a);return this};w("picker.api.Action",tR,void 0);w("picker.api.Action.CANCEL",qf,void 0);w("picker.api.Action.PICKED",Bl,void 0);w("picker.api.Audience",{EJa:ll,yIa:"limited",mFa:le,cHa:nh,zGa:Ng,dKa:Dm},void 0);w("picker.api.Audience.PUBLIC",Dm,void 0);w("picker.api.Audience.DOMAIN_PUBLIC",Ng,void 0);w("picker.api.Audience.EXTENDED_CIRCLES",nh,void 0);w("picker.api.Audience.ALL_PERSONAL_CIRCLES",le,void 0);w("picker.api.Audience.LIMITED","limited",void 0);w("picker.api.Audience.OWNER_ONLY",ll,void 0);
w("picker.api.Document",{rFa:Ze,wFa:"blobId",LFa:"children",$Fa:hg,cGa:"copyable",iGa:"coverPhotoId",lGa:ng,rGa:Ag,CGa:Pg,OGa:"driveSuccess",IGa:"driveError",EMAIL:Zg,QGa:ah,UHa:"iconUrl",VHa:"id",hIa:Xi,iIa:"isNew",jIa:"isRoot",kIa:Yi,lIa:xj,qIa:Ej,sIa:Fj,uIa:Gj,wIa:Hj,HIa:Sj,MIa:Zj,RIa:bk,XIa:ik,kaa:"name",uJa:Hk,wJa:"numTagged",xJa:"numUntagged",BJa:el,DJa:"otherParents",HJa:"parentId",gF:tl,VJa:"placeId",jKa:"readOnly",uKa:"rpt",wKa:"rptn",BKa:"rotation",CKa:"rotationDegree",RKa:"serviceId",wLa:"sizeBytes",
GLa:Ho,HLa:Io,$La:Yo,aMa:"teamDriveName",dMa:ep,TYPE:tp,pMa:"undoable",tMa:"uploadId",uMa:"uploadMetadata",xMa:"uploadState",URL:Mp,VERSION:Tp,IR:dq},void 0);w("picker.api.Document.ADDRESS_LINES","addressLines",void 0);w("picker.api.Document.AUDIENCE",Ze,void 0);w("picker.api.Document.DESCRIPTION",Ag,void 0);w("picker.api.Document.DURATION","duration",void 0);w("picker.api.Document.EMBEDDABLE_URL",ah,void 0);w("picker.api.Document.ICON_URL","iconUrl",void 0);w("picker.api.Document.ID","id",void 0);
w("picker.api.Document.IS_NEW","isNew",void 0);w("picker.api.Document.LAST_EDITED_UTC",Ej,void 0);w("picker.api.Document.LATITUDE",Hj,void 0);w("picker.api.Document.LONGITUDE",Sj,void 0);w("picker.api.Document.MIME_TYPE",ik,void 0);w("picker.api.Document.NAME","name",void 0);w("picker.api.Document.NUM_CHILDREN",Hk,void 0);w("picker.api.Document.PARENT_ID","parentId",void 0);w("picker.api.Document.PHONE_NUMBERS","phoneNumbers",void 0);w("picker.api.Document.SERVICE_ID","serviceId",void 0);
w("picker.api.Document.THUMBNAILS",ep,void 0);w("picker.api.Document.TYPE",tp,void 0);w("picker.api.Document.URL",Mp,void 0);w("picker.api.DocsUploadView",wR,void 0);wR.prototype.setIncludeFolders=wR.prototype.zO;pR.prototype.setParent=wR.prototype.Ea;w(km,xR,void 0);xR.prototype.setIncludeFolders=xR.prototype.zO;xR.prototype.setSelectFolderEnabled=xR.prototype.BAa;xR.prototype.setMode=xR.prototype.HO;pR.prototype.setParent=xR.prototype.Ea;xR.prototype.setOwnedByMe=xR.prototype.mAa;
xR.prototype.setStarred=xR.prototype.XAa;xR.prototype.setDocTypesDropDownEnabled=xR.prototype.Zya;xR.prototype.setEnableTeamDrives=xR.prototype.cza;w("picker.api.DocsViewMode",{Q$:ti,$$:Kj},void 0);w("picker.api.DocsViewMode.GRID",ti,void 0);w("picker.api.DocsViewMode.LIST",Kj,void 0);w("picker.api.Feature",yR,void 0);w("picker.api.Feature.MULTISELECT_ENABLED",vk,void 0);w("picker.api.Feature.NAV_HIDDEN","navHidden",void 0);w("picker.api.Feature.MINE_ONLY","mineOnly",void 0);
w("picker.api.Feature.SIMPLE_UPLOAD_ENABLED",On,void 0);w("picker.api.Feature.SUPPORT_TEAM_DRIVES","std",void 0);w("picker.api.ImageSearchView",zR,void 0);w("picker.api.ImageSearchView.License",{NONE:"*",yKa:"r",TFa:"cr",zKa:"rwm",UFa:"crwm"},void 0);w("picker.api.ImageSearchView.License.COMMERCIAL_REUSE","cr",void 0);w("picker.api.ImageSearchView.License.COMMERCIAL_REUSE_WITH_MODIFICATION","crwm",void 0);w("picker.api.ImageSearchView.License.NONE","*",void 0);
w("picker.api.ImageSearchView.License.REUSE","r",void 0);w("picker.api.ImageSearchView.License.REUSE_WITH_MODIFICATION","rwm",void 0);w("picker.api.ImageSearchView.Size",{xLa:"qsvga",zLa:"vga",yLa:"svga",CLa:"xga",ALa:"wxga",BLa:"wxga2",qLa:"2mp",sLa:"4mp",tLa:"6mp",vLa:"8mp",lLa:"10mp",mLa:"12mp",oLa:"15mp",pLa:"20mp",rLa:"40mp",uLa:"70mp",nLa:"140mp"},void 0);w("picker.api.ImageSearchView.Size.SIZE_10MP","10mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_12MP","12mp",void 0);
w("picker.api.ImageSearchView.Size.SIZE_140MP","140mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_15MP","15mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_20MP","20mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_2MP","2mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_40MP","40mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_4MP","4mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_6MP","6mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_70MP","70mp",void 0);
w("picker.api.ImageSearchView.Size.SIZE_8MP","8mp",void 0);w("picker.api.ImageSearchView.Size.SIZE_QSVGA","qsvga",void 0);w("picker.api.ImageSearchView.Size.SIZE_SVGA","svga",void 0);w("picker.api.ImageSearchView.Size.SIZE_VGA","vga",void 0);w("picker.api.ImageSearchView.Size.SIZE_WXGA","wxga",void 0);w("picker.api.ImageSearchView.Size.SIZE_WXGA2","wxga2",void 0);w("picker.api.ImageSearchView.Size.SIZE_XGA","xga",void 0);zR.prototype.setLicense=zR.prototype.Mza;zR.prototype.setSite=zR.prototype.po;
zR.prototype.setSize=zR.prototype.xb;zR.prototype.setSafeSearch=zR.prototype.Ew;w("picker.api.MapsView",GR,void 0);GR.prototype.setCenter=GR.prototype.Bya;GR.prototype.setZoom=GR.prototype.setZoom;w("picker.api.PhotoAlbumsView",AR,void 0);w("picker.api.PhotosView",BR,void 0);w(om,CR,void 0);w("picker.api.PhotosView.Type.FEATURED",qh,void 0);w("picker.api.PhotosView.Type.GETTY",Nh,void 0);w("picker.api.PhotosView.Type.UPLOADED",Fp,void 0);pR.prototype.setParent=BR.prototype.Ea;
BR.prototype.setType=BR.prototype.Ne;w("picker.api.ResourceId.generate",function(a){return a?[a.mimeType==se?"pdf":DR[a.serviceId]||rh,":",a.id].join(""):null},void 0);w("picker.api.Response",{fFa:k,dHa:"extraUserInputs",F$:Hg,GJa:"parents",MMa:"view",RMa:bq},void 0);w("picker.api.Response.ACTION",k,void 0);w("picker.api.Response.DOCUMENTS",Hg,void 0);w("picker.api.Response.PARENTS","parents",void 0);w("picker.api.Response.VIEW",bq,void 0);
w("picker.api.ServiceId",{zFa:"books",t$:nf,x$:fg,JHa:"gready",jGa:"cportal",nGa:og,E$:Hg,AGa:ul,DGa:"dragonflyphotos",GGa:"drive",MGa:Ug,gHa:"feag",N$:Fh,aHa:"et",CHa:"geodiscussion",aaa:Xj,KIa:"mapspro",QIa:"media",IJa:"party",saa:Al,UJa:"places",sKa:"relatedcontent",OLa:"static_themes",RLa:"stories",cba:pq,UMa:gq,TMa:"vr-assets",gF:tl,LKa:"search-api",URL:Mp,AR:"recent",hGa:"cosmo",vGa:"DoclistBlob",lR:"doc",EGa:"drawing",O$:"form",yHa:"freebird",mIa:"kix",vaa:"pres",eKa:"punch",AKa:"ritz",JLa:"spread"},
void 0);w("picker.api.ServiceId.DOCS",Hg,void 0);w("picker.api.ServiceId.MAPS",Xj,void 0);w("picker.api.ServiceId.PHOTOS",Al,void 0);w("picker.api.ServiceId.SEARCH_API","search-api",void 0);w("picker.api.ServiceId.URL",Mp,void 0);w("picker.api.ServiceId.YOUTUBE",pq,void 0);w("picker.api.Thumbnail",{OHa:xi,URL:Mp,$Ma:kq,TYPE:tp},void 0);w("picker.api.Thumbnail.HEIGHT",xi,void 0);w("picker.api.Thumbnail.WIDTH",kq,void 0);w("picker.api.Thumbnail.URL",Mp,void 0);
w("picker.api.Type",{iFa:je,nFa:"android-app",t$:nf,MFa:"chrome-app",fR:zf,XFa:"contact",lR:Lg,ZGa:ih,I$:"et",eHa:"faces",iHa:rh,K$:"folder",vHa:"font",FIa:"location",JIa:"map",daa:ck,MJa:"person",NJa:ul,URL:Mp,HMa:Vp},void 0);w("picker.api.Type.ALBUM",je,void 0);w("picker.api.Type.DOCUMENT",Lg,void 0);w("picker.api.Type.LOCATION","location",void 0);w("picker.api.Type.PHOTO",ul,void 0);w("picker.api.Type.URL",Mp,void 0);w("picker.api.Type.VIDEO",Vp,void 0);w("picker.api.VideoSearchView",FR,void 0);
w("picker.api.VideoSearchView.YOUTUBE",sq,void 0);FR.prototype.setSite=FR.prototype.po;FR.prototype.setSafeSearch=FR.prototype.Ew;w("picker.api.View",pR,void 0);pR.prototype.getId=pR.prototype.getId;pR.prototype.setLabel=pR.prototype.Ra;pR.prototype.setMimeTypes=pR.prototype.Gb;pR.prototype.setQuery=pR.prototype.setQuery;pR.prototype.getQuery=pR.prototype.getQuery;pR.prototype.getLabel=pR.prototype.wg;w("picker.api.ViewGroup",JR,void 0);JR.prototype.addLabel=JR.prototype.So;JR.prototype.addView=JR.prototype.Uo;
JR.prototype.addViewGroup=JR.prototype.Vo;JR.prototype.setCollapsible=JR.prototype.Jya;w("picker.api.ViewId.DOCS",ke,void 0);w("picker.api.ViewId.DOCS_IMAGES",Ig,void 0);w("picker.api.ViewId.DOCS_IMAGES_AND_VIDEOS",Jg,void 0);w("picker.api.ViewId.DOCS_VIDEOS",Kg,void 0);w("picker.api.ViewId.DOCUMENTS",Mg,void 0);w("picker.api.ViewId.DRAWINGS",Tg,void 0);w("picker.api.ViewId.FOLDERS",Ch,void 0);w("picker.api.ViewId.FORMS",Hh,void 0);w("picker.api.ViewId.IMAGE_SEARCH",Ni,void 0);
w("picker.api.ViewId.MAPS",Xj,void 0);w("picker.api.ViewId.PDFS",sl,void 0);w("picker.api.ViewId.PHOTO_ALBUMS",vl,void 0);w("picker.api.ViewId.PHOTOS",zl,void 0);w("picker.api.ViewId.PHOTO_UPLOAD",yl,void 0);w("picker.api.ViewId.PRESENTATIONS",wm,void 0);w("picker.api.ViewId.RECENTLY_PICKED",Jm,void 0);w("picker.api.ViewId.SPREADSHEETS",Lo,void 0);w("picker.api.ViewId.VIDEO_SEARCH",Wp,void 0);w("picker.api.ViewId.WEBCAM",hq,void 0);w("picker.api.ViewId.YOUTUBE",pq,void 0);
w("picker.api.ViewToken",{PMa:0,Y$:1,QMa:2},void 0);w("picker.api.ViewToken.LABEL",1,void 0);w("picker.api.ViewToken.VIEW_ID",0,void 0);w("picker.api.ViewToken.VIEW_OPTIONS",2,void 0);w("picker.api.WebCamView",KR,void 0);w("picker.api.WebCamViewType.STANDARD",Mo,void 0);var LR=function(a,b,c){wC.call(this,a,b,c)};B(LR,wC);var MR=Jw(ow("//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick")),NR=Jw(ow("//apis.google.com/js/rpc.js")),PR=function(a,b){if(!OR(b)){b=b||N(document);var c=b.createElement(ed);Rx(c,a);c.type=ap;b.K().body.appendChild(c)}},OR=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},QR=null,RR=function(a,b){var c=b&&b.getWindow()||window;if(OR(b))a();else if(QR)QR.push(a);else var e=QR=[a],f=c.setInterval(function(){if(OR(b)){c.clearInterval(f);
for(var a=0;a<e.length;a++)e[a]();QR=null}},100)};var SR=function(a,b){J.call(this);this.D=a;a=Dy(this.D)?this.D:this.D?this.D.body:null;this.Xqa=!!a&&fA(a);this.Z0=I(this.D,yt?"DOMMouseScroll":sk,this,b)};B(SR,J);
SR.prototype.handleEvent=function(a){var b=0,c=0,e=a.bd;e.type==sk?(a=TR(-e.wheelDelta,40),u(e.wheelDeltaX)?(b=TR(-e.wheelDeltaX,40),c=TR(-e.wheelDeltaY,40)):c=a):(a=e.detail,100<a?a=3:-100>a&&(a=-3),u(e.axis)&&e.axis===e.HORIZONTAL_AXIS?b=a:c=a);Hq(this.w1)&&(b=Math.min(Math.max(b,-this.w1),this.w1));Hq(this.x1)&&(c=Math.min(Math.max(c,-this.x1),this.x1));this.Xqa&&(b=-b);b=new UR(a,e,b,c);this.dispatchEvent(b)};var TR=function(a,b){return zt&&(Bt||Dt)&&0!=a%b?a:a/b};
SR.prototype.o=function(){SR.c.o.call(this);Wu(this.Z0);this.Z0=null};var UR=function(a,b,c,e){Cu.call(this,b);this.type=sk;this.detail=a;this.deltaX=c;this.deltaY=e};B(UR,Cu);var VR=function(a){for(;a;){if(1==a.nodeType){var b=Hz(a,"overflowY");if(b==af||b==bn)return a}a=a.parentNode}return null};var XR=function(a,b){var c=new SR(a);b.Y(c);b.listen(c,sk,y(WR,void 0,a)).listen(a,bn,y(WR,void 0,a))},WR=function(a,b){var c=VR(b.target);if(!c||!Ey(a,c)||c.scrollHeight==c.clientHeight||0<b.deltaY&&1>=Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))||0>b.deltaY&&0==c.scrollTop)b.preventDefault(),b.stopPropagation()};var YR,ZR=function(a,b){var c=hy(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);return new Wx(0<a?a:0,0<c?c:0)},$R=function(a,b,c){if(b){b=Math.max(320,Math.min(1051,b));c||(c=hy(a),c=.85*c.height);var e=Math.max(320,Math.min(650,c))}else c=hy(a),b=.618*c.width,e=b<c.height?Math.round(Math.max(320,Math.min(650,.85*b))):Math.round(Math.max(320,Math.min(650,.85*c.height))),b=Math.round(e/.618);c=hy(a);b=Math.min(b,Math.max(c.width,
320));e=Math.min(e,Math.max(c.height,320));return new Wx(b,e)};var aS=function(a,b,c,e,f,g){wC.call(this,g?g+" "+this.re:this.re,!0,c);Zv(a,Cm);this.Qe=Cr();this.Vg=Cr();this.ro(a);this.lva=e;this.kva=f;u(void 0)?c=void 0:u(e)||u(f)?c=!0:(c=bz(a).mb(Ei),YR||(YR=new LG(["DocVerse","fusiontables","geo","geowiki","gm","gmail-gadget","gws","hotpot","jointly",wm,"pwa",Rn,"templates","trix","trix-copy-sheet","webstore"])),c=!YR.contains(c));this.Kca=c;b&&(bz(a).mb(Ei),b=this.j(),c=this.OQ(),PR(c?NR:MR,b));this.cO(a);this.oO(!1);this.Ph(null)};B(aS,LR);q=aS.prototype;
q.re="picker modal-dialog";q.ya="";q.ja=null;q.rn=!1;q.lv=!1;q.Mc=Jq;q.B=function(){aS.c.B.call(this);XR(this.Rk(),this.A())};q.render=function(a){aS.c.render.call(this,a);this.wea();U(this.b(),"picker-dialog");this.ja.src=this.ya;this.xj(y(function(a){a.setAuthToken(this.Qe,this.Vg)},this));(a=bz(this.ya).mb(ip))&&this.fb(a)};q.wea=function(){this.ja=this.Z.g(Fc,{id:this.Qe,name:this.Qe,"class":"picker-frame",onload:y(this.AJ,this),frameBorder:"0"});Qx(this.ja,this.nu());this.J().appendChild(this.ja)};
q.nu=function(){return E&&Qt("7")&&Yq(this.ya,Gi)?Jw(ow(Ii)):E?Jw(ow(bj)):Jw(ow(Zd))};q.AJ=function(){this.ja.src!=Ew(this.nu())&&(this.rn=!0,this.A().ta(this.j().getWindow(),zj,this.jq),My(this.ja,!0),this.N()&&this.focus())};q.jq=function(a){27==a.keyCode&&(this.C(!1),this.Mc({action:qf}),a.stopPropagation(),a.preventDefault())};q.xj=function(a){var b=this.j();RR(function(){a(b.getWindow().gadgets.rpc)},b)};
q.ro=function(a){a=(new Ty(a)).T("rpctoken",this.Vg).T("rpcService",this.Qe);a.Br(Gi);this.ya=a.toString();this.ja&&(this.ja.src=this.ya)};q.rr=function(a){this.kh=a;this.lv&&this.uw()};q.ko=function(a){this.Mc=a;this.xj(y(function(a){a.register(this.Qe,y(this.DJ,this))},this))};q.DJ=function(a){var b=a.action;b==Qj&&(this.lv=!0,this.ld(new sR(this.N())),this.uw(),this.tO(!1));b!=Bl&&b!=qf||this.C(!1);this.Mc(a)};q.nq=function(a){return bz(this.ya).mb(a)==sp};
q.uw=function(){this.kh&&this.ld(new jR(this.kh,window.location.protocol+"//"+window.location.host))};q.setRelayUrl=function(a){this.xj(y(function(b){b.setRelayUrl(this.Qe,a)},this))};q.cO=function(a){var b=null,c=a.indexOf("/picker?");-1<c?b=a.substring(0,c+8-1):Zq(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+Xa)};q.ld=function(a){this.xj(y(function(b){b.call(this.Qe,Cl,null,a)},this))};
q.tN=function(){var a=this.j().K();a=ky(a)||window;if(this.nq(wn)){var b=oA(this.Dj());a=ZR(a,b)}else a=$R(a,this.lva,this.kva);$z(this.J(),a);this.ha()};q.ha=function(){if(this.nq(wn)){var a=aA(this.b()),b=hy(this.j().getWindow());a=Math.floor(b.width/2-a.width/2);if(b=oA(this.Dj())){var c=0+(b.left?b.left:0);c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=0<a?a:0;b=this.j().Df().y;Kz(this.b(),a,b)}else aS.c.ha.call(this)};
q.C=function(a){if(a!=this.N()&&this.Kca){var b=this.j().getWindow();a?(this.tN(),this.A().listen(b,Om,this.tN),this.rn||this.A().listen(b,zj,this.jq)):(this.A().ta(b,Om,this.tN),this.rn||this.A().ta(b,zj,this.jq))}aS.c.C.call(this,a);this.ld(new sR(a))};q.focus=function(){aS.c.focus.call(this);if(this.ja&&this.rn)try{this.ja.focus()}catch(a){}};q.OQ=function(){return bz(this.ya).mb("grugl")==sp};var bS=function(a){this.zsa=a.metadata;this.md=a.serviceId;this.ya=a.url};bS.prototype.getMetadata=function(){return this.zsa};bS.prototype.getUrl=function(){return this.ya};var cS=function(a){this.bp=a||"https://docs.google.com/picker";this.VC()};q=cS.prototype;q.Tf=null;q.L=null;q.So=function(a){this.Tf.So(a);return this};q.Uo=function(a){this.Tf.Uo(a);return this};q.Vo=function(a){this.Tf.Vo(a);return this};q.j=function(){return this.L};q.ui=function(){return this.Tf.Lz()};q.Fja=function(){return this.Tf.wo()};q.dA=function(a){return this.Tf.dA(a)};q.Eu=function(a){return this.Tf.Eu(a)};q.uA=function(){return this.fb("")};q.VC=function(){this.Tf=new JR;return this};
q.rr=function(a){this.kh=a;return this};q.ko=function(a){this.Mc=a;return this};q.H5=function(a){this.L=new Yx(a);return this};var dS=function(a){cS.call(this,a)};B(dS,cS);var eS=function(a){V.call(this,a)};B(eS,V);eS.prototype.g=function(){var a=this.j(),b=a.g(d);this.Na(b);var c=a.g(d,"picker-min-arrow-inner"),e=a.g(d,"picker-min-arrow-border");a.appendChild(b,c);a.appendChild(b,e)};eS.prototype.B9=function(a,b){var c=this.b();Q(c,Ij,"");Q(c,Pm,"");dC(a,Ql);dC(a,Pl);b=FB(a,b);b&1?(c.className="picker-min-arrow-down",U(a,Pl)):(c.className="picker-min-arrow-up",U(a,Ql))};
eS.prototype.update=function(a,b,c){this.V&&(c||(c=new Bz(0,0,0,0)),this.B9(a,b),a=this.b(),b&4?Q(a,Pm,-c.right+n):Q(a,Ij,-c.left+n))};eS.prototype.AT=function(a,b,c){if(this.V){this.B9(b,c);c=this.b();var e=Wz(a,b),f=iA(c).width;e=e.x+iA(a).width/2-f/2;e=Math.max(0,e);var g=iA(b).width;g-f&&(f=g-f,e>f&&(e=f,b.getBoundingClientRect().left+f/2>a.getBoundingClientRect().left&&(e=Math.min(e,f/2))));Q(c,Ij,e+n)}};var fS=function(a,b){GD.call(this,a);My(a,!0);MB(a,Bg);this.L=b||N();this.zq=!1;this.Kc=this.L.createElement(Jo);My(this.Kc,!0);this.Kc.style.position=be;T(this.Kc,yi,!0);this.sm=!1};B(fS,GD);q=fS.prototype;q.vh=null;q.j=function(){return this.L};q.rBa=function(){this.sm=!0;this.focus(this.Kc);M(this.Wv,0,this)};q.Wv=function(){this.sm=!1};q.B2=function(){vy(this.Kc,this.b());this.vh=new lC(this.j().K());this.A().listen(this.vh,Ah,this.Dta).listen(this.b(),zj,this.zM)};
q.n2=function(){G(this.vh);xy(this.Kc)};q.zM=function(a){9==a.keyCode&&a.shiftKey&&a.target==this.b()&&this.rBa()};q.Dta=function(a){this.sm?this.Wv():a.target==this.Kc&&M(y(this.focus,this,this.b()),0)};q.focus=function(a){try{a&&a.focus()}catch(b){}};
q.jS=function(){this.ha();if(this.zq){var a=this.getPosition();if(a instanceof TC&&Nq(this.b().getBoundingClientRect)){var b=this.Sn,c=this.j().qu().height,e=this.j().qu().width,f=null,g=a.Dk,h=this.VEa?this.VEa.getBoundingClientRect():void 0,l=h?h.top:0;c=h?Math.min(h.bottom,c):c;e=h?Math.min(h.right,e):e;h=h?h.left:0;var p=a.element.getBoundingClientRect(),r=this.b().getBoundingClientRect();if(!this.l0(g)&&r.top<l||this.l0(g)&&r.bottom>c&&p.top>l+(r.bottom-r.top))g^=1,f=new TC(a.element,g),b^=1;
if(!this.m0(g)&&r.left<h||this.m0(g)&&r.right>e&&p.right>h+(r.right-r.left))f=new TC(a.element,g^4),b^=4;f&&(this.setPosition(f),this.PO(b),this.ha())}}};q.l0=function(a){return!!(a&1)};q.m0=function(a){return!(a&4)};q.ha=function(){fS.c.ha.call(this);var a=this.getPosition();a&&a.ha(this.Kc,this.Sn,this.iu())};var gS=function(a,b,c,e,f,g){var h=c||N(),l=h.g(d,"picker-iframe picker-min goog-menu"),p=(new Ty(a)).mb("minew")==sp;p&&U(l,Rl);U(l,jm);h.appendChild(h.K().body,l);fS.call(this,l,h);this.zq=p;this.N()?this.DP():this.sA();this.Z=h;this.Qe=Cr();this.Vg=Cr();this.ro(a);this.nva=e||248;this.mva=f||p?311:300;this.ft=!!g;b&&(bz(a).mb(Ei),b=this.j(),PR(MR,b));this.cO(a);this.W5(!1);this.ow(!1);this.jj=new eS(c);this.Y(this.jj);this.jj.render(l)};B(gS,fS);q=gS.prototype;q.ya="";q.ja=null;q.pT=!1;q.rn=!1;
q.lv=!1;q.Mc=Jq;q.pj=function(){if(!this.ja){this.A().listen(this.j().getWindow(),zj,this.jq);this.ja=this.Z.g(Fc,{id:this.Qe,name:this.Qe,"class":"picker-frame",onload:y(this.AJ,this),frameBorder:"0"});Qx(this.ja,this.nu());this.b().appendChild(this.ja);MB(this.ja,Bg);var a=bz(this.ya).mb(ip);a&&TB(this.ja,a);U(this.b(),"picker-min-popup");$z(this.ja,this.nva,this.mva);this.ja.src=this.ya;this.xj(y(function(a){a.setAuthToken(this.Qe,this.Vg)},this))}};
q.ha=function(){if(this.ja){gS.c.ha.call(this);var a=this.getPosition(),b=this.Sn;a instanceof TC?this.jj.AT(a.element,this.b(),b):this.jj.update(this.b(),b,this.iu());FB(this.b(),b)&1?this.ja.className="picker-min-frame-down":this.ja.className="picker-min-frame-up"}};q.nu=function(){return E&&Qt("7")&&Yq(this.ya,Gi)?Jw(ow(Ii)):E?Jw(ow(bj)):Jw(ow(Zd))};
q.AJ=function(){this.ja.src!=Ew(this.nu())&&(this.rn=!0,this.A().ta(this.j().getWindow(),zj,this.jq),My(this.ja,!0),this.N()&&M(y(this.focus,this,this.ja),0))};q.jq=function(a){27==a.keyCode&&(this.ky(),a.stopPropagation(),a.preventDefault())};q.xj=function(a){var b=this.j();RR(function(){a(b.getWindow().gadgets.rpc)},b)};q.ro=function(a){a=(new Ty(a)).T("rpctoken",this.Vg).T("rpcService",this.Qe);a.Br(Gi);this.ya=a.toString();this.ja&&(this.ja.src=this.ya)};q.rr=function(a){this.kh=a;this.lv&&this.uw()};
q.ko=function(a){this.Mc=a;this.xj(y(function(a){a.register(this.Qe,y(this.DJ,this))},this))};q.DJ=function(a){switch(a.action){case cq:case $p:this.ha();return;case ch:a=a.extraUserInputs;fC(this.b(),jm,a&&a.ewc);return;case Qj:this.lv=!0;this.ld(new sR(this.N()));this.uw();break;case "blurred":this.b()!=this.j().K().activeElement&&this.N()&&(this.C(!1),this.Mc({action:qf}));return;case Bl:case qf:this.C(!1)}this.Mc(a)};
q.uw=function(){this.kh&&this.ld(new jR(this.kh,window.location.protocol+"//"+window.location.host))};q.setRelayUrl=function(a){this.xj(y(function(b){b.setRelayUrl(this.Qe,a)},this))};q.cO=function(a){var b=null,c=a.indexOf("/picker?");-1<c?b=a.substring(0,c+8-1):Zq(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+Xa)};q.ld=function(a){a.action==Lm?(this.ja&&!this.N()&&(this.b().removeChild(this.ja),this.ja=null),this.pj()):this.xj(y(function(b){b.call(this.Qe,Cl,null,a)},this))};
q.Hc=function(){gS.c.Hc.call(this);this.B2();this.pj();if(!this.ft){var a=this.j().K();this.A().listen(a,nk,this.$Y,!0);if(E){try{var b=a.activeElement}catch(e){}for(;b&&b.nodeName==Fc;){try{var c=Fy(b)}catch(e){break}a=c;b=a.activeElement}this.A().listen(a,nk,this.$Y,!0)}}this.ld(new sR(!0));GB(new Tx(0,0),this.b(),0,this.iu());this.jS();this.rn?this.focus(this.ja):this.focus(this.b())};q.Ng=function(a){gS.c.Ng.call(this,a);this.n2();this.ld(new sR(!1))};
q.$Y=function(a){a=a.target;Ey(this.b(),a)||this.j0(a)||!this.B0(a)||this.uP()||this.ky()};q.ky=function(){this.N()&&(this.C(!1),this.Mc({action:qf}))};q.o=function(){this.pT?(xy(this.b()),gS.c.o.call(this)):M(function(){this.pT=!0;this.o()},0,this)};var Y=function(a){cS.call(this,a);this.ob=new Ty(this.bp);this.KD(Jh);(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.Bw(a);this.Ie=[];this.cca=""};B(Y,dS);q=Y.prototype;q.FL=!0;q.we=!1;q.rs=function(a,b){this.Ie.push([a,b||{}]);return this};q.As=function(){this.getRelayUrl()||this.setRelayUrl(bz(window.location.href).Qh(void 0).vr("").$g("/favicon.ico").toString())};
q.zs=function(){this.As();if(this.ob.mb(kk))throw Error(Pp);var a=new aS(this.qk().toString(),this.FL,this.j(),this.mH,this.iH,this.cca);a.Ni(this.we);a.rr(this.kh);a.ko(this.Mc);return a};q.WF=function(){this.Hp(kk);this.As();var a=new gS(this.qk().toString(),this.FL,this.j(),this.mH,this.iH,this.ft);a.rr(this.kh);a.ko(this.Mc);return a};q.pH=function(a){this.ft=a;return this};q.Gy=function(a){this.ob.removeParameter(a);return this};q.Hp=function(a){this.ob.T(a,sp);return this};q.MI=function(){return this.we};
q.ti=function(){return this.iH};q.ku=function(){return this.ob.mb(Cm)};q.getRelayUrl=function(){return this.ob.mb("relayUrl")};q.bn=function(){return this.ob.mb(gn)};q.Pd=function(){return this.ob.mb(ip)};q.Ag=function(){return this.mH};q.NK=function(a){return this.ob.mb(a)==sp};q.Tya=function(a){this.ob.T("developerKey",a);return this};q.YN=function(a){this.ob.T($e,a);return this};q.C5=function(a){this.ob.T("cropMode",a);return this};q.Ni=function(a){this.we=a;return this};
q.FD=function(a){this.ob.T("maxSizeBytes",a);return this};q.j6=function(a){this.ob.T("maxSizeBytesPerItem",a);return this};q.zw=function(a){this.ob.T("maxItems",a);return this};q.k6=function(a){this.ob.T("maxVD",a);return this};q.V5=function(a){this.ob.T("groupId",a);return this};q.xr=function(a){this.ob.T(Ei,a);return this};q.Bw=function(a){a&&this.ob.T("origin",a);return this};q.CD=function(a){a instanceof pR?this.ob.T("view",a.toString()):this.ob.T("view",a);return this};
q.f6=function(a){this.ob.T("learnMore",a);return this};q.Nza=function(a){this.FL=a;return this};q.CO=function(a){this.ob.T("hl",a);return this};q.iAa=function(a){this.ob.T("oauth_token",a);return this};q.KD=function(a){this.ob.T(Cm,a);return this};q.setRelayUrl=function(a){this.ob.T("relayUrl",a);return this};q.LD=function(a){this.ob.T(gn,a);return this};q.D6=function(a){this.ob.T("selectableMimeTypes",a);return this};q.xb=function(a,b){this.mH=a;this.iH=b;return this};
q.PD=function(a){this.ob.T("thumbs",a);return this};q.Fr=function(a){this.ob.T("uploadToAlbumId",a);return this};q.fb=function(a){this.ob.T(ip,a);return this};q.W6=function(){return this};q.ZD=function(a){this.ob.T("srum",a);return this};q.qk=function(){this.Ie.length&&this.ob.T("pp",lv(this.Ie));return this.ob.T("nav",this.ui()).clone()};w("picker.api.Picker",aS,void 0);aS.prototype.isVisible=wC.prototype.N;aS.prototype.setAppId=aS.prototype.rr;aS.prototype.setCallback=aS.prototype.ko;aS.prototype.setRelayUrl=aS.prototype.setRelayUrl;aS.prototype.setVisible=aS.prototype.C;aS.prototype.dispose=aS.prototype.dispose;w("picker.api.PickerBuilder",Y,void 0);Y.prototype.addView=Y.prototype.Uo;Y.prototype.addViewGroup=Y.prototype.Vo;Y.prototype.build=Y.prototype.zs;Y.prototype.disableFeature=Y.prototype.Gy;Y.prototype.enableFeature=Y.prototype.Hp;
Y.prototype.getRelayUrl=Y.prototype.getRelayUrl;Y.prototype.getTitle=Y.prototype.Pd;Y.prototype.hideTitleBar=Y.prototype.uA;Y.prototype.isFeatureEnabled=Y.prototype.NK;Y.prototype.setAppId=Y.prototype.rr;Y.prototype.setAuthUser=Y.prototype.YN;Y.prototype.setCallback=Y.prototype.ko;Y.prototype.setDeveloperKey=Y.prototype.Tya;Y.prototype.setDocument=Y.prototype.H5;Y.prototype.setInitialView=Y.prototype.CD;Y.prototype.setLocale=Y.prototype.CO;Y.prototype.setMaxItems=Y.prototype.zw;
Y.prototype.setOAuthToken=Y.prototype.iAa;Y.prototype.setOrigin=Y.prototype.Bw;Y.prototype.setRelayUrl=Y.prototype.setRelayUrl;Y.prototype.setSelectableMimeTypes=Y.prototype.D6;Y.prototype.setSize=Y.prototype.xb;Y.prototype.setTitle=Y.prototype.fb;Y.prototype.setUploadToAlbumId=Y.prototype.Fr;Y.prototype.toUri=Y.prototype.qk;var hS=function(){pR.call(this,fg)};B(hS,pR);hS.prototype.setQuery=function(a){hS.c.setQuery.call(this,a);return this};hS.prototype.yAa=function(){this.W.scgh=!0;return this};var iS=function(){pR.call(this,tl)};B(iS,pR);q=iS.prototype;q.Ne=function(a){this.W.type=a;return this};q.P5=function(a){this.W.peopleFilter=a?a.sl:void 0;return this};q.fAa=function(a){this.W.noEmailInput=a;return this};q.Ra=function(a){iS.c.Ra.call(this,a);return this};q.setQuery=function(a){iS.c.setQuery.call(this,a);return this};q.Gb=function(a){iS.c.Gb.call(this,a);return this};q.Fb=function(a){iS.c.Fb.call(this,a);return this};q.Db=function(a,b){iS.c.Db.call(this,a,b);return this};
q.Ea=function(a){iS.c.Ea.call(this,a);return this};q.Mb=function(a){iS.c.Mb.call(this,a);return this};var jS=function(a){this.sl=a};jS.prototype.Fba=function(a){this.sl|=a;return this};jS.prototype.hwa=function(a){this.sl&=~a;return this};jS.prototype.xja=function(){return this.sl};jS.prototype.Ooa=function(a){return 1023==a&&this.sl!=a?!1:!!(this.sl&a)};var kS=function(){pR.call(this,yl)};B(kS,pR);q=kS.prototype;q.Ra=function(a){kS.c.Ra.call(this,a);return this};q.setQuery=function(a){kS.c.setQuery.call(this,a);return this};q.Gb=function(a){kS.c.Gb.call(this,a);return this};q.Fb=function(a){kS.c.Fb.call(this,a);return this};q.Db=function(a,b){kS.c.Db.call(this,a,b);return this};q.Ea=function(a){kS.c.Ea.call(this,a);return this};q.Mb=function(a){kS.c.Mb.call(this,a);return this};var lS=function(a){Y.call(this,a)};B(lS,Y);lS.prototype.toString=function(){return this.qk().toString()};w("picker.api.Action.LOADED",Qj,void 0);w("picker.api.Action.UPLOAD_PROGRESS",Cp,void 0);w("picker.api.Action.UPLOAD_SCHEDULED",Dp,void 0);w("picker.api.Action.UPLOAD_STATE_CHANGE",Ep,void 0);w("picker.api.Document.CONTENT_ID",hg,void 0);w("picker.api.Feature.FORMS_ENABLED","formsEnabled",void 0);w("picker.api.Feature.PROFILE_PHOTO",zm,void 0);w("picker.api.Feature.URL_INPUT_VISIBLE",Np,void 0);w("picker.api.Feature.WHITE_STYLE",jq,void 0);w("picker.api.Feature.MINIMAL_MODE",kk,void 0);
w("picker.api.ContactsView",hS,void 0);hS.prototype.setSaveContactsGroupHiddenOption=hS.prototype.yAa;w("picker.api.ImageSearchView.Type",{P$:Nh,FHa:"gis",fMa:"life"},void 0);w("picker.api.ImageSearchView.Type.TIME_LIFE","life",void 0);zR.prototype.setType=zR.prototype.Ne;w("picker.api.PeopleView",iS,void 0);iS.prototype.setType=iS.prototype.Ne;iS.prototype.setNoEmailInput=iS.prototype.fAa;w(km,xR,void 0);xR.prototype.setSortKey=xR.prototype.VAa;xR.prototype.setCreateFolderEnabled=xR.prototype.Mya;
xR.prototype.setMaxCollectionsToPrefetch=xR.prototype.Sza;xR.prototype.setOtherParents=xR.prototype.lAa;xR.prototype.setItems=xR.prototype.Kza;xR.prototype.setMoveButtonLabel=xR.prototype.cAa;xR.prototype.setAddItemEnabled=xR.prototype.gya;xR.prototype.setAddItemLabel=xR.prototype.hya;xR.prototype.setOpenUrlShown=xR.prototype.kAa;xR.prototype.disableReadOnlyItemSelection=xR.prototype.xfa;xR.prototype.disableRestrictedDownloadItemSelection=xR.prototype.yfa;
xR.prototype.setRestrictedDownloadErrorMessage=xR.prototype.xAa;xR.prototype.setChildView=xR.prototype.Fya;xR.prototype.setSelectButtonLabelOnItemSelected=xR.prototype.C6;xR.prototype.setSelectButtonLabelOnViewSelected=xR.prototype.C6;w("picker.api.DocsSortKey",{aIa:1,vIa:2,bJa:3,xaa:5,NLa:6,TITLE:7,uHa:8,Faa:9,AMa:10,gKa:11,K$:12,z$:13,CMa:14,AR:15,pKa:16,oKa:17,nKa:18},void 0);w("picker.api.DocsSortKey.IMPORTANCE",1,void 0);w("picker.api.DocsSortKey.LAST_VIEWED_DATE",2,void 0);
w("picker.api.DocsSortKey.MODIFICATION_DATE",3,void 0);w("picker.api.DocsSortKey.RELEVANCE",5,void 0);w("picker.api.DocsSortKey.STARRED",6,void 0);w("picker.api.DocsSortKey.TITLE",7,void 0);w("picker.api.DocsSortKey.FOLDER_TITLE",8,void 0);w("picker.api.DocsSortKey.SHARE_DATE",9,void 0);w("picker.api.DocsSortKey.USER_MODIFICATION_DATE",10,void 0);w("picker.api.DocsSortKey.QUOTA_BYTES_USED",11,void 0);w("picker.api.PeopleViewType",{ALL:ke,NFa:Af,zHa:"frequent",DHa:Oh,gF:tl,SELECTED:hn},void 0);
w("picker.api.PeopleViewType.ALL",ke,void 0);w("picker.api.PeopleViewType.CIRCLES",Af,void 0);w("picker.api.PeopleViewType.GMAIL",Oh,void 0);w("picker.api.PeopleViewType.PEOPLE",tl,void 0);w("picker.api.PeopleViewType.SELECTED",hn,void 0);w("picker.api.SafeSearch.OFF","off",void 0);w("picker.api.SafeSearch.STRICT",de,void 0);w("picker.api.SafeSearch.MODERATE","moderate",void 0);w("picker.api.PeopleViewFilter",jS,void 0);w("picker.api.PeopleViewFilter.Group",{ALL:1023,NONE:0,GHa:1,sJa:2,WJa:4},void 0);
w("picker.api.PeopleViewFilter.Group.ALL",1023,void 0);w("picker.api.PeopleViewFilter.Group.NONE",0,void 0);w("picker.api.PeopleViewFilter.Group.GOOGLE_PLUS_USERS",1,void 0);w("picker.api.PeopleViewFilter.Group.NON_GOOGLE_PLUS_USERS",2,void 0);w("picker.api.PeopleViewFilter.Group.PLUS_PAGES",4,void 0);jS.prototype.addGroup=jS.prototype.Fba;jS.prototype.removeGroup=jS.prototype.hwa;jS.prototype.getMask=jS.prototype.xja;jS.prototype.hasGroup=jS.prototype.Ooa;
w("picker.api.PhotosView.UploadPosition",{lHa:"first",oIa:"last"},void 0);w("picker.api.PhotosView.UploadPosition.FIRST","first",void 0);w("picker.api.PhotosView.UploadPosition.LAST","last",void 0);BR.prototype.setParent=BR.prototype.Ea;BR.prototype.setType=BR.prototype.Ne;BR.prototype.setUploadEnabled=BR.prototype.Z6;BR.prototype.setUploadPosition=BR.prototype.lBa;w(om,CR,void 0);w("picker.api.PhotosView.Type.FLAT","flat",void 0);w("picker.api.PickerAction",tR,void 0);
w("picker.api.PickerAction.CANCEL",qf,void 0);w("picker.api.PickerAction.LOADED",Qj,void 0);w("picker.api.PickerAction.PICKED",Bl,void 0);w("picker.api.PickerAction.UPLOAD_PROGRESS",Cp,void 0);w("picker.api.PickerAction.UPLOAD_SCHEDULED",Dp,void 0);w("picker.api.PickerAction.UPLOAD_STATE_CHANGE",Ep,void 0);w("picker.api.PickerUriBuilder",lS,void 0);lS.prototype.addLabel=lS.prototype.So;lS.prototype.addView=lS.prototype.Uo;lS.prototype.addViewGroup=lS.prototype.Vo;lS.prototype.disableFeature=lS.prototype.Gy;
lS.prototype.enableFeature=lS.prototype.Hp;lS.prototype.getNav=lS.prototype.ui;lS.prototype.getProtocol=lS.prototype.ku;lS.prototype.getRelayUrl=lS.prototype.getRelayUrl;lS.prototype.getSelectButtonLabel=lS.prototype.bn;lS.prototype.getTitle=lS.prototype.Pd;lS.prototype.hideTitleBar=lS.prototype.uA;lS.prototype.isFeatureEnabled=lS.prototype.NK;lS.prototype.resetNav=lS.prototype.VC;lS.prototype.setHostId=lS.prototype.xr;lS.prototype.setInitialView=lS.prototype.CD;lS.prototype.setProtocol=lS.prototype.KD;
lS.prototype.setRelayUrl=lS.prototype.setRelayUrl;lS.prototype.setSelectButtonLabel=lS.prototype.LD;lS.prototype.setThumbs=lS.prototype.PD;lS.prototype.setTitle=lS.prototype.fb;lS.prototype.setMaxSizeBytes=lS.prototype.FD;lS.prototype.setMaxSizeBytesPerItem=lS.prototype.j6;lS.prototype.setUploadToAlbumId=lS.prototype.Fr;lS.prototype.toString=lS.prototype.toString;lS.prototype.toUri=lS.prototype.qk;
w("picker.api.PostProcessorId",{hFa:"atec",xFa:"blogger",HFa:"caa",IFa:uf,JFa:"cpaa",fR:zf,YFa:"contactPhoto",dGa:"copyphoto",eGa:"ctpa",fGa:"ctpf",mGa:"cropphoto",KGa:"dow",LGa:Vg,bIa:"ipfd",gJa:"mdisamb",faa:"mtp",OJa:je,taa:"photocuration",RJa:"photosharing",XJa:"polls",bKa:"profileBanner",waa:ym,cLa:"sptm",MLa:"sqprofile"},void 0);w("picker.api.PostProcessorId.CHANGE_ALBUM_ATTRIBUTES","caa",void 0);w("picker.api.PostProcessorId.CHANGE_PARENT_ALBUM_ATTRIBUTES","cpaa",void 0);
w("picker.api.PostProcessorOption",{jFa:"albumName",gGa:"ctta",RGa:"eata",$Ga:"evid",kHa:"finalizeAlbum",WHa:Li,cIa:"includeAllDocs",aJa:lk,faa:"mtp",vJa:"ni",vKa:"rps",LLa:"sqid",IR:dq},void 0);w("picker.api.PostProcessorOption.VISIBILITY",dq,void 0);w("picker.api.Protocol",{AHa:Jh,BHa:"gapi_iframes",XHa:"ifpc",YHa:"iframes",fIa:"injected"},void 0);w("picker.api.Protocol.GADGETS",Jh,void 0);w("picker.api.Protocol.IFPC","ifpc",void 0);w("picker.api.UploadConfigurationId.PHOTOS",zl,void 0);
w("picker.api.UploadView",vR,void 0);vR.prototype.setUploadNotificationsEnabled=pR.prototype.kBa;w("picker.api.UrlView",HR,void 0);HR.prototype.setSite=HR.prototype.po;HR.prototype.setType=HR.prototype.Ne;HR.prototype.setLabel=HR.prototype.Ra;HR.prototype.setQuery=HR.prototype.setQuery;HR.prototype.setMimeTypes=HR.prototype.Gb;HR.prototype.setBreadcrumbsBarHidden=HR.prototype.Fb;HR.prototype.addUploadMetadata=HR.prototype.Db;HR.prototype.setParent=HR.prototype.Ea;
HR.prototype.setContainerRenameableType=HR.prototype.Mb;w("picker.api.UrlViewType.ALL",ke,void 0);w("picker.api.UrlViewType.IMAGE",Mi,void 0);w("picker.api.UrlViewType.VIDEO",Vp,void 0);w("picker.api.VideoSearchView.GOOGLE_VIDEO","video.google.com",void 0);pR.prototype.addUploadMetadata=pR.prototype.Db;pR.prototype.setBreadcrumbsBarHidden=pR.prototype.Fb;JR.prototype.getItemsString=JR.prototype.Lz;w("picker.api.ViewId.PEOPLE",tl,void 0);w("picker.api.ViewId.UPLOAD",zp,void 0);
w("picker.api.commands.CancelUploadCommand",hR,void 0);w("picker.api.commands.RefreshCommand",iR,void 0);w("picker.api.commands.SetMaxItemsCommand",lR,void 0);w("picker.api.commands.SetMaxSizeBytesCommand",kR,void 0);w("picker.api.commands.SetTitleCommand",mR,void 0);w("picker.api.commands.SetViewCommand",qR,void 0);w("picker.api.commands.SetViewOptionsCommand",rR,void 0);w("picker.api.WebSearchView",IR,void 0);IR.prototype.setSite=IR.prototype.po;IR.prototype.setSearchLabel=IR.prototype.AAa;
IR.prototype.setInUrl=IR.prototype.Bza;IR.prototype.setSafeSearch=IR.prototype.Ew;IR.prototype.setCustomSearchEngine=IR.prototype.Qya;w("picker.api.PhotoUploadView",kS,void 0);aS.prototype.sendCommand=aS.prototype.ld;aS.prototype.setUrl=aS.prototype.ro;Y.prototype.addLabel=Y.prototype.So;Y.prototype.addPostProcessor=Y.prototype.rs;Y.prototype.getNav=Y.prototype.ui;Y.prototype.getProtocol=Y.prototype.ku;Y.prototype.getSelectButtonLabel=Y.prototype.bn;Y.prototype.resetNav=Y.prototype.VC;Y.prototype.setHostId=Y.prototype.xr;Y.prototype.setLoadGadgetsLibrary=Y.prototype.Nza;Y.prototype.setProtocol=Y.prototype.KD;Y.prototype.setSelectButtonLabel=Y.prototype.LD;
Y.prototype.setThumbs=Y.prototype.PD;Y.prototype.setGroupId=Y.prototype.V5;Y.prototype.shouldReturnUploadMetadata=Y.prototype.ZD;Y.prototype.buildMinimal=Y.prototype.WF;Y.prototype.disableAutoHide=Y.prototype.pH;Y.prototype.setMaxVideoDurationSec=Y.prototype.k6;var mS=function(){},nS=typeof Uint8Array==Ih,rS=function(a,b,c,e,f,g){a.ne=null;b||(b=c?[c]:[]);a.UNa=c?String(c):void 0;a.Zo=0===c?-1:0;a.qf=b;a:{if(a.qf.length&&(b=a.qf.length-1,(c=a.qf[b])&&typeof c==Jk&&!x(c)&&!(nS&&c instanceof Uint8Array))){a.Wq=b-a.Zo;a.zf=c;break a}-1<e?(a.Wq=e,a.zf=null):a.Wq=Number.MAX_VALUE}a.oNa={};if(f)for(e=0;e<f.length;e++)b=f[e],b<a.Wq?(b+=a.Zo,a.qf[b]=a.qf[b]||oS):(pS(a),a.zf[b]=a.zf[b]||oS);g&&g.length&&D(g,Wq(qS,a))},oS=Object.freeze?Object.freeze([]):[],pS=function(a){var b=
a.Wq+a.Zo;a.qf[b]||(a.zf=a.qf[b]={})},sS=function(a,b){if(b<a.Wq){b+=a.Zo;var c=a.qf[b];return c===oS?a.qf[b]=[]:c}if(a.zf)return c=a.zf[b],c===oS?a.zf[b]=[]:c},tS=function(a,b,c){a=sS(a,b);return null==a?c:a},uS=function(a,b,c){b<a.Wq?a.qf[b+a.Zo]=c:(pS(a),a.zf[b]=c)},qS=function(a,b){var c,e;D(b,function(b){var f=sS(a,b);null!=f&&(c=b,e=f,uS(a,b,void 0))});return c?(uS(a,c,e),c):0};
mS.prototype.C8=function(){if(this.ne)for(var a in this.ne){var b=this.ne[a];if(x(b))for(var c=0;c<b.length;c++)b[c]&&b[c].Vh();else b&&b.Vh()}};mS.prototype.Vh=function(){this.C8();return this.qf};mS.prototype.jk=nS?function(){var a=Uint8Array.prototype.toJSON;Uint8Array.prototype.toJSON=function(){return yM(this)};try{var b=JSON.stringify(this.Vh(),vS)}finally{Uint8Array.prototype.toJSON=a}return b}:function(){return JSON.stringify(this.Vh(),vS)};
var vS=function(a,b){if(Hq(b)){if(isNaN(b))return"NaN";if(Infinity===b)return"Infinity";if(-Infinity===b)return"-Infinity"}return b};mS.prototype.toString=function(){this.C8();return this.qf.toString()};mS.prototype.getExtension=function(a){if(this.zf){this.ne||(this.ne={});var b=a.BNa;if(a.PNa){if(a.Iqa())return this.ne[b]||(this.ne[b]=as(this.zf[b]||[],function(b){return new a.afa(b)})),this.ne[b]}else if(a.Iqa())return!this.ne[b]&&this.zf[b]&&(this.ne[b]=new a.afa(this.zf[b])),this.ne[b];return this.zf[b]}};
mS.prototype.clone=function(){return new this.constructor(wS(this.Vh()))};var wS=function(a){var b;if(x(a)){for(var c=Array(a.length),e=0;e<a.length;e++)null!=(b=a[e])&&(c[e]=typeof b==Jk?wS(b):b);return c}if(nS&&a instanceof Uint8Array)return new Uint8Array(a);c={};for(e in a)null!=(b=a[e])&&(c[e]=typeof b==Jk?wS(b):b);return c};var xS=function(a){rS(this,a,0,-1,null,null)};B(xS,mS);xS.prototype.wo=function(a){return yS(a,this)};var yS=function(a,b){var c={kd:tS(b,1,0),VNa:tS(b,2,0)};a&&(c.r$=b);return c};xS.prototype.getSeconds=function(){return tS(this,1,0)};xS.prototype.setSeconds=function(a){0!=a?uS(this,1,a):this.qf[1+this.Zo]=null};var zS=function(a){rS(this,a,0,-1,null,null)};B(zS,mS);zS.prototype.wo=function(a){var b,c={zNa:tS(this,1,""),sessionId:tS(this,2,""),QNa:tS(this,3,0),uOa:(b=this.qka())&&yS(a,b),uNa:tS(this,5,!1)};a&&(c.r$=this);return c};zS.prototype.qka=function(){this.ne||(this.ne={});if(!this.ne[4]){var a=sS(this,4);a&&(this.ne[4]=new xS(a))}return this.ne[4]};var AS=function(a){this.Qf=a.hl;this.Ssa=!!a[zk];this.Oq=a.oAuthToken;this.Vua=a.pimm;this.Yva=a.relayUrl;this.C4=a.rpcService;this.Vg=a.rpcToken;this.oxa=a.rpcUrl?yE(a.rpcUrl):null;this.pxa=yw.test(this.Qf);this.jQ=(new Boolean(a.thirdParty)).valueOf();this.J9=a.uriPrefix||"picker/";this.ega=!!a.ecsi},BS=null,CS=function(){C(!!BS,"Flags not initialized");return BS};AS.prototype.getRelayUrl=function(){return this.Yva};AS.prototype.isNative=function(){return this.Ssa};AS.prototype.Ge=function(){return this.pxa};var DS={1:"picker-spr-google-photos-24"};var ES=function(a){F.call(this);a&&(BS=new AS(a));this.Yh=a.actions||{};this.iba=a.apt;this.jh=a.appContext||null;this.vj=a.email;this.tda=a.chrome;this.Pea=a.cropMode;this.efa=a.de;var b=[];u(a.fs)&&(b=x(a.fs)?a.fs:JSON.parse(a.fs));this.fha=b;this.CC=a.prefetchQueryRequest;this.DC=a.prefetchUriParams;this.Mv=a.prefetchUriQuery;this.ova=a.prefetchEnabled;this.jfa=a.defaultView;this.WT=!!a.cwpc;this.UV=!a.driveGridViewSwitcherHidden;this.D=a.element;this.rW=a.eventId;this.z1=a.maxSizeBytes||null;
this.lga=!!a.enableSizeEstimation;this.fga=!!a.edbe;this.y1=a.maxItems||null;this.Bsa=a.minItems||0;this.zga=new LG(a.excludeIds?a.excludeIds.split(","):[]);new LG(a.e?a.e.split(","):[]);this.Om=(!!a.endv||!!a.newDriveView)&&!a.odv;this.ft=!!a.noAutoHide;this.oH=!!a.dav;this.Pga=!!a.ftd;this.hK=!!a.horizNav||this.Om;this.fl=a.hostId;this.hh=!!a.addMode;this.xra=a.learnMore;this.Ora=a.loadingStatusElement;this.Ixa=!!a.swue;b=a.selectableMimeTypes;v(b)&&(this.a5=this.Uka(b));this.bya=a.serviceIds||
[];this.Csa=a.mineOnly;this.PB=!!a.multiselectEnabled;b=a.nav;if(v(b))b=JSON.parse(b);else if(!x(b))throw Error("nav must be an array");this.Tf=b;this.Hn=(this.KB=!!a.minimal)&&!!a.minew;this.SB=this.KB||!!a.navHidden;this.yua=a.origin;this.M2=a.outerElement;this.Fl=!1;this.QN=A();u(a.puv)&&JSON.parse(a.puv);b=a.pp;v(b)&&(b=JSON.parse(b));b&&b.length?(x(b[0])||(b=[b]),D(b,function(a){a[1]||(a[1]={})})):b=[];this.Ie=b;this.q3=a.profilePhoto;this.Bva=a.protocol;this.Fxa=a.selectButtonLabel;this.bE=
!!a.showroomNav;this.qDa=a.titleBarIconId;this.rE=x(a.thumbs)?a.thumbs:a.thumbs&&JSON.parse(a.thumbs);this.Xr=x(a.tt)?a.tt:a.tt&&JSON.parse(a.tt);this.Xc=a.title;this.aQ=a.subTitle;this.Lfa=a.dfc;this.hba=a.actionPaneText;var c=a.uploadConfigs;v(c)&&(c=JSON.parse(c),Js(c,function(a,b){c[b]=new bS(a)}));this.ME=c||{};b=a.uploadButton;v(b)&&JSON.parse(b);this.LQ=a.uploaders?a.uploaders:void 0;this.wP=!!a.srum;this.BEa=!!a.urlInputVisible;this.UEa=a.vg||gl;this.Vfa=!a.driveSortHidden;this.EEa=!!a.grugl;
a.iid&&new zS(a.iid)};B(ES,F);var FS={"application/vnd.google-apps.document":[xe],"application/vnd.google-apps.form":[we],"application/vnd.google-apps.presentation":[ze],"application/vnd.google-apps.spreadsheet":[Ae]};q=ES.prototype;q.Uka=function(a){a=new LG(JSON.parse(a));for(var b in FS)a.contains(b)&&a.addAll(FS[b]);return a};q.Qk=function(){return this.jh};q.getEmail=function(){return this.vj};q.Uqa=function(){return!!this.ova};q.b=function(){return this.D};q.EH=function(a){this.hh=a};q.ui=function(){return this.Tf};
q.getOrigin=function(){return this.yua};q.Yp=function(){return this.M2||(this.M2=dy("picker-main-container",this.D))};q.ku=function(){return this.Bva};q.bn=function(){return this.Fxa||(this.q3?"Set as profile photo":"Select")};q.Lka=function(){return DS[this.qDa]};q.Pd=function(){return this.Xc};q.ZD=function(){return this.wP};q.P_=function(a){return this.Yh[a]};q.b0=function(){return!!this.fl&&("og"==this.fl||Yq(this.fl,"es-"))};q.Jqa=function(a){return!this.a5||this.a5.contains(a)};q.Dd=function(){return this.KB};
q.HY=function(){return this.KB?18E4:0};q.rs=function(a){this.Ie=this.Ie||[];this.Ie.push(a)};q.et=function(a){this.oH=a};q.rAa=function(a){!this.Fl&&a&&(this.QN=A());this.Fl=a};q.zw=function(a){this.y1=a};q.FD=function(a){this.z1=a};q.Fr=function(){};q.UK=function(){return!(!this.Tf.length||1!=this.Tf.length||this.Tf[0][0]!=tl)};q.OQ=function(){return this.EEa};q.o=function(){ES.c.o.call(this);delete this.D;delete this.Ora};var GS=function(a,b){v(b)?(C(b,"NamespacedType does not allow empty type string"),C(!/[:]/.test(b),'NamespacedType does not allow ":" in type string: '+b)):C(0<=b,"NamespacedType does not allow negative type number");C(a,"NamespacedType does not accept undefined or null namespace");this.Rsa=a;this.Va=b;this.constructor.CF||(this.constructor.CF={});a=this.toString();C(!this.constructor.CF[a],"Registering duplicate namespaced type "+a);this.constructor.CF[a]=this};GS.prototype.jk=function(){return this.toString()};
GS.prototype.toString=function(){this.L8||(this.L8=this.Rsa.fJ()+":"+this.Va);return this.L8};GS.prototype.getType=function(){return this.Va};var HS=function(a,b){GS.call(this,a,b)};B(HS,GS);var JS=function(a){C(!IS.hasOwnProperty(a),"Attempt to create a second Namespace with name: "+a);C(!/[^0-9a-zA-Z._]/.test(a),"Attempt to create a Namespace with invalid characters: "+a);this.Ab=a;IS[a]=this},IS;IS={};JS.prototype.fJ=function(){return this.Ab};new JS("lib");var LS=function(a){F.call(this);this.id=KS++;this.cya=[];this.je={};this.xL={};this.ON={};this.jo={};this.IS={};this.X1={};this.xe=a?a.xe:new J;this.zBa=!a;this.Fv=null;a?(this.Fv=a,this.ON=a.ON,this.jo=a.jo,this.xL=a.xL,this.IS=a.IS):A();a=this.nJ();this!=a&&(a.dy?a.dy.push(this):a.dy=[this])};B(LS,F);var KS=1;q=LS.prototype;q.nJ=function(){for(var a=this;a.Fv;)a=a.Fv;return a};q.nfa=function(a){for(var b=this;b;){if(b==a)return!0;b=b.Fv}return!1};
q.get=function(a){var b=this.eY(a);null==b&&this.vNa&&(b={BOGUS:"Service "+a+" was not registered"});if(null==b)throw new MS(a);return b};q.eY=function(a){for(var b=this;b;b=b.Fv){if(b.isDisposed())throw Error("AppContext is disposed.");if(b.je[a])return b.je[a][0];if(b.X1[a])break}if(b=this.rka(a)){b=b(this);if(null==b)throw Error("Factory method for service "+a+" returned null or undefined.");this.Hi(a,b);return b}return null};
q.Hi=function(a,b,c){if(this.isDisposed())c||G(b);else{C(!this.je[a],'Service for "%s" is already registered',a);this.cya.push(a);this.je[a]=[b,!c];c=this.Tga(this,a);for(var e=0;e<c.length;e++)c[e].callback(null);delete this.xL[a];return b}};q.GE=function(a){if(!this.je[a])throw Error('Service for "'+a+pa);var b=this.je[a];delete this.je[a];b[1]&&G(b[0])};q.rka=function(a){return this.ON[a]};
q.Tga=function(a,b){var c=[],e=this.jo[b];e&&(Zr(e,function(b){b.sca.nfa(a)&&(c.push(b.d),os(e,b))}),0==e.length&&delete this.jo[b]);return c};q.zda=function(a){this.jo&&Js(this.jo,function(b,c,e){Zr(b,function(c){c.sca==a&&os(b,c)});0==b.length&&delete e[c]})};
q.o=function(){if(this.nJ()==this){var a=this.dy;if(a)for(;a.length;)a[0].dispose()}else{a=this.nJ().dy;for(var b=0;b<a.length;b++)if(a[b]==this){a.splice(b,1);break}}for(var c in this.je)a=this.je[c],a[1]&&a[0].dispose&&a[0].dispose();this.je=null;this.zBa&&this.xe.dispose();this.zda(this);this.jo=null;G(this.Bua);this.X1=this.Bua=null;LS.c.o.call(this)};var MS=function(a){Kr.call(this);this.id=a;this.message='Service for "'+a+pa};B(MS,Kr);var NS=new JS("fva");new HS(NS,1);ov("fava.core.Timer");var OS=function(){F.call(this)};B(OS,F);OS.prototype.F=ov("fava.debug.ErrorReporter");OS.prototype.init=function(){this.AN=[]};OS.prototype.Rwa=function(a,b){if(this.isDisposed())K(this.F,"reportException was called but ErrorReporter already disposed. Message: "+a,b);else if(b instanceof yH)K(this.F,a||"CancelledError",b);else{if(this.F){var c=this.F.XX(fu,a||"Exception",b);c.xNa=!0;this.F.Rra(c)}this.Vxa?this.Vxa.tOa(b,a):this.AN&&10>this.AN.length&&this.AN.push([a,b])}};var PS=new OS;var QS=function(a,b){J.call(this);this.Ec=[];this.CEa=!!b;this.G=new jC(this);this.Aqa=window.parent!=window;if(a)if(x(a))for(b=0;b<a.length;b++)this.zx(a[b].K());else this.zx(a.K());else this.zx(N().K());A()};B(QS,J);QS.prototype.J1=0;var RS=[Bf,vg,nk,ok,rk],SS=["touchend","touchmove",pp],TS=[zj,Bj];q=QS.prototype;q.o=function(){QS.c.o.call(this);this.G.dispose();this.G=null;delete this.Ec};
q.zx=function(a){if(!is(this.Ec,a)){this.Ec.push(a);var b=!this.CEa,c=qs(TS,RS);this.Aqa||ss(c,SS);this.G.listen(a,c,this.tu,b)}};q.tu=function(a){var b=!1;switch(a.type){case ok:if(typeof this.O0==Ik&&this.O0!=a.clientX||typeof this.P0==Ik&&this.P0!=a.clientY)b=!0;this.O0=a.clientX;this.P0=a.clientY;break;default:b=!0}b&&(a=Qr(a.type),this.u9(A(),a))};q.j4=function(){this.u9(A(),"manual")};q.u9=function(a){a>this.J1&&(this.dispatchEvent("activity"),this.J1=a+3E3)};new LG;var US=function(){F.call(this);this.lK=null;this.Fca=new CM;this.x3=new L};B(US,F);US.prototype.wa=null;US.prototype.F=ov("fava.base.Scheduler");US.prototype.dispose=function(){US.c.dispose.call(this);this.wa&&(t.clearTimeout(this.wa),this.wa=null);this.Fca.clear();for(var a=this.x3.nb(),b=0;b<a.length;b++)a[b].dispose();this.x3.clear();this.lK&&(this.lK.dispose(),this.lK=null)};var VS=function(a){J.call(this);this.nm=a?a.getWindow():window;this.K0=this.xX();this.Pf=y(this.Wma,this);this.HB=this.nm.matchMedia?this.nm.matchMedia("(min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5)"):null};B(VS,J);VS.prototype.start=function(){this.HB&&this.HB.addListener(this.Pf)};VS.prototype.xX=function(){return 1.5<=this.nm.devicePixelRatio?2:1};VS.prototype.Wma=function(){var a=this.xX();this.K0!=a&&(this.K0=a,this.dispatchEvent("s"))};
VS.prototype.o=function(){this.HB&&this.HB.removeListener(this.Pf);VS.c.o.call(this)};var WS=function(a,b){F.call(this);this.jh=a;b&&this.nAa(b)};B(WS,F);q=WS.prototype;q.nAa=function(a){if(this.oC)throw Error("[fava.component.DomServices] Owner document already initialized");this.oC=a;this.L=N(a);this.tx=new NH(ky(a));this.tx.Sl(this.jh.xe);this.TM=new VS(this.L);this.TM.start()};q.gY=function(){Sr(this.oC,dc);return this.oC};q.j=function(){Sr(this.L,"Tried to use dom services without an owner document; possibly missing 'multiple: true' in a fava.extension.register?");return this.L};
q.qu=function(){C(this.L,dc);return this.tx.Ae()};q.o=function(){this.L=this.oC=null;this.tx&&(this.tx.dispose(),this.tx=null);G(this.TM);this.TM=null};var XS=function(a,b){F.call(this);this.cD=b||null};B(XS,F);XS.prototype.o=function(){this.cD&&(this.cD.dispose(),this.cD=null)};XS.prototype.getRootNode=function(){return this.cD};var YS=function(a,b){F.call(this);this.QV=this.HU=null;this.yi=b;this.Ld=[];this.pea(a)};B(YS,F);q=YS.prototype;q.Hj=function(){return this.Ld.length?this.Ld.pop():this.oj()};q.gk=function(a){this.Ld.length<this.yi?this.Ld.push(a):this.Jm(a)};q.pea=function(a){if(a>this.yi)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var b=0;b<a;b++)this.Ld.push(this.oj())};q.oj=function(){return this.HU?this.HU():{}};
q.Jm=function(a){if(this.QV)this.QV(a);else if(Oq(a))if(Nq(a.dispose))a.dispose();else for(var b in a)delete a[b]};q.o=function(){YS.c.o.call(this);for(var a=this.Ld;a.length;)this.Jm(a.pop());delete this.Ld};var aT=function(){this.vd=[];this.Cl=new L;this.T8=this.BE=this.CE=this.Tr=0;this.hc=new L;this.ZT=this.pQ=0;this.mM=1;this.Bt=new YS(0,4E3);this.Bt.oj=function(){return new ZS};this.UP=new YS(0,50);this.UP.oj=function(){return new $S};var a=this;this.Iu=new YS(0,2E3);this.Iu.oj=function(){return String(a.mM++)};this.Iu.Jm=function(){};this.qV=3};aT.prototype.F=ov("goog.debug.Trace");aT.prototype.fF=1E3;var $S=function(){this.qx=this.time=this.count=0};
$S.prototype.toString=function(){var a=[];a.push(this.type," ",this.count," (",Math.round(10*this.time)/10," ms)");this.qx&&a.push(" [VarAlloc = ",this.qx,"]");return a.join("")};var ZS=function(){};
ZS.prototype.tDa=function(a,b,c){var e=[];-1==b?e.push("    "):e.push(bT(this.$y-b));e.push(" ",cT(this.$y-a));0==this.Ct?e.push(" Start        "):1==this.Ct?(e.push(" Done "),e.push(bT(this.JCa-this.startTime)," ms ")):e.push(" Comment      ");e.push(c,this);0<this.cx&&e.push("[VarAlloc ",this.cx,"] ");return e.join("")};ZS.prototype.toString=function(){return null==this.type?this.Ms:"["+this.type+"] "+this.Ms};q=aT.prototype;
q.reset=function(a){this.qV=a;this.H3();this.Cl.clear();this.Tr=A();this.ZT=this.pQ=this.T8=this.BE=this.CE=0;a=this.hc.bb();for(var b=0;b<a.length;b++){var c=this.hc.get(a[b]);c.count=0;c.time=0;c.qx=0;this.UP.gk(c)}this.hc.clear()};q.H3=function(){for(var a=0;a<this.vd.length;a++){var b=this.vd[a];b.id&&this.Iu.gk(b.id);this.Bt.gk(b)}this.vd.length=0};
q.j8=function(a,b){var c=A(),e=this.EY(),f=this.Cl.sa();this.vd.length+f>this.fF&&(qv(this.F,"Giant thread trace. Clearing to avoid memory leak."),this.vd.length>this.fF/2&&this.H3(),f>this.fF/2&&this.Cl.clear());ou("Start : "+a);f=this.Bt.Hj();f.cx=e;f.Ct=0;f.id=Number(this.Iu.Hj());f.Ms=a;f.type=b;this.vd.push(f);this.Cl.set(String(f.id),f);this.pQ++;a=A();f.startTime=f.$y=a;this.CE+=a-c;return f.id};
q.p8=function(a,b){var c=A();var e=0===b?0:b?b:this.qV;b=this.Cl.get(String(a));if(null==b)return null;this.Cl.remove(String(a));a=c-b.startTime;if(a<e)for(e=this.vd.length-1;0<=e;e--){if(this.vd[e]==b){this.vd.splice(e,1);this.Iu.gk(b.id);this.Bt.gk(b);break}}else{var f=this.Bt.Hj();f.Ct=1;f.startTime=b.startTime;f.Ms=b.Ms;f.type=b.type;f.JCa=f.$y=c;this.vd.push(f)}e=b.type;var g=null;e&&(g=this.Eka(e),g.count++,g.time+=a);f&&(ou("Stop : "+f.Ms),f.cx=this.EY(),g&&(g.qx+=f.cx-b.cx));f=A();this.BE+=
f-c;return a};q.EY=function(){var a=this.DNa;return a&&a.isTracing()?a.totalVarAlloc:-1};q.Eka=function(a){var b=this.hc.get(a);b||(b=this.UP.Hj(),b.type=a,this.hc.set(a,b));return b};
q.toString=function(){for(var a=[],b=-1,c=[],e=0;e<this.vd.length;e++){var f=this.vd[e];1==f.Ct&&c.pop();a.push(" ",f.tDa(this.Tr,b,c.join("")));b=f.$y;a.push("\n");0==f.Ct&&c.push("|  ")}if(0!=this.Cl.sa()){var g=A();a.push(" Unstopped timers:\n");fv(this.Cl,function(b){a.push("  ",b," (",g-b.startTime," ms, started at ",cT(b.startTime),")\n")})}b=this.hc.bb();for(e=0;e<b.length;e++)c=this.hc.get(b[e]),1<c.count&&a.push(" TOTAL ",c,"\n");a.push("Total tracers created ",this.pQ,"\n","Total comments created ",
this.ZT,"\n","Overhead start: ",this.CE," ms\n","Overhead end: ",this.BE," ms\n","Overhead comment: ",this.T8," ms\n");return a.join("")};var bT=function(a){a=Math.round(a);var b="";1E3>a&&(b=" ");100>a&&(b="  ");10>a&&(b="   ");return b+a},cT=function(a){a=Math.round(a);return String(100+a/1E3%60).substring(1,3)+"."+String(1E3+a%1E3).substring(1,4)},dT=new aT;var eT=function(a,b){this.Dn=a;this.qb=b};eT.prototype.getKey=function(){return this.Dn};eT.prototype.getValue=function(){return this.qb};eT.prototype.clone=function(){return new eT(this.Dn,this.qb)};var fT=function(a){this.Lg=[];a&&this.Wpa(a)};q=fT.prototype;q.insert=function(a,b){var c=this.Lg;c.push(new eT(a,b));this.hM(c.length-1)};q.Wpa=function(a){if(a instanceof fT){var b=a.bb();a=a.nb();if(0>=this.sa()){for(var c=this.Lg,e=0;e<b.length;e++)c.push(new eT(b[e],a[e]));return}}else b=Qs(a),a=Ps(a);for(e=0;e<b.length;e++)this.insert(b[e],a[e])};q.remove=function(){var a=this.Lg,b=a.length,c=a[0];if(!(0>=b))return 1==b?ls(a):(a[0]=a.pop(),this.eM(0)),c.getValue()};
q.eM=function(a){for(var b=this.Lg,c=b.length,e=b[a];a<c>>1;){var f=this.lja(a),g=this.nka(a);f=g<c&&b[g].getKey()<b[f].getKey()?g:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e};q.hM=function(a){for(var b=this.Lg,c=b[a];0<a;){var e=this.$ja(a);if(b[e].getKey()>c.getKey())b[a]=b[e],a=e;else break}b[a]=c};q.lja=function(a){return 2*a+1};q.nka=function(a){return 2*a+2};q.$ja=function(a){return a-1>>1};q.nb=function(){for(var a=this.Lg,b=[],c=a.length,e=0;e<c;e++)b.push(a[e].getValue());return b};
q.bb=function(){for(var a=this.Lg,b=[],c=a.length,e=0;e<c;e++)b.push(a[e].getKey());return b};q.nj=function(a){return cs(this.Lg,function(b){return b.getValue()==a})};q.Xb=function(a){return cs(this.Lg,function(b){return b.getKey()==a})};q.clone=function(){return new fT(this)};q.sa=function(){return this.Lg.length};q.Sb=function(){return ks(this.Lg)};q.clear=function(){ls(this.Lg)};var gT=function(){fT.call(this)};B(gT,fT);gT.prototype.enqueue=function(a,b){this.insert(a,b)};gT.prototype.Cm=function(){return this.remove()};var hT=function(){F.call(this);this.cN=new L};B(hT,F);q=hT.prototype;q.F=ov("fava.data.Reaper");q.o=function(){this.v3&&(this.v3.dispose(),this.v3=null);this.RZ&&(this.RZ.dispose(),this.RZ=null);hT.c.o.call(this)};q.wia=function(){return A()};q.Sba=function(a){this.cN.set(a.Yd,a)};q.rwa=function(a){this.cN.remove(a.Yd)};q.sa=function(){return this.cN.sa()};var iT=function(a,b){F.call(this);this.Ab=a;C(this.XA&&!b||!this.XA&&b,"[fava.data.BaseNode] rootNode parameter inconsistent with whether this is the RootNode class");this.XA?(this.Yd="$"+this.Ab,this.Sd=this):this.Sd=b};B(iT,F);q=iT.prototype;q.Da=ov("fava.data.BaseNode");q.SM=null;q.o=function(){rv(this.Da,"Disposing node: "+this.Yd);this.G&&(this.G.dispose(),this.G=null)};q.yh=function(){this.lg();this.G||(this.G=new jC(this));return this.G};q.getParent=function(){return this.SM};
q.Ea=function(a){if(null!=this.SM&&null!=a)throw Error("Node must be removed from parent before added to another one");C(!this.XA,"[fava.data.BaseNode] Root node cannot have a parent");if(a&&a.Sd!=this.Sd)throw Error("Node cannot be added to a different data store tree");this.DH=this.PP=null;null!=a?(this.lg(),this.Yd=a.Yd+"/"+this.Ab):this.Yd=null;return this.SM=a};q.Bka=function(){this.PP||(this.PP=this.Yd+"/*");return this.PP};q.Fia=function(){this.DH||(this.DH=this.Yd+"/...");return this.DH};
q.getOptions=function(){return 4};q.lg=function(){if(this.isDisposed())throw Error("Invalid operation for a disposed fava.data.Node.  Error on node: "+this.Yd);};var jT=function(){J.call(this);this.tm=0};B(jT,J);q=jT.prototype;q.F=ov("fava.data.EventTarget");q.vH=function(a,b){var c=dT.j8(Ac,Ac);this.JV(a,a.Yd,u(b)?b:65535);dT.p8(c)};q.xH=function(a,b){var c=dT.j8(Bc,Bc);b=a.Yd+":"+b;this.fz(b,b);this.JV(a,b);dT.p8(c)};q.JV=function(a,b,c){for(var e=0;null!=a;)a.getOptions()&32||(0==e&&this.fz(a.Yd,b,c),1==e&&this.fz(a.Bka(),b,c),0<e&&this.fz(a.Fia(),b,c)),a=a.getParent(),e++};
q.fz=function(a,b,c){if(0<this.tm){if(Gu(this))var e=this.hasListener(a,!1);else e=Ru(this),e=!!e&&e.hasListener(a,!1);e&&this.Mca(a,b,c)}else e=null,u(c)&&(e={},e[b]=c),$u(this,a,!1,new kT(a,[b],e))};q.fE=function(){this.tm++;1==this.tm&&jT.c.dispatchEvent.call(this,"t")};
q.Wy=function(){this.tm--;if(0==this.tm){if(this.es){var a=this.es;this.es=null;for(var b=a.bb(),c=0;c<b.length;c++){var e=b[c],f=a.get(e);f=new kT(e,f.JQ,f.Jo);try{$u(this,e,!1,f)}catch(g){PS.Rwa("Exception firing listeners in Data EventTarget",g)}}}jT.c.dispatchEvent.call(this,"u")}else if(-1==this.tm)throw this.tm=0,Error("fava.data.EventTarget : Unmatched endBatchUpdate, cannot go negative");};
q.Mca=function(a,b,c){this.es||(this.es=new L);var e=this.es.get(a);e?ms(e.JQ,b):(e={JQ:[b],Jo:null},this.es.set(a,e));u(c)&&((a=e.Jo)?a[b]|=c:(e.Jo={},e.Jo[b]=c))};var kT=function(a,b,c){this.type=a;this.JQ=b;this.Jo=c||null};B(kT,H);var lT=function(a,b,c){iT.call(this,a,b?b.Sd:null);b&&b.ca(this);if(this.o0=!!c)a=this.Sd.Qv,a.Sba(this),a.wia()};B(lT,iT);var mT=new L;q=lT.prototype;q.Da=ov("fava.data.Node");q.g1="NOT LOADED";q.$F="VALID";q.getOptions=function(){var a=lT.c.getOptions.call(this);a|=26;this.o0&&(a|=1);return a};q.get=function(){this.lg();return this.oh};q.Pc=function(){this.lg();return this.Ja?this.Ja:mT};q.Wp=function(){this.lg();return this.Ja?this.Ja.sa():0};q.Sk=function(a){return this.fia(a)};
q.fia=function(a){this.lg();return this.Ja?this.Ja.get(a):null};q.rga=function(){this.Ja||(this.Ja=new L)};q.qja=function(){this.lg();return this.g1};q.bia=function(){this.lg();return this.$F};q.Dh=function(){this.lg();return"LOADED"==this.qja()};q.Eg=function(){this.lg();return"VALID"==this.bia()};q.Qk=function(){return this.Sd.Qk()};
q.o=function(){lT.c.o.call(this);if(this.Ja){for(var a=this.Ja.nb(),b=0;b<a.length;b++)a[b].dispose();this.Ja.clear()}a=this.getParent();b=this.Sd;var c=this.Yd;b.Qv.rwa(this);this.E5(null);a&&a.removeChild(this);b&&b.t2(c,a)};q.ca=function(a){var b=a.Ab;this.rga();if(this.Ja.Xb(b))throw Error("Node: "+this.Yd+" already has a child with name "+b);if(a.getParent())throw Error("Node: "+a.Yd+" already has a parent set.");a.Ea(this);this.Ja.set(b,a)};
q.removeChild=function(a){var b=a.Ab;if(!this.Ja||!this.Ja.Xb(b))throw Error("Node: "+this.Yd+" does not have a child with name "+b);a.Ea(null);this.Ja.remove(b)};q.set=function(a){this.lg();this.g1="LOADED";this.$F="VALID";this.E5(a);this.uH()};q.E5=function(a){A();if(this.oh)if(this.oh instanceof J){var b=this.G;b&&b.ta(this.oh,"v",this.CZ)}else Nq(this.oh.NO)&&this.oh.NO(null);(this.oh=a)&&(this.oh instanceof J?this.yh().listen(this.oh,"v",this.CZ):Nq(this.oh.NO)&&this.oh.NO(this))};
q.N_=function(){this.$F="INVALID";this.Sd.u2(this)};q.uH=function(a){this.lg();this.Sd.vH(this,a)};q.CZ=function(a){a.Jo?this.uH(a.Jo):this.uH()};var nT=function(a,b){lT.call(this,a,null);this.Qv=b;this.xe=new jT;this.Dy=[]};B(nT,lT);q=nT.prototype;q.o=function(){this.xe.dispose();nT.c.o.call(this);this.Qv&&(this.Qv.dispose(),this.Qv=null)};q.Da=ov("fava.data.RootNode");q.XA=!0;q.fE=function(){this.xe.fE()};q.Wy=function(){this.xe.Wy()};q.LA=function(){for(var a=this.Pc().nb(),b;b=a.pop();)if(b.N_&&b.N_(),b.getOptions()&8){b=b.Pc().nb();for(var c=0;c<b.length;c++)a.push(b[c])}};q.Qk=function(){return this.jh};
q.vH=function(a,b){this.xe.vH(a,b)};q.xH=function(a,b){this.xe.xH(a,b)};q.t2=function(a,b){for(var c=0;c<this.Dy.length;c++)try{this.Dy[c].t2(a,b)}catch(e){qv(this.Da,jc,e)}};q.u2=function(a){for(var b=0;b<this.Dy.length;b++)try{this.Dy[b].u2(a)}catch(c){qv(this.Da,jc,c)}};var oT=function(a){L.call(this);this.WB=a};B(oT,L);q=oT.prototype;q.clear=function(){this.J_(!0)};q.dispose=function(){this.J_(!1)};q.J_=function(a){for(var b=this.bb(),c=0;c<b.length;c++)this.NF(b[c]);oT.c.clear.call(this);if(a){a=this.WB.Sd;a.fE();try{for(c=0;c<b.length;c++)this.Hy(b[c])}finally{a.Wy()}}};q.remove=function(a){Qr(a);this.NF(a);var b=oT.c.remove.call(this,a);b&&this.Hy(a);return b};q.set=function(a,b){Qr(a);this.get(a)!==b&&(this.NF(a),oT.c.set.call(this,a,b),this.gca(a,b),this.Hy(a))};
q.gca=function(a,b){b&&b instanceof J&&(b=I(b,"v",y(this.Hy,this,a)),this.At||(this.At=new L),this.At.set(a,b))};q.NF=function(a){if(this.At){var b=this.At.get(a);b&&(Wu(b),this.At.remove(a))}};q.addAll=function(a){var b=this.WB.Sd;b.fE();try{oT.c.addAll.call(this,a)}finally{b.Wy()}};q.Hy=function(a){this.WB.Sd.xH(this.WB,a)};var pT=function(a,b){iT.call(this,a,b);this.Gl=new oT(this)};B(pT,iT);q=pT.prototype;q.get=function(){return this.Gl};q.o=function(){pT.c.o.call(this);this.Gl.dispose()};q.getOptions=function(){return pT.c.getOptions.call(this)|16};q.getValue=function(a){return this.Gl.get(a)};q.setValue=function(a,b){this.Gl.set(a,b)};var qT=function(a){pT.call(this,"user",a)};B(qT,pT);var rT=function(a,b){this.Z=b||N();this.z8=a||null;this.yxa=[]};q=rT.prototype;q.R3=function(a,b){this.fD(a,b);a=UE(a,b,this.du(),this.Z);this.kq(a);return a};q.Q3=function(a,b){this.fD(a,b);a=VE(a,b,this.du(),this.Z);this.kq(a);return a};q.render=function(a,b){var c=a(b||{},void 0,this.du());C(!(c instanceof FE)||c.te===zE,'render was called with a strict template of kind other than "html" (consider using renderText or renderStrict)');this.fD(a,b);this.kq();return String(c)};
q.Kl=function(a,b){var c=a(b||{},void 0,this.du());Wr(c,FE,"renderText cannot be called on a non-strict soy template");C(c.te===EE,'renderText was called with a template of kind other than "text"');this.fD(a,b);this.kq();return String(c)};q.kq=Jq;q.fD=function(a,b){this.yxa.push({template:a.ra,data:b||null,NNa:this.du()})};q.du=function(){return this.z8?this.z8.getData():{}};var sT=function(a){rT.call(this,this,a.get(oQ).j());this.jh=a;this.xe=new J};B(sT,rT);sT.prototype.getData=function(){if(!u(this.jl)){var a=this.jh.eY(qQ);if(a){this.jl=a.Iua;this.gv={};for(var b in this.jl)Nq(this.jl[b])&&(this.gv[b]=this.jl[b],this.jl[b]=void 0)}else this.jl=null}this.msa();return this.jl};sT.prototype.kq=function(a){sT.c.kq.call(this);this.xe.dispatchEvent(new H("w",a))};sT.prototype.msa=function(){if(this.gv)for(var a in this.gv)try{var b=this.gv[a]();this.jl[a]=b;delete this.gv[a]}catch(c){}};var tT=function(a){this.Iua=a||null};var uT=function(a,b,c){this.V9=a;this.Tr=b||A();this.Swa=!!c||!1;this.Yy=null};B(uT,F);uT.prototype.J5=function(a){this.Yy=a||A()};var vT=function(a){this.jba=a;this.Tr=A();this.vd=new L};B(vT,F);q=vT.prototype;q.cS=function(a){this.vd.set(a.V9,a)};q.Qt=function(){return this.jba};q.Sb=function(){return this.vd.Sb()};q.oia=function(){var a=new L;this.vd.forEach(function(b,c){b.Yy&&a.set(c,b)},this);return a};q.RI=function(a){return this.vd.get(a)};q.ewa=function(a){this.vd.remove(a)};var wT=function(){F.call(this);this.kv=new vT(Nj);this.$w=new L;this.G=new jC(this);this.Y(this.G);this.QC=new Qv(6E4);this.Y(this.QC);this.G.listen(this.QC,fp,y(this.a4,this));this.U(!0)};B(wT,F);q=wT.prototype;q.h1=Nj;q.Oza=function(a){this.h1=a};q.xr=function(a){this.fl=a};q.U=function(a){a?this.QC.start():this.QC.stop()};q.Ri=function(a,b,c){b=new uT(b,c);c=this.$w.get(a);c||(c=new vT(a),this.$w.set(a,c));c.cS(b)};q.KC=function(a,b){this.kv&&(a=new uT(a,void 0,!0),a.J5(b),this.kv.cS(a))};
q.ji=function(a,b,c){(a=this.$w.get(a))&&a.RI(b)&&null==a.RI(b).Yy&&a.RI(b).J5(c)};q.Qwa=function(a,b){var c=b.V9,e=b.Tr,f=b.Yy;b.Swa?a.tick(c,void 0,f):(a.tick("_"+c,void 0,e),a.tick(c,"_"+c,f))};q.b4=function(a){var b=a.Qt(),c=a.oia();if(c.Sb())return!1;if(b==Nj){var e=window.jstiming.load;b=this.h1;if(!e)return!1}else e=new window.jstiming.Timer(a.Tr);e.name=b;c.forEach(function(b,c){this.Qwa(e,b);a.ewa(c)},this);window.jstiming.report(e,{hostId:this.fl});return!0};
q.a4=function(){if(!t.jstiming)return!1;this.$w.forEach(function(a,b){this.b4(a);a.Sb()&&this.$w.remove(b)},this);return!0};q.oN=function(){if(!t.jstiming||!this.kv)return!1;this.b4(this.kv);this.kv=null;return!0};var yT=function(){F.call(this);this.ma=xT++};B(yT,F);yT.prototype.Zx=null;yT.prototype.kX=!1;var xT=0,zT=null,AT=null,BT=null;q=yT.prototype;q.getAll=function(){return this.kX};q.tza=function(a){this.kX=a};q.xh=As(new Ty("stat"));q.Zt=function(){var a=this.xh().clone(),b=CS(),c=b.J9;c&&a.$g(c+a.getPath());a.T("hl",b.Qf);b.isNative()&&a.T(zk,1);(c=AT)&&a.T("xtoken",c);(b=b.Oq)&&a.T("oauth_token",b);return a};q.getId=function(){return this.ma};q.kc=function(){return 9};q.Hf=function(){return new L};
q.zb=function(){return this.zh().toString()};q.WI=function(){return null};q.zh=function(){var a=new Uy,b=this.Hf();b&&Bv(b,function(b,c){a.set(c,b)});(b=zT)&&a.set("token",b);a.set(Tp,4);if(b=BT)for(var c in b)a.set(c,b[c]);return a};q.Ef=function(){this.Zx||(this.Zx=this.au().toString());return this.Zx};q.au=function(){var a=this.Zt();a.removeParameter("xtoken");var b=this.zh();a.Qh(b);b.remove("token");b.remove(Tp);b.remove("tzo");b.remove("tzfp");var c=BT;if(c)for(var e in c)b.remove(e);return a};
q.cqa=function(){this.Zx=null};var CT=function(a,b,c,e){null!=c&&c!=e&&a.set(b,c)};var DT=function(a){this.iG=a.actionCategory;this.ya=a.url;this.tv=(a=a.supportedMimeTypes)?new LG(a):null};DT.prototype.tg=function(){return this.iG};DT.prototype.getUrl=function(){return this.ya};DT.prototype.isSupported=function(a){return!this.tv||this.tv.contains("*")||this.tv.contains(a)};var ET=function(a,b,c,e,f){this.ya=a;this.gg=b;this.Nj=c;this.k4=!!e;this.Va=f},FT=/{size}/g,GT=/\/{size}\//g,HT=/={size}/g;q=ET.prototype;q.getUrl=function(){return this.ya};q.Ag=function(){return this.gg};q.ti=function(){return this.Nj};q.getType=function(){return this.Va};
q.Yt=function(a,b,c,e){var f=this.getUrl();if(!u(a))return b=f.replace(GT,"/"),b=b.replace(HT,""),b.replace(FT,"");if(a instanceof Wx)return a&&2<=t.devicePixelRatio&&!e&&(a=new Wx(2*a.width,2*a.height)),f.replace(FT,"h"+a.height+"-w"+a.width+(b&&b.length?"-"+b.join("-"):""));a&&2<=t.devicePixelRatio&&!e&&(a*=2);return f.replace(FT,(c||"s")+a+(b&&b.length?"-"+b.join("-"):""))};
q.Kka=function(){if(!this.gg||!this.Nj)return new ET(this.ya,this.gg,this.Nj,!1,this.Va);var a=new Wx(this.gg,this.Nj);if(2048<this.gg||2048<this.Nj)a=a.aw(new Wx(2048,2048));return new ET(this.ya,Math.ceil(a.width),Math.ceil(a.height),!1,this.Va)};
q.Zz=function(a,b,c){var e=this.gg,f=this.Nj,g=this.Va;if(this.k4){if(a instanceof Wx)return new ET(this.Yt(a,b,void 0,c),e,f,!1,g);2048<a&&(a=2048);if(b&&b.length)return new ET(this.Yt(a,b,void 0,c),a,a,!1,g);if(!e||!f)return new ET(this.Yt(a,b,void 0,c),void 0,void 0,!1,g);if(!u(a)||0<a)b=this.mka(a),e=b.width,f=b.height;return new ET(this.Yt(a,void 0,void 0,c),e,f,!1,g)}return this.Kka()};
q.mka=function(a){var b=this.gg,c=this.Nj;a instanceof Wx||(a=a||512,a=new Wx(a,a));var e=b/c;b>c?(b=Math.min(a.width,b),c=Math.ceil(b/e),c>a.height&&(c=a.height,b=Math.ceil(c*e))):(c=Math.min(a.height,c),b=Math.ceil(c*e),b>a.width&&(b=a.width,c=Math.ceil(b/e)));return new Wx(b,c)};var IT=function(a,b,c){var e=CS().Oq;if(!e)throw Error("oauth_token is not set");ET.call(this,a+"?access_token="+e,b,c,!0)};B(IT,ET);var JT=function(a){this.nxa=a.r;this.mxa=a.rdeg};var KT=function(a){this.ma=a.id;this.Ab=a.name};KT.prototype.getId=function(){return this.ma};KT.prototype.getName=function(){return this.Ab};var LT=function(a,b,c){this.ya=a;this.sI=b;this.gb=c};LT.prototype.getUrl=function(){return this.ya};LT.prototype.Ae=function(){return this.gb};LT.prototype.Xoa=function(){return!!this.gb};var MT=function(a,b,c,e,f,g,h){this.Qs=a;this.st=b;this.ZP=e;this.Qx=f;this.cy=g;this.VE=h},NT=function(a){var b=a.cid,c=a.d,e=!!a.p,f=a.ar,g=a.cn,h=a.nv;a=a.s;if(a){var l=[];for(var p=0;p<a.length;p++){var r=a[p];l.push(new LT(r.u,r.f,new Wx(r.w,r.h)))}}if(b||c||l)return new MT(b,c,e,l,f,g,h)};MT.prototype.QI=function(){return this.st};
MT.prototype.C1=function(a){a&&(this.Qs=a.Qs||this.Qs,this.st=a.QI()||this.st,this.Tua=a.Tua,this.ZP=a.ZP||this.ZP,this.Qx=a.Qx||this.Qx,this.cy=a.cy||this.cy,this.VE=a.VE||this.VE)};var OT=function(a){F.call(this);this.md=a.serviceId;this.Qr=a.sourceId||"0";this.jb=a.id;this.ya=a.url;this.wt=a.embedUrl;this.Va=a.type;this.Jg=a.mimeType;this.Ab=a.name;this.dm=this.JG(a.thumbs);this.rG=this.JG(a.cThumbs);this.kG=this.JG(a.childThumbs);this.Fg=a.lastEditedUtc||null;var b={},c=a.actions;if(c)for(var e=0;e<c.length;e++){var f=new DT(c[e]);b[f.tg()]=f}this.Yh=b;b=null;(c=a.owners)&&c.length&&(b=as(c,function(a){return new KT(a)}));this.LM=b;this.Jw=null;this.yv=a.nChildren;this.dt=
a.description||"";this.Rn=a.parent;this.oK=(b=a.imageData)?new JT(b):null;this.UE=(b=a.videoData)&&NT(b)||null;this.eB=a.kansasVersionInfo;this.X7=a.sortIndex||0;this.Nr=a.sizeBytes;this.SK=!!a.isNew;this.xs=a.attrs||{}};B(OT,F);
var PT=function(a){return a?as(a,function(a){return new OT(a)}):[]},QT=function(a){return as(a,function(a){var b={};b.embedUrl=a.wt;b.id=a.jb;b.mimeType=a.getAttribute(ik);b.name=a.getName();b.parent=a.Rn;b.serviceId=a.md;b.sourceId=a.Qr;b.type=a.getType();b.url=a.getUrl();b=new OT(b);b.setAttribute("ce",a.getAttribute("ce"));b.setAttribute("ico",a.getAttribute("iconUrl"));b.setAttribute("icr",a.getAttribute("icr"));var e=a.getAttribute(Zi)&&a.getAttribute("iritd");b.setAttribute("iritd",e);b.setAttribute("isr",
a.getAttribute("isRoot"));b.setAttribute("iss",a.getAttribute(Yi));b.setAttribute(Zi,a.getAttribute(Zi));b.setAttribute("lmbm",a.getAttribute(Fj));b.setAttribute("lvbm",a.getAttribute(Gj));b.setAttribute("op",a.getAttribute("otherParents"));b.setAttribute("ro",a.getAttribute("readOnly"));b.setAttribute("tdcac",a.getAttribute("tdcac"));b.setAttribute("tdcrc",a.getAttribute("tdcrc"));b.setAttribute("tdid",a.getAttribute(Yo));b.setAttribute("tdpdn",a.getAttribute("tdpdn"));b.setAttribute(dq,a.getAttribute(dq));
b.Gya(QT(a.Pc()));return b})};OT.prototype.JG=function(a){if(!a)return null;var b=[];if(CS().Oq&&ER(this.md))for(var c=0;c<a.length;c++){var e=a[c];b.push(new IT(e.u,e.w,e.h))}else for(c=0;c<a.length;c++)e=a[c],b.push(new ET(e.u,e.w,e.h,e.r,e.t));return b};OT.prototype.ma=null;OT.prototype.Ja=null;var RT=function(a,b,c){return v(c)&&-1!=c.indexOf(".")?c:Br(a,".",b,".",c)};q=OT.prototype;q.getId=function(){return this.ma||(this.ma=RT(this.md,this.Qr,this.jb))};q.ND=function(a){this.md=a};
q.getType=function(){return this.Va};q.Ne=function(a){this.Va=a};q.d6=function(a){this.jb=a;this.ma=null};q.getUrl=function(){return this.ya};q.getName=function(){return this.Ab};q.Aw=function(a){this.Ab=a};
q.ZI=function(){var a=this.getAttribute("ico");return a?a:"application/vnd.google-apps.calendar"==this.Jg?"//ssl.gstatic.com/docs/picker/images/icon_calendar_small-v1.gif":this.Jg==ue?this.getAttribute("iss")?"//ssl.gstatic.com/docs/doclist/images/icon_11_shared_collection_list.png":"//ssl.gstatic.com/docs/doclist/images/icon_11_collection_list.png":"//ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"};q.R6=function(a){this.dm=a};
q.lia=function(){return this.rG&&this.rG.length?this.rG:this.dm};q.VX=function(){return this.getAttribute("lmbm")};q.jY=function(){return this.getAttribute("rDate")};q.WX=function(){return this.getAttribute("lvbm")};q.Qt=function(a){return this.Yh[a]};q.gh=function(a){this.Yh[a.tg()]=a};q.wka=function(){var a=this.getAttribute("shu");!this.Jw&&Oq(a)&&(this.Jw=new KT(a));return this.Jw};
q.JK=function(){var a=this.Jg;return"application/chromium-bookmark-folder"==a||"application/chromium-root-folder"==a||a==ue||"application/vnd.google-apps.photoalbum"==a||a==Be};q.Wp=function(){return this.yv};q.Pc=function(){return this.Ja};q.Gya=function(a){this.Ja=a};q.getImageData=function(){return this.oK};q.zq=function(){return this.SK};q.Gza=function(a){this.SK=a};q.getAttribute=function(a){return this.xs[a]};q.setAttribute=function(a,b){this.xs[a]=b};
q.Rha=function(){var a=this.getAttribute("op");if(a){if(v(a))return a.split(",");if(x(a))return a}return[]};q.Lqa=function(a){if(null!=a&&this.getId()==a.getId()&&null!=this.Fg&&null!=a.Fg)return this.Fg>=a.Fg?!0:!1};q.Cq=function(){return this.jb==Sm||!!this.getAttribute("isr")};
q.C1=function(a){this.md=a.md||this.md;this.Qr=a.Qr||this.Qr;this.d6(a.jb||this.jb);this.ya=a.getUrl()||this.ya;this.wt=a.wt||this.wt;this.Va=a.getType()||this.Va;this.Jg=a.Jg||this.Jg;this.Ab=a.getName()||this.Ab;this.dm=a.dm||this.dm;this.kG=a.kG||this.kG;this.Fg=a.Fg||this.Fg;if(a.pE||this.pE)this.pE=a.pE||this.pE;at(this.Yh,a.Yh);this.LM=a.LM||this.LM;this.Jw=a.wka()||this.Jw;this.yv=u(a.Wp())?a.Wp():this.yv;this.dt=a.dt||this.dt;this.Rn=a.Rn||this.Rn;this.oK=a.getImageData()||this.oK;this.UE=
a.UE||this.UE;this.eB=a.eB||this.eB;this.Nr=u(a.Nr)?a.Nr:this.Nr;this.SK=a.zq();at(this.xs,a.xs);this.Ja=a.Pc()||this.Ja;if(a.ix||this.ix)this.ix=a.ix||this.ix};q.toString=function(){return this.getName()};q.o=function(){OT.c.o.call(this);delete this.xs};var ST=function(a){F.call(this);this.lz=new L;this.mV=a};B(ST,F);ST.prototype.set=function(a,b){this.lz.set(a,b)};ST.prototype.execute=function(a,b){var c=this.lz.get(a)||this.mV;if(c)return c.apply(void 0,Array.prototype.slice.call(arguments,1))};ST.prototype.o=function(){ST.c.o.call(this);this.lz.clear();this.mV=this.lz=null};var UT=function(a){F.call(this);this.bxa=(this.Fi=null!=a&&null!=a.response)?a.response:null;this.Jp=!!a.error;this.OH=a.errorMessage;this.ma=TT++;this.nt=[];this.tf=null};B(UT,F);var TT=0;q=UT.prototype;q.tw=function(a){this.nt=a};q.mu=function(){return this.bxa};q.kc=function(){return 9};q.getError=function(){return this.Jp};q.getId=function(){return this.ma};q.dc=function(){return this.nt};q.Hza=function(a){this.Fi=a};q.mn=function(){return null!=this.tf};q.lo=function(a){this.tf=a};
q.o=function(){UT.c.o.call(this);this.nt=[]};var VT=function(a){if(a instanceof UT)return a;var b={};b.error=a.getError();b.errorMessage=a.OH;b.errorCode=a.OH;b=new UT(b);b.tw(QT(a.dc()));b.Hza(a.Fi);a.mn()&&a.tf&&b.lo(a.tf);return b},WT=new ST(function(a){return new UT(a)});var XT=function(a){UT.call(this,a);this.Fi&&(a=this.mu(),this.tw(PT(a.docs||[])))};B(XT,UT);XT.prototype.kc=function(){return 3};WT.set(3,function(a){return new XT(a)});var YT=function(a,b,c){yT.call(this);this.md=a;this.AH=b;this.Ya=c};B(YT,yT);YT.prototype.xh=As(new Ty("fetch"));YT.prototype.kc=function(){return 3};YT.prototype.getOptions=function(){return this.Ya};YT.prototype.Hf=function(){var a=new L;CT(a,Li,lv(this.AH));CT(a,nn,this.md);CT(a,dl,lv(this.Ya));return a};var ZT=function(a){UT.call(this,a);this.Fi&&(a=this.mu(),this.tw(PT(a.docs||[])),this.og=a.cursor,a.cToken&&this.lo(a.cToken))};B(ZT,UT);ZT.prototype.kc=function(){return 10};ZT.prototype.el=function(){return void 0!=this.og};WT.set(10,function(a){return new ZT(a)});var $T=function(a){UT.call(this,a);a=this.mu()||{};this.tw(PT(a.docs||[]));this.og=a.cursor};B($T,UT);$T.prototype.kc=function(){return 13};$T.prototype.el=function(){return void 0!=this.og};WT.set(13,function(a){return new $T(a)});var aU=function(a,b,c,e){yT.call(this);this.cfa=a;"c"==a&&this.tza(!0);this.Pv=b;this.ea=c;this.hE=0;this.eI=e||new jS(1023)};B(aU,yT);q=aU.prototype;q.xh=As(new Ty("ppl"));q.kc=function(){return 13};q.getQuery=function(){return this.Pv};q.getParent=function(){return this.ea};q.Hf=function(){var a=new L;CT(a,"d",this.cfa);CT(a,"q",this.Pv);CT(a,"p",this.ea);return a};q.setStart=function(a){this.hE=a};q.rw=function(a){this.og=a};var bU=function(a){yT.call(this);this.hE=a.start||0;this.wCa=a.sort||3;this.mfa=void 0==a.desc||!!a.desc;this.Pv=a.query||a.q;this.og=a.cursor;this.tf=a.continuationToken||"";this.Dva=a.queryNameOnly};B(bU,yT);q=bU.prototype;q.setStart=function(a){this.hE=a};q.getQuery=function(){return this.Pv};q.rw=function(a){this.og=a};q.lo=function(a){this.tf=a||""};
q.Hf=function(){var a=new L;CT(a,Oo,this.hE);CT(a,"numResults",50);CT(a,"sort",this.wCa);CT(a,"desc",this.mfa);CT(a,"q",this.Pv);CT(a,"qNameOnly",this.Dva);CT(a,"cursor",this.og);this.tf&&CT(a,"cToken",this.tf);return a};q.au=function(){var a=bU.c.au.call(this),b=a.zh();b.remove(Oo);b.remove("numResults");b.remove("cursor");b.remove("cToken");return a};var cU=function(a){bU.call(this,a);this.tv=a.mimeTypes;this.Dsa=a.mine;this.ea=a.parent;this.vj=a.email;var b={};b.opts=a;this.i5=b};B(cU,bU);q=cU.prototype;q.xh=As(new Ty("vr"));q.kc=function(){return 10};q.Fda=function(a){var b=this.i5.opts;if(!b)return a||{};b=Xs(b);if(a)for(var c in a)b[c]=a[c];return b};q.clone=function(a){return new cU(this.Fda(a))};q.jk=function(){return lv(this.i5)};q.getParent=function(){return this.ea};q.Ea=function(a){this.ea=a;this.cqa()};q.getEmail=function(){return this.vj};
q.Hf=function(){var a=cU.c.Hf.call(this);CT(a,jk,this.tv);CT(a,m,this.ea);CT(a,Zg,this.vj);CT(a,"mine",this.Dsa);return a};var dU=function(a){cU.call(this,a);this.l5=a.service;this.Va=a.type;this.T9=a.username;this.Ya=a.options};B(dU,cU);q=dU.prototype;q.xh=As(new Ty("pvr"));q.Hf=function(){var a=dU.c.Hf.call(this);CT(a,nn,this.l5);CT(a,tp,this.Va);this.T9&&CT(a,"userName",this.T9);CT(a,dl,lv(this.Ya));return a};q.IAa=function(a){this.l5=a};q.getType=function(){return this.Va};q.getOptions=function(){return this.Ya};q.setOption=function(a,b){this.Ya||(this.Ya={});b?this.Ya[a]=b:delete this.Ya[a]};
q.hW=function(a){this.Ya||(this.Ya={});this.Ya[a]=!0};var eU={hR:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},w$:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},
1E14:{other:"000 trillion"}}},fU=eU;fU=eU;var hU=function(a,b){var c=["0"];b=gU[b][0]&7;if(0<b){c.push(".");for(var e=0;e<b;e++)c.push("0")}return a.replace(/0.00/g,c.join(""))},gU={AED:[2,"dh","\u062f.\u0625.","DH"],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,
"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.",
"S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd","RUB"],SAR:[2,"Rial","Rial"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"TL","YTL"],TWD:[2,"NT$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var iU={DECIMAL_SEP:".",GROUP_SEP:",",xR:"%",mF:"0",uaa:"+",tR:"-",oR:"E",yR:"\u2030",eF:"\u221e",laa:"NaN",DECIMAL_PATTERN:"#,##0.###",Daa:"#E0",raa:"#,##0%",A$:"\u00a4#,##0.00",D$:"USD"},jU=iU;jU=iU;var kU=function(a,b,c){this.aqa=b;this.bfa=c||0;this.EB=40;this.Ih=1;this.Zl=0;this.tl=3;this.JB=this.bk=0;this.M7=this.Q9=!1;this.Kv=this.Vn="";this.zl=jU.tR;this.Mq="";this.Kg=1;this.In=!1;this.gn=[];this.RE=this.hV=!1;this.Ns=0;this.ZS=null;typeof a==Ik?this.Yo(a):this.kg(a)};q=kU.prototype;q.Wt=function(){return this.aqa||jU.D$};q.aAa=function(a){if(0<this.Zl&&0<a)throw Error(Xb);this.bk=a;return this};
q.Wza=function(a){if(308<a)throw Error("Unsupported maximum fraction digits: "+a);this.tl=a;return this};q.UAa=function(a){if(0<this.bk&&0<=a)throw Error(Xb);this.Zl=a;return this};q.kg=function(a){this.uC=a.replace(/ /g,"\u00a0");var b=[0];this.Vn=this.rC(a,b);var c=b[0];this.Rua(a,b);c=b[0]-c;this.Kv=this.rC(a,b);b[0]<a.length&&";"==a.charAt(b[0])?(b[0]++,1!=this.Kg&&(this.In=!0),this.zl=this.rC(a,b),b[0]+=c,this.Mq=this.rC(a,b)):(this.zl+=this.Vn,this.Mq+=this.Kv)};
q.Yo=function(a){switch(a){case 1:this.kg(jU.DECIMAL_PATTERN);break;case 2:this.kg(jU.Daa);break;case 3:this.kg(jU.raa);break;case 4:this.kg(hU(jU.A$,this.Wt()));break;case 5:this.xS(1);break;case 6:this.xS(2);break;default:throw Error("Unsupported pattern type.");}};q.xS=function(a){this.Ns=a;this.kg(jU.DECIMAL_PATTERN);this.aAa(0);this.Wza(2);this.UAa(2)};
q.parse=function(a,b){b=b||[0];if(0!=this.Ns)throw Error("Parsing of compact numbers is unimplemented");a=a.replace(/ /g,"\u00a0");var c=a.indexOf(this.Vn,b[0])==b[0],e=a.indexOf(this.zl,b[0])==b[0];c&&e&&(this.Vn.length>this.zl.length?e=!1:this.Vn.length<this.zl.length&&(c=!1));c?b[0]+=this.Vn.length:e&&(b[0]+=this.zl.length);if(a.indexOf(jU.eF,b[0])==b[0]){b[0]+=jU.eF.length;var f=Infinity}else f=this.Kua(a,b);if(c){if(a.indexOf(this.Kv,b[0])!=b[0])return NaN;b[0]+=this.Kv.length}else if(e){if(a.indexOf(this.Mq,
b[0])!=b[0])return NaN;b[0]+=this.Mq.length}return e?-f:f};
q.Kua=function(a,b){var c=!1,e=!1,f=!1,g=-1,h=1,l=jU.DECIMAL_SEP,p=jU.GROUP_SEP,r=jU.oR;if(0!=this.Ns)throw Error("Parsing of compact style numbers is not implemented");for(var z="";b[0]<a.length;b[0]++){var O=a.charAt(b[0]),ea=this.yX(O);if(0<=ea&&9>=ea)z+=ea,f=!0;else if(O==l.charAt(0)){if(c||e)break;z+=".";c=!0}else if(O==p.charAt(0)&&("\u00a0"!=p.charAt(0)||b[0]+1<a.length&&0<=this.yX(a.charAt(b[0]+1)))){if(c||e)break}else if(O==r.charAt(0)){if(e)break;z+="E";e=!0;g=b[0]}else if("+"==O||"-"==
O){if(f&&g!=b[0]-1)break;z+=O}else if(1==this.Kg&&O==jU.xR.charAt(0)){if(1!=h)break;h=100;if(f){b[0]++;break}}else if(1==this.Kg&&O==jU.yR.charAt(0)){if(1!=h)break;h=1E3;if(f){b[0]++;break}}else break}1!=this.Kg&&(h=this.Kg);return parseFloat(z)/h};
q.format=function(a){if(isNaN(a))return jU.laa;var b=[],c=this.Ska(null===this.ZS?a:this.ZS,a);a/=Math.pow(10,c.zH);b.push(c.prefix);var e=0>a||0==a&&0>1/a;b.push(e?this.zl:this.Vn);isFinite(a)?(a=a*(e?-1:1)*this.Kg,this.RE?this.WCa(a,b):this.bQ(a,this.Ih,b)):b.push(jU.eF);b.push(e?this.Mq:this.Kv);b.push(c.y8);return b.join("")};
q.A4=function(a){var b=Math.pow(10,this.tl),c=0>=this.Zl?Math.round(a*b):Math.round(this.B4(a*b,this.Zl,this.tl));isFinite(c)?(a=Math.floor(c/b),b=Math.floor(c-a*b)):b=0;return{I_:a,Jha:b}};
q.bQ=function(a,b,c){if(this.bk>this.tl)throw Error("Min value must be less than max value");c||(c=[]);a=this.A4(a);var e=a.I_,f=a.Jha,g=0==e?0:this.KA(e)+1,h=0<this.bk||0<f||this.M7&&g<this.Zl;a=this.bk;h&&(a=this.M7&&0<this.Zl?this.Zl-g:this.bk);var l="";for(g=e;1E20<g;)l="0"+l,g=Math.round(g/10);l=g+l;var p=jU.DECIMAL_SEP;g=jU.mF.charCodeAt(0);var r=l.length,z=0;if(0<e||0<b){for(e=r;e<b;e++)c.push(String.fromCharCode(g));if(2<=this.gn.length)for(b=1;b<this.gn.length;b++)z+=this.gn[b];b=r-z;if(0<
b){e=this.gn;z=r=0;for(var O,ea=jU.GROUP_SEP,qa=l.length,ac=0;ac<qa;ac++)if(c.push(String.fromCharCode(g+1*Number(l.charAt(ac)))),1<qa-ac)if(O=e[z],ac<b){var me=b-ac;(1===O||0<O&&1===me%O)&&c.push(ea)}else z<e.length&&(ac===b?z+=1:O===ac-b-r+1&&(c.push(ea),r+=O,z+=1))}else{b=l;l=this.gn;e=jU.GROUP_SEP;O=b.length;ea=[];for(r=l.length-1;0<=r&&0<O;r--){z=l[r];for(qa=0;qa<z&&0<=O-qa-1;qa++)ea.push(String.fromCharCode(g+1*Number(b.charAt(O-qa-1))));O-=z;0<O&&ea.push(e)}c.push.apply(c,ea.reverse())}}else h||
c.push(String.fromCharCode(g));(this.hV||h)&&c.push(p);f=String(f);h=f.split("e+");2==h.length&&(f=String(this.B4(parseFloat(h[0]),this.Zl,1)),f=f.replace(".",""),f+=yr("0",parseInt(h[1],10)-f.length+1));this.tl+1>f.length&&(f="1"+yr("0",this.tl-f.length)+f);for(h=f.length;"0"==f.charAt(h-1)&&h>a+1;)h--;for(e=1;e<h;e++)c.push(String.fromCharCode(g+1*Number(f.charAt(e))))};
q.dS=function(a,b){b.push(jU.oR);0>a?(a=-a,b.push(jU.tR)):this.Q9&&b.push(jU.uaa);a=""+a;for(var c=jU.mF,e=a.length;e<this.JB;e++)b.push(c);b.push(a)};q.wja=function(a,b){var c=Math.pow(10,b);if(isFinite(c)&&0!==c)return a/c;c=Math.pow(10,Math.floor(b/2));a=a/c/c;1==b%2&&(a=0<b?a/10:10*a);return a};
q.WCa=function(a,b){if(0==a)this.bQ(a,this.Ih,b),this.dS(0,b);else{var c=Math.log(a)/Math.log(10);C(!u(void 0)||!1);c=Math.floor(c+2E-15);a=this.wja(a,c);var e=this.Ih;if(1<this.EB&&this.EB>this.Ih){for(;0!=c%this.EB;)a*=10,c--;e=1}else 1>this.Ih?(c++,a/=10):(c-=this.Ih-1,a*=Math.pow(10,this.Ih-1));this.bQ(a,e,b);this.dS(c,b)}};q.yX=function(a){a=a.charCodeAt(0);if(48<=a&&58>a)return a-48;var b=jU.mF.charCodeAt(0);return b<=a&&a<b+10?a-b:-1};
q.rC=function(a,b){for(var c="",e=!1,f=a.length;b[0]<f;b[0]++){var g=a.charAt(b[0]);if("'"==g)b[0]+1<f&&"'"==a.charAt(b[0]+1)?(b[0]++,c+="'"):e=!e;else if(e)c+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return c;case "\u00a4":if(b[0]+1<f&&"\u00a4"==a.charAt(b[0]+1))b[0]++,c+=this.Wt();else switch(this.bfa){case 0:c+=gU[this.Wt()][1];break;case 2:g=this.Wt();var h=gU[g];c+=g==h[1]?g:g+" "+h[1];break;case 1:c+=gU[this.Wt()][2]}break;case "%":if(!this.In&&1!=this.Kg)throw Error(Jd);
if(this.In&&100!=this.Kg)throw Error(Kc);this.Kg=100;this.In=!1;c+=jU.xR;break;case "\u2030":if(!this.In&&1!=this.Kg)throw Error(Jd);if(this.In&&1E3!=this.Kg)throw Error(Kc);this.Kg=1E3;this.In=!1;c+=jU.yR;break;default:c+=g}}return c};
q.Rua=function(a,b){for(var c=-1,e=0,f=0,g=0,h=-1,l=a.length,p=!0;b[0]<l&&p;b[0]++)switch(a.charAt(b[0])){case "#":0<f?g++:e++;0<=h&&0>c&&h++;break;case "0":if(0<g)throw Error('Unexpected "0" in pattern "'+a+'"');f++;0<=h&&0>c&&h++;break;case ",":0<h&&this.gn.push(h);h=0;break;case ".":if(0<=c)throw Error('Multiple decimal separators in pattern "'+a+'"');c=e+f+g;break;case "E":if(this.RE)throw Error('Multiple exponential symbols in pattern "'+a+'"');this.RE=!0;this.JB=0;b[0]+1<l&&"+"==a.charAt(b[0]+
1)&&(b[0]++,this.Q9=!0);for(;b[0]+1<l&&"0"==a.charAt(b[0]+1);)b[0]++,this.JB++;if(1>e+f||1>this.JB)throw Error('Malformed exponential pattern "'+a+'"');p=!1;break;default:b[0]--,p=!1}0==f&&0<e&&0<=c&&(f=c,0==f&&f++,g=e-f,e=f-1,f=1);if(0>c&&0<g||0<=c&&(c<e||c>e+f)||0==h)throw Error('Malformed pattern "'+a+'"');a=e+f+g;this.tl=0<=c?a-c:0;0<=c&&(this.bk=e+f-c,0>this.bk&&(this.bk=0));this.Ih=(0<=c?c:a)-e;this.RE&&(this.EB=e+this.Ih,0==this.tl&&0==this.Ih&&(this.Ih=1));this.gn.push(Math.max(0,h));this.hV=
0==c||c==a};var lU={prefix:"",y8:"",zH:0};kU.prototype.IY=function(a,b){var c=1==this.Ns?fU.hR:fU.w$;null==c&&(c=fU.hR);if(3>a)return lU;a=Math.min(14,a);var e=c[Math.pow(10,a)];for(--a;!e&&3<=a;)e=c[Math.pow(10,a)],a--;if(!e)return lU;b=e[b];return b&&"0"!=b?(b=/([^0]*)(0+)(.*)/.exec(b))?{prefix:b[1],y8:b[3],zH:a+1-(b[2].length-1)}:lU:lU};
kU.prototype.Ska=function(a){if(0==this.Ns)return lU;a=Math.abs(a);var b=this.IY(1>=a?0:this.KA(a),gl).zH;return this.IY(b+this.KA(this.A4(a/Math.pow(10,b)).I_),gl)};kU.prototype.KA=function(a){if(!isFinite(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b};kU.prototype.B4=function(a,b,c){if(!a)return a;b=b-this.KA(a)-1;if(b<-c)return c=Math.pow(10,c),Math.round(a/c)*c;c=Math.pow(10,b);return Math.round(a*c)/c};var mU=function(a){return 1==a%10&&11!=a%100?"one":2==a%10&&12!=a%100?"two":3==a%10&&13!=a%100?"few":gl},nU=mU;nU=mU;var oU=function(a,b){if(void 0===b){b=a+"";var c=b.indexOf(".");b=Math.min(-1==c?0:b.length-c-1,3)}return 1==(a|0)&&0==b?"one":gl},pU=oU;pU=oU;var tU=function(a){this.uC=a;this.tC=this.Wj=this.yK=null;a=jU;var b=fU;if(qU!==a||rU!==b)qU=a,rU=b,sU=new kU(1);this.sM=sU},qU=null,rU=null,sU=null,uU=/'([{}#].*?)'/g,vU=/''/g;q=tU.prototype;q.format=function(a){return this.sI(a,!1)};q.Bf=function(a){return this.sI(a,!0)};
q.sI=function(a,b){this.IA();if(!this.tC||0==this.tC.length)return"";this.Wj=rs(this.yK);var c=[];this.rI(this.tC,a,b,c);a=c.join("");for(b||C(-1==a.search("#"),"Not all # were replaced.");0<this.Wj.length;)a=a.replace(this.XF(this.Wj),this.Wj.pop());return a};
q.rI=function(a,b,c,e){for(var f=0;f<a.length;f++)switch(a[f].type){case 4:e.push(a[f].value);break;case 3:var g=a[f].value;this.zha(g,b,e);break;case 2:g=a[f].value;this.yha(g,b,c,e);break;case 0:g=a[f].value;this.cX(g,b,pU,c,e);break;case 1:g=a[f].value;this.cX(g,b,nU,c,e);break;default:Or("Unrecognized block type: "+a[f].type)}};q.zha=function(a,b,c){b=b[a];u(b)?(this.Wj.push(b),c.push(this.XF(this.Wj))):c.push(Nd+a)};
q.yha=function(a,b,c,e){var f=a.Ox;u(b[f])?(f=a[b[f]],u(f)||(f=a.other,Tr(f,"Invalid option or missing other option for select block.")),this.rI(f,b,c,e)):e.push(Nd+f)};
q.cX=function(a,b,c,e,f){var g=a.Ox,h=a.yS,l=+b[g];isNaN(l)?f.push("Undefined or invalid parameter - "+g):(h=l-h,g=a[b[g]],u(g)||(C(0<=h,"Argument index smaller than offset."),c=this.sM.Aja?c(h,this.sM.Aja()):c(h),Qr(c,"Invalid plural key."),g=a[c],u(g)||(g=a.other),Tr(g,"Invalid option or missing other option for plural block.")),a=[],this.rI(g,b,e,a),b=a.join(""),Qr(b,"Empty block in plural."),e?f.push(b):(e=this.sM.format(h),f.push(b.replace(/#/g,e))))};
q.IA=function(){if(this.uC){this.yK=[];var a=this.Ypa(this.uC);this.tC=this.sC(a);this.uC=null}};q.Ypa=function(a){var b=this.yK,c=y(this.XF,this);a=a.replace(vU,function(){b.push("'");return c(b)});return a=a.replace(uU,function(a,f){b.push(f);return c(b)})};
q.dz=function(a){var b=0,c=[],e=[],f=/[{}]/g;f.lastIndex=0;for(var g;g=f.exec(a);){var h=g.index;"}"==g[0]?(g=c.pop(),C(u(g)&&"{"==g,"No matching { for }."),0==c.length&&(g={type:1},g.value=a.substring(b,h),e.push(g),b=h+1)):(0==c.length&&(b=a.substring(b,h),""!=b&&e.push({type:0,value:b}),b=h+1),c.push("{"))}C(0==c.length,"There are mismatched { or } in the pattern.");b=a.substring(b);""!=b&&e.push({type:0,value:b});return e};
var wU=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,xU=/^\s*(\w+)\s*,\s*selectordinal\s*,/,yU=/^\s*(\w+)\s*,\s*select\s*,/;q=tU.prototype;q.Jua=function(a){return wU.test(a)?0:xU.test(a)?1:yU.test(a)?2:/^\s*\w+\s*/.test(a)?3:5};
q.sC=function(a){var b=[];a=this.dz(a);for(var c=0;c<a.length;c++){var e={};if(0==a[c].type)e.type=4,e.value=a[c].value;else if(1==a[c].type)switch(this.Jua(a[c].value)){case 2:e.type=2;e.value=this.Nua(a[c].value);break;case 0:e.type=0;e.value=this.Mua(a[c].value);break;case 1:e.type=1;e.value=this.Lua(a[c].value);break;case 3:e.type=3;e.value=a[c].value;break;default:Or("Unknown block type for pattern: "+a[c].value)}else Or("Unknown part of the pattern.");b.push(e)}return b};
q.Nua=function(a){var b="";a=a.replace(yU,function(a,c){b=c;return""});var c={};c.Ox=b;a=this.dz(a);for(var e=0;e<a.length;){var f=a[e].value;Qr(f,"Missing select key element.");e++;C(e<a.length,"Missing or invalid select value element.");if(1==a[e].type)var g=this.sC(a[e].value);else Or(Cc);c[f.replace(/\s/g,"")]=g;e++}Tr(c.other,"Missing other key in select statement.");return c};
q.Mua=function(a){var b="",c=0;a=a.replace(wU,function(a,e,f){b=e;f&&(c=parseInt(f,10));return""});var e={};e.Ox=b;e.yS=c;a=this.dz(a);for(var f=0;f<a.length;){var g=a[f].value;Qr(g,"Missing plural key element.");f++;C(f<a.length,"Missing or invalid plural value element.");if(1==a[f].type)var h=this.sC(a[f].value);else Or(Cc);e[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;f++}Tr(e.other,"Missing other key in plural statement.");return e};
q.Lua=function(a){var b="";a=a.replace(xU,function(a,c){b=c;return""});var c={};c.Ox=b;c.yS=0;a=this.dz(a);for(var e=0;e<a.length;){var f=a[e].value;Qr(f,"Missing ordinal key element.");e++;C(e<a.length,"Missing or invalid ordinal value element.");if(1==a[e].type)var g=this.sC(a[e].value);else Or(Cc);c[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;e++}Tr(c.other,"Missing other key in selectordinal statement.");return c};
q.XF=function(a){C(0<a.length,"Literal array is empty.");return"\ufddf_"+(a.length-1).toString(10)+"_"};var zU=function(a,b,c){F.call(this);this.qa=a;this.Xc=b;this.Ya=c||{}},AU;B(zU,F);
var BU=["application/vnd.oasis.opendocument.graphics","image/vnd.adobe.photoshop","image/x-photoshop","application/illustrator","application/vnd.google-apps.drawing"],CU=[ve,we],DU=["image/jpeg","image/gif","image/png","image/tiff","image/bmp"],EU=[se],FU=["application/mspowerpoint",ye,ze,"application/vnd.ms-powerpoint","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.oasis.opendocument.presentation",
"application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.openxmlformats-officedocument.presentationml.template"],GU=["application/vnd.google-apps.script"],HU=["application/vnd.google-apps.drive-sdk.897606708560","application/vnd.google-apps.site"],IU=["application/msexcel",ve,Ae,Ce,"application/vnd.ms-excel","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.oasis.opendocument.spreadsheet"],JU=["application/vnd.google-apps.fusiontable"],KU=["text/plain","application/msword",te,xe,"application/vnd.ms-word","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.oasis.opendocument.text","application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.wordprocessingml.template"],LU="application/vnd.google-apps.video video/3gpp video/3gpp2 video/avi video/flv video/mp2t video/mp4 video/mp4v-es video/mpeg video/ogg video/quicktime video/webm video/x-flv video/x-m4v video/x-ms-asf video/x-ms-wm video/x-ms-wmv video/x-ms-wvx video/x-msvideo video/x-quicktime video/vnd.mts".split(" "),MU=["flat",Bi,ck];zU.prototype.fp=null;zU.prototype.Bc=null;zU.prototype.nC=null;var NU=!1,OU=!1,PU=!1;q=zU.prototype;
q.QK=function(){var a=this.getOption(Fm);return this.qa==zp&&(a==og||a==ul||a==zl||a==ym||a==Xp||"youtubebanner"==a||"youtube-channel-banner"==a)};q.RK=function(){var a=this.getOption(kl),b=this.getOption(m);return oR(this.qa)&&Gq(a)&&!a&&!b&&!this.getQuery()};q.A8=function(){return this.qa==tl||this.qa==Fh};q.LK=function(){return 15==this.getOption(Fo)&&this.qa!=Kg&&oR(this.qa)};
q.lu=function(){var a=this.fp;if(a)return a;a=this.Eia();if(!a){var b=this.getQuery(),c=this.getType();switch(this.qa){case of:var e={service:nf};AU&&(e.mine=0);a=new dU(e);break;case fg:a={service:fg};c=this.getOption(m);b?a.query=b:c&&(a.parent=c);a=new dU(a);break;case "et":a={service:"party",type:"themes"};(b=this.getOption(rf)||this.getType())&&(a.options={category:b});a=new dU(a);break;case Fh:a={options:{sortOrder:this.getOption(Go)||"p"},service:Fh,type:this.getType()};this.getOption("efsf")&&
(c=this.getOption(Eh)||"*",a.options.fontSubset=c);b&&(a.query=b);a=new dU(a);break;case Ni:if(c==Nh){a=this.yB();break}a=this.jJ();break;case Yj:a=new dU({type:this.getType(),service:"mapspro"});break;case zf:(c=this.getOption(m))&&"hem"!=this.getOption(lk)&&(a=new aU("p",void 0,c));break;case tl:switch(this.getType()){case ke:a="a";break;case Af:a="c";break;case "frequent":a="f";break;case Oh:a=this.getQuery()?"p":"g";break;case hn:a=this.getQuery()?"p":"s";break;default:a="p"}c=this.getOption("peopleFilter");
a=new aU(a,b||void 0,this.getOption(m),c?new jS(c):void 0,!!this.getOption("noEmailInput"));break;case zl:a=this.yB();break;case vl:a=c==dk?this.xB("your_collections"):this.yB();break;case xl:this.getOption(m)&&!this.getOption("che")&&(a=this.yB());break;case Jm:a=new dU({service:"recent"});break;case Wp:this.getOption(Pn)==sq?(a={},a.safe=this.getOption("safe")||de,a=new dU({service:pq,type:dn,options:a,query:b})):a=this.jJ();break;case Xp:this.getOption("rdv")&&c==Fp?a=this.xB("your_videos"):(e=
{},a=new dU({service:Al,parent:this.getOption(m),safe:this.getOption("safe"),type:"videos-"+(c||Fp),options:e}),u(this.getOption(eq))&&(e.visibilityFilter=this.getOption(eq)));break;case gq:a=this.jJ();break;case pq:e={service:pq},b?(e.query=b,e.type=dn):e.type="uploads",a=new dU(e)}}return this.fp=a};
q.Eia=function(){if(this.getOption(Uj)||this.getOption(cn)&&!this.getOption(m))return null;var a=this.getOption(Li);if(a&&oR(this.qa))return new YT(Hg,a.split(","),{});a={};var b={service:Hg,query:this.getQuery(),options:a},c=this.getOption(m),e=this.getOption(kl);if(e)a.ownedByMe=!0;else if(0==e||c==yn)a.ownedByMe=!1;b.mine=AU?0:0==AU?1:2;PU&&(a.edbe=!0);e=rc;var f=!1,g=[];switch(this.qa){case Ig:case Jg:case Kg:if(this.qa==Ig||this.qa==Jg)g=g.concat(DU);if(this.qa==Kg||this.qa==Jg)g=g.concat(LU);
this.qa==Kg&&(f=!0);if(!this.getQuery()&&!this.RK()){a.sortKey=8;a.ascending=!0;break}case ke:e="NOT_COLLECTION";break;case Mg:g=KU;break;case Tg:g=BU;break;case Ch:g=[ue];break;case Hh:g=CU;break;case sl:g=EU;break;case wm:g=FU;break;case an:g=GU;break;case Rn:g=HU;break;case Lo:g=IU;break;case Xo:g=JU;break;default:return null}var h=this.getOption(jk);h&&h&&v(h)&&(h=h.split(","));g=g.length&&h&&h.length?(new LG(g)).GK(h).nb():h||g;this.getOption(Qi)&&!f&&(e=rc,g.length&&!is(g,ue)&&(g=g.concat([ue])),
a.notInFolder=!0);if(this.getOption(No)||c==No)a.starred=!0;if(this.getOption("cmptv")||c==Nf)a.in_computers=!0;(f=this.getOption(gg))&&(a.containingCosmoId=f);g.length&&(a.mimeTypes=g.join(","),e=rc);b.type=e;c&&c!=No&&c!=yn&&c!=Zo&&c!=Nf&&(b.parent=c);if(c==Zo||this.aB())a.tdquery=!0;if(this.getOption("tdv")||this.getOption("td"))a.tdEnabled=!0;if(c=this.getOption(Fo))a.sortKey=c,8==c||7==c?a.ascending=!0:delete a.ascending;c=this.getOption("ff");Gq(c)||(c=OU);c&&(a.ff=c);this.LK()&&(b.service=
Ug);return new dU(b)};
q.yB=function(){var a=this.getType();if("gmail_themes"==a){var b=new dU({service:"static_themes"});return b}if("moment"==a)return b=new dU({parent:this.getOption(m),query:this.getQuery(),service:"stories",type:a}),this.getOption(oe)&&b.setOption(oe,Qr(this.getOption(oe))),b;b=!!this.getOption("rdv");if(is(MU,a))return this.xB("flat"==a?"your_photos":a);if(b&&a==Zp)return this.xB("your_videos");var c=this.getOption(Li);if(c)return b={},(a=this.getOption(Qp))&&(b.username=a),this.qa==vl&&(b.type=je),
new YT(Al,c.split(","),b);b={};c=b.options={};this.qa==xl&&(a="tpp");var e=this.getQuery();b.service=Al;b.type=a;b.username=this.getOption(Qp);c.excludeLabels=this.getOption("excludeLabels");a==Rj&&(c.localAlbum=this.getOption(Rj),c.localUser=this.getOption("localuser"));var f=this.getOption(m);e?b.query=e:(f&&(b.parent=f),this.getOption(oe)&&(c.allowedItemTypes=this.getOption(oe)));this.qa==vl&&(c.snippets="12");"ofuser"==a&&(a=this.getOption("userId"),null!=a&&(c.userId=a));(a=this.getOption("shapeType"))&&
(c.shapeType=a);this.getOption("excludeEvAlbums")&&(c.excludeEvAlbums=!0);u(this.getOption(eq))&&(c.visibilityFilter=this.getOption(eq));return new dU(b)};
q.xB=function(a){var b={query:this.getQuery(),service:"media",type:a},c=this.getOption(kl);if(AU||c)b.mine=0;b=new dU(b);this.getOption(oe)?b.setOption(oe,Qr(this.getOption(oe))):"your_photos"!=a&&b.setOption(oe,ul);NU&&b.setOption(bh,sp);(a=this.getOption(m))&&b.Ea(a);(a=this.getOption("ipl"))&&b.setOption("ipl",a);(a=this.getOption(Qp))&&b.setOption(Qp,a);(a=this.getOption("userId"))&&b.setOption("userId",a);return b};
q.jJ=function(){var a={service:gq},b={};b.safe=this.getOption("safe")||de;switch(this.qa){case gq:var c=new VA(this.getQuery());this.getOption(Pn)&&c.append(" site:"+this.getOption(Pn));this.getOption("inUrl")&&c.append(" inurl:"+this.getOption("inUrl"));this.getOption("cseLabel")&&c.append(" more:"+this.getOption("cseLabel"));this.na(b,"cse","cse");a.query=c.toString();a.options=b;break;case Ni:a.type=ul;"life"==this.getType()?a.query=this.getQuery()+" source:life":(a.query=this.getQuery(),this.na(b,
"imgsz","imgsz"),this.na(b,Jj,Jj),this.na(b,Pn,Pn),this.na(b,"imgc","imgc"),this.na(b,Oi,Oi),this.na(b,Pi,Pi),a.options=b);break;case Wp:a.type=Vp,this.na(b,Jj,Jj),this.na(b,Pn,Pn),a.query=this.getQuery(),a.options=b}return new dU(a)};q.Kz=function(){var a=new VA(this.qa),b=this.getQuery();ar(Ar(b))||a.append("/",encodeURIComponent(String(b)));return a.toString()};var QU=function(a,b,c){a=a.split("/");var e=a[0];return Ss(nR,e)?(c=c||{},c.query=a[1]?er(a[1]):c.query,new zU(e,b,c)):null};q=zU.prototype;
q.getType=function(){return this.getOption(tp)};
q.getName=function(){if(this.Xc)return this.Xc;if(this.getOption("td"))return"Team Drives";if(this.getOption("cmptv"))return"Computers";if(this.qa==ke||this.qa==Ig||this.qa==Jg||this.qa==Kg){var a=this.getOption(kl);if(!0===a)return"My Drive";if(!1===a)return"Shared with me";if(this.LK())return"Recent"}a=this.getType();switch(this.qa){case of:return"Calendars";case zf:return this.getOption(m)?"Edit your circle":"Create a circle";case fg:return"Contacts";case ng:return"Photo crop";case ke:return"Google Drive";
case Ig:return"Images";case Jg:return"Images and videos";case Kg:return"Videos";case Mg:return"Documents";case Tg:return"Drawings";case Ch:return"Folders";case Fh:return"Fonts";case Hh:return"Forms";case Ni:return this.getOption("comboTypes")?"Image search":"life"==a?"LIFE Photo Archive":a==Nh?"Stock photos":"Google Image Search";case Xj:return"Maps";case Yj:return"Maps Engine Lite";case sl:return"PDFs";case tl:switch(this.getType()){case Af:return"Circles";default:return"People"}case wl:return"Add text to photo";
case xl:return"Organize photos";case zl:return"banner"==a?"Cover photos":a==qh?"Featured photos":a==Nh?"Stock photos":a==pf?"Photos from phone":"flat"==a?"Your photos":"ofuser"==a?"Photos of you":a==Fp?"Uploaded photos":"Your photos";case vl:return"Photo albums";case wm:return"Presentations";case ym:return"np"==a?"No photo":"Profile photo";case "quota":return"Quota";case Jm:return"Previously selected";case an:return"Scripts";case Lo:return"Spreadsheets";case Rn:return"Sites";case Xo:return"Tables";
case yl:case zp:var b;return this.qa==yl||(b=this.QK())&&this.getQuery()!=Xp&&this.getQuery()!=og?"Upload photos":b&&this.getQuery()!=og?"Upload videos":"Upload";case Wp:return"Video search";case Xp:return a==pf?"Videos from phone":"Videos";case hq:switch(this.getType()){case Mo:return"Take a snapshot";default:return"Web camera"}case gq:return"Web search";case Mp:return"URL";case pq:return"Your YouTube videos";case rq:return"YouTube banner preview"}return""};q.Ca=function(a){return a==this.qa};
q.Pd=function(){return this.Xc};q.getOptions=function(){return this.Ya};q.getOption=function(a){return this.Ya[a]};q.ad=function(a){return!!a&&this.Ca(a.qa)&&this.getQuery()==a.getQuery()&&Os(this.getOptions())==Os(a.getOptions())&&this.getOption(m)==a.getOption(m)&&this.getType()==a.getType()&&this.getOption("id")==a.getOption("id")&&this.getOption(kl)==a.getOption(kl)&&this.getOption("td")==a.getOption("td")&&this.getOption("cmptv")==a.getOption("cmptv")};
q.clone=function(){var a=new zU(this.qa,this.Xc,Xs(this.Ya));a.$f(this.Bc);a.u6(this.Xp()||this);return a};q.Ef=function(){var a=[];RU(a,this);this.nC&&RU(a,this.nC);return a.join("/")};var RU=function(a,b){a.push(b.qa);Js(b.Ya,function(b,e){void 0!=b&&a.push(e+"="+b)})};q=zU.prototype;q.setQuery=function(a){this.fp=null;this.Aa(Fm,a)};q.getQuery=function(){return this.getOption(Fm)};q.setOptions=function(a){this.Ya=a;this.fp=null};q.Aa=function(a,b){this.Ya[a]=b;this.fp=null};
q.Js=function(a){null!=this.getOption(a)&&(delete this.Ya[a],this.fp=null)};q.$f=function(a){this.Bc=a};q.u6=function(a){this.nC=a};q.Xp=function(){return this.nC};
q.Mja=function(){switch(this.qa){case of:return"No calendars found.";case fg:return this.getQuery()?"No contacts matched your search.":"No contacts found.";case ke:case Mg:return this.getQuery()?"No items matched your search.":0==this.getOption(kl)?"No one's shared any files with you yet!":"No documents.";case Ig:return"No images.";case Jg:return"No images or videos.";case Kg:return"No videos.";case Tg:return"No drawings.";case Ch:return this.getOption(m)?"No items in this folder.":"No folders.";
case Fh:return"No fonts found.";case Hh:return"No forms.";case Ni:return"No images found.";case Xj:case Yj:return"No maps found.";case sl:return"No PDFs.";case zf:case tl:switch(this.getType()){case Af:return"No circles found.";default:return this.getOption(m)?this.getOption("peopleFilter")?"No matching people found in this circle.":"There's no one in this circle.":"No people found."}case zl:case vl:case xl:return this.getQuery()||this.getType()||this.getOption(m)?this.getType()==dk?"No albums.":
"No photos.":"No photo albums.";case wm:return"No presentations.";case Jm:return"You haven't recently picked anything!";case an:return"No scripts.";case Lo:return"No spreadsheets.";case Rn:return"No sites.";case Xo:return"No tables.";case Wp:case Xp:case pq:return"No videos found.";case gq:return"No results found.";default:return"No items matched your criteria."}};q.na=function(a,b,c){c=this.getOption(c);u(c)&&(a[b]=c)};q.jk=function(){return[this.qa,this.Xc,this.Ya]};
q.aB=function(){return!(!this.getOption("td")||this.getOption(m)||this.getQuery())};q.o=function(){zU.c.o.call(this);delete this.qa;delete this.Xc;delete this.Ya};var SU=["opl","opr","opdr",Zk,$k,Yk,"opu","opv","opm","opmd"],TU=function(a,b){if(b.Dd()){if(!oR(a.qa))throw Error("Minimal UI only supports docs folder picker.");return"opmd"}var c=a.getOption(lk);switch(a.qa){case "et":case Ni:case vl:case wl:case ym:case "quota":case rq:return Yk;case zl:b=a.getOption(m);var e=a.getOption(tp);return e==Zp||e==Yp?"opv":a.getOption(zp)||"edit"==c&&(b||a.getOption(Li))?$k:Yk;case xl:case yl:case hq:return $k;case ng:return"opr";case zp:return a.QK()?$k:"opu";case Wp:case Xp:case pq:return"opv";
case Xj:case Yj:return"opm";case of:return"opl";case zf:case fg:case tl:return Zk;case Jm:if(c==zl)return Yk;if(c==Xp)return"opv"}return oR(a.qa)?a.Ca(Kg)&&c!=Kj&&!a.aB()?"opv":b.Om?"opdr":Yk:"opc"};var UU=function(){J.call(this);this.Nl=new pK;this.Gga={}};B(UU,J);q=UU.prototype;q.qw=function(a){this.P=a;this.A().listen(this.P.ce,pn,this.Tza);this.A().listen(this.P.ce,qn,this.Uza)};q.A=function(){this.G||(this.G=new jC(this));return this.G};q.Uza=function(a){a=a.data.maxSizeBytes;if(this.DY()<=a)this.P.v.FD(a);else throw Error("Selection must be cleared before setting new size cap.  (Or cap was never initialized.)");};
q.Tza=function(a){a=a.data.maxItems;if(this.CY()<=a)this.P.v.zw(a);else throw Error("Selection must be cleared before setting new items cap. (Or cap was never initialized.)");};q.P5=function(a){this.eI=a};q.Xya=function(){};q.E6=function(a,b,c,e){if(b==this.Rd(a))return!1;b?this.IN(a,c):this.fH(a);e&&this.dispatchEvent(new VU(b,[a]));return!0};q.xg=function(a){var b=this.eI,c=this.Nl.bb();return b&&!a?b(c):c};
q.MD=function(a,b){var c=[];Bv(a,function(a){b!=this.Rd(a)&&c.push(a)},this);Bv(c,function(a){b?this.IN(a,"cb"):this.fH(a)},this);0<c.length&&this.dispatchEvent(new VU(b,c));return!0};q.Ak=function(a){this.MD(this.xg(a),!1)};q.ax=function(a,b){var c=this.Nl;c.Xb(a)?(this.fH(a),this.dispatchEvent(new VU(!1,[a]))):("cl"==b&&(b=c.bb(),this.ofa(),b.length&&this.dispatchEvent(new VU(!1,b))),this.IN(a),this.dispatchEvent(new VU(!0,[a])));return!0};q.IN=function(a,b){this.Nl.set(a,b)};q.fH=function(a){this.Nl.remove(a)};
q.ofa=function(){this.Nl.clear()};q.CY=function(){return this.xg().length};q.DY=function(){var a=this.xg(),b=0,c=this.P.ba;Bv(a,function(a){(a=c.K(a).Nr)&&(b+=a)},this);return b};q.Rd=function(a){return this.Nl.Xb(a)};q.jEa=function(){this.dispatchEvent("y")};q.o=function(){UU.c.o.call(this);this.Nl.clear();delete this.Nl;delete this.eI};var VU=function(a,b){H.call(this,"x");this.selected=a;this.Rc=b};B(VU,H);var WU=function(a,b){V.call(this,b);this.P=a};B(WU,V);WU.prototype.getContext=function(){return this.P};WU.prototype.Ka=function(a){WU.c.Ka.call(this,a);a.id&&this.BD(a.id)};var XU=function(a,b){WU.call(this,a,b);this.A().listen(a.ce,dq,this.FJ)};B(XU,WU);q=XU.prototype;q.Wa=!1;q.setActive=function(a){this.Wa!=a&&(this.Wa=a,this.V&&this.C(a))};q.C=function(a){R(this.b(),a)};q.tc=function(){return!1};q.Tg=function(){};q.Rp=function(){return new LG};q.Bz=function(){return-1};q.kk=function(){return!1};q.FJ=function(a){a.data.visible&&this.Wa&&this.kk()};q.tS=function(a,b,c,e){e()};q.q8=Jq;q.Qp=Cs;q.Ri=function(a){var b=this.getContext().Gh,c=this.Qp();b&&c&&b.Ri(c,a)};
q.ji=function(a){var b=this.getContext().Gh,c=this.Qp();b&&c&&b.ji(c,a)};var YU=function(a,b,c,e,f,g){XU.call(this,a,g);this.kxa=b;this.Kha=c;this.Vda=e;this.uI=f;CS().Ge()&&(f==Ij?f=Pm:f==Pm&&(f=Ij));this.tI=f;this.fX=[];this.sy=[];this.Pb=this.Sa=null;this.Cb=!0;this.gb=null;this.jU="0"};B(YU,XU);q=YU.prototype;q.J=function(){return this.Pb};
q.g=function(){var a=this.j(),b=this.Sa=a.g(d,{className:function(a){switch(a){case op:return"picker-framepane-top";case lf:return"picker-framepane-bottom";case Ij:return"picker-framepane-left";case Pm:return"picker-framepane-right"}return""}(this.uI)+" "+this.Kha}),c=this.Pb=a.g(d,{className:"picker-framepane-content "+this.Vda});D(this.sy,function(a){a.g();c.appendChild(a.b())});var e=this.uI==lf||this.uI==Pm;a=a.g(d,{className:"picker-framepane-root "+this.kxa},e?c:b,e?b:c);this.Na(a)};
q.B=function(){this.CQ();YU.c.B.call(this)};q.ps=function(a,b){this.ca(a);this.fX.push(a);b&&a.render(this.Sa)};q.Se=function(a){this.ca(a);this.sy.push(a)};q.removeChild=function(a,b){b=YU.c.removeChild.call(this,a,b);os(this.sy,a);return b};q.T5=function(a){var b=this.b();b&&fC(b,"picker-framepane-hidden",!a);this.Sa&&this.Cb!=a&&(this.Cb=a,this.w7(a),a=a?this.jU:0,E&&!Qt(7)?Q(this.b(),nl+this.tI,a):Q(this.Pb,this.tI,a))};q.w7=function(a){R(this.Sa,a)};q.xb=function(a){this.gb=a;this.V&&this.CQ()};
q.Ae=function(){return this.gb};q.CQ=function(){var a=this.gb,b=this.tI,c=b==op||b==lf,e=E&&!Qt(7),f=this.Sa,g=kA(f);if(isNaN(g.top))M(y(this.CQ,this),200);else{g=c?g.top+g.bottom:g.left+g.right;if(0<a||this.getContext().v.Dd()&&0==a){var h=(e?a+g:a)+n;c?f.style.height=h:f.style.width=h}else 0==a&&Q(f,"padding",0);h=0;a&&(h=a+g,e||(a=Rz(f),h+=c?a.top+a.bottom:a.left+a.right));this.jU=h+=n;e?Q(this.b(),nl+b,h):Q(this.Pb,b,h)}};q.o=function(){YU.c.o.call(this);this.sy=this.fX=null};var ZU=function(){J.call(this)};B(ZU,J);q=ZU.prototype;q.ac=null;q.Vb=null;q.Efa=function(a){this.dispatchEvent(new $U("F",a))};q.Bfa=function(a){this.dispatchEvent(new $U("A",a))};q.Kb=function(a,b){this.dispatchEvent(new aV(a,b))};q.nw=function(a,b){this.ac=a;this.Vb=b;this.dispatchEvent(new bV(b))};q.q5=function(a){this.dispatchEvent(new cV(a))};q.o=function(){ZU.c.o.call(this);this.Vb=null};var $U=function(a,b,c){H.call(this,a,c);this.bx=b};B($U,H);
var aV=function(a,b,c){$U.call(this,"B",a,c);this.wfa=b};B(aV,$U);var cV=function(a){H.call(this,"D");this.Xca=a};B(cV,H);var bV=function(a){H.call(this,"C");this.TEa=a};B(bV,H);var dV=function(a){return!!a&&!!a.getOption(m)&&Yq(a.getOption(m),"newFolderId")};var eV=function(a,b){(a=b.getOption(m))||b.getOption("cv")||(a=Sm);return a},fV=function(a,b){return(b=eV(a,b))?a.ba.K(b,Hg):null},gV=function(a,b,c,e){var f=a.ba.K(c,Hg);f?e(a,b,f):a.ba.requestData(new YT(Ug,[c],{isMinimalMode:!0}),function(c){e(a,b,c.dc()[0])},Jq,!0)},hV=function(a,b,c){var e=a.vb.Xp().getOption(m),f=[];b.getOption("ops")&&(f=b.getOption("ops").split(","));b=f;e&&(b=b.concat(e));e=as(b,function(b){var c=RT(Hg,"0",b);return b==Sm&&(b=a.ba.K(c))?b.getId():c});return is(e,c)},jV=function(a,
b){var c=iV(a,b);return c?c:b.getOption(cn)&&!b.getOption(m)||b.getOption(Uj)?null:fV(a,b)},iV=function(a){var b=a.Ma.xg();return ks(b)?null:(C(1==b.length,"Only one doc should be selected"),a.ba.K(b[0]))},kV=function(a,b,c,e,f){a.U(b);b=a.b();kF(b,c,e);f&&OB(a.b(),Cj)},lV=function(a){return ks(a.Ma.xg())?"Add here":Ib},mV=function(a,b){kF(a,b,void 0);OB(a,Cj)},nV=new OT({serviceId:Hg,name:"Team Drives",id:Zo,mimeType:ue});var oV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Very few items selected. Please select more.}male{Very few items selected. Please select more.}other{Very few items selected. Please select more.}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};oV.ra="picker.ui.templates.messages.lackItemsSelected";
var pV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Back}male{Back}other{Back}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)},qV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Close}male{Close}other{Close}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)},rV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Open folder in a new tab}male{Open folder in a new tab}other{Open folder in a new tab}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};var tV=function(a,b,c){b=c||b;return yF(yb+X(a.Rc.Waa)+ma+X("picker-title-container")+ua+W(fG({id:a.Rc.BACK,style:4,content:DF(vb+(a.Ge?X("picker-sspr-minpicker-forward-button"):X("picker-sspr-minpicker-back-button"))+" "+X(Ll)+wa),Fo:!0,title:CF(""+pV(null,null,b)),attributes:EF(Ue+X(pV(null,null,b))+na)},null,b))+yb+X(a.Rc.T$)+ma+X(Ll)+" "+X("picker-sspr-drive-logo-black")+'"></div><div id="'+X(a.Rc.M$)+'" role="status" aria-live="polite" class="'+X("picker-header-folder")+'"><div id="'+X(a.Rc.pR)+
'" role="heading" class="'+X("picker-header-folder-name")+'" data-tooltip-only-on-overflow="true" data-tooltip-unhoverable="true"></div>'+W(fG({id:a.Rc.L$,style:4,content:DF(vb+X(Ll)+" "+X("picker-sspr-open-link")+wa),Fo:!0,title:CF(""+rV(null,null,b)),attributes:EF(Ue+X(rV(null,null,b))+'" data-tooltip-unhoverable="true" style="display:none;"')},null,b))+'</div><input id="'+X(a.Rc.paa)+ma+X("picker-title-new-folder-input")+sa+X("picker-title-new-folder-btn")+ua+W(fG({id:a.Rc.oaa,style:2,content:DF(vb+
X("picker-spr-white-checkmark")+wa),Fo:!0,title:CF(""+sV(null,null,b)),attributes:EF(Ue+X(sV(null,null,b))+'"'),width:1},null,b))+'</div></div><div class="'+X(Kl)+ua+W(fG({id:a.Rc.gR,style:4,content:DF(vb+X(fm)+wa),Fo:!0,title:CF(""+qV(null,null,b)),attributes:EF(Ue+X(qV(null,null,b))+na)},null,b))+lb)};tV.ra="picker.ui.minimal.template.title";
var vV=function(a,b,c){b=c||b;return yF(yb+X(a.Rc.ERROR)+ma+X("picker-min-footer-error")+xa+X("picker-min-footer-ok-button")+ua+W(fG({id:a.Rc.wR,style:2,Fo:!1},null,b))+'</div><div class="'+X("picker-min-footer-new-folder-button")+ua+W(fG({id:a.Rc.naa,style:0,width:1,content:DF(vb+X("picker-sspr-folder-new")+wa),Fo:!0,title:CF(""+uV(null,null,b)),attributes:EF(Ue+X(uV(null,null,b))+na)},null,b))+lb)};vV.ra="picker.ui.minimal.template.footer";
var uV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{New Folder}male{New Folder}other{New Folder}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};uV.ra="picker.ui.minimal.template.newFolderLabel";
var sV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Create folder}male{Create folder}other{Create folder}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)},wV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Creating {FOLDER_NAME} failed.}male{Creating {FOLDER_NAME} failed.}other{Creating {FOLDER_NAME} failed.}}")).Bf({VIEWER_GENDER:b.fh,FOLDER_NAME:""+a.bha});return AF(""+a)};wV.ra="picker.ui.minimal.template.folderErrorMsg";
var xV=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{{NUM_ITEMS,plural,=1{File is already in a Team Drive. You can't add it to My Drive.}other{Some files are already in Team Drives. You can't add them to My Drive.}}}male{{NUM_ITEMS,plural,=1{File is already in a Team Drive. You can't add it to My Drive.}other{Some files are already in Team Drives. You can't add them to My Drive.}}}other{{NUM_ITEMS,plural,=1{File is already in a Team Drive. You can't add it to My Drive.}other{Some files are already in Team Drives. You can't add them to My Drive.}}}}")).Bf({VIEWER_GENDER:b.fh,NUM_ITEMS:a.oM});
return AF(""+a)};xV.ra="picker.ui.minimal.template.cantAddFromTeamDrives";var yV=function(a,b){YU.call(this,a,"picker-min-footer-root","picker-min-footer-frame","picker-min-footer-content",lf,b)};B(yV,YU);q=yV.prototype;q.g=function(){yV.c.g.call(this);var a={};a.Rc=this.o1(zV);a=this.getContext().vi().R3(vV,a);this.Sa.appendChild(a);this.xb(29);this.Jn=this.getContext().vi().Kl(uV)};
q.B=function(){yV.c.B.call(this);this.He=new hG(null);this.He.R(this.Fj("__mp-fo"));this.Y(this.He);this.Kh=new hG(null);this.Kh.R(this.Fj("__mp-fnf"));this.Y(this.Kh);this.wj=new AQ(null,this.j());this.wj.Ne("warning");this.wj.m6(!0);this.wj.render(this.Fj("__mp-fe"));this.Y(this.wj);this.A().listen(this.getContext().X,"F",this.NJ).listen(this.getContext().Ma,"x",this.zu).listen(this.He,k,this.hna).listen(this.Kh,k,this.gna)};
q.uoa=function(){this.LO();this.He.Dr(this.getContext().v.hh&&!this.getContext().X.Vb.getOption(Uj)?1:2);var a=this.getContext(),b=a.X.Vb;if(b){var c=jV(a,b);this.FB(a,b,c)}};q.NJ=function(){var a=this.getContext(),b=C(a.X.Vb);this.LO();var c=null;b.getOption(Uj)||b.getOption(cn)&&!b.getOption(m)||(c=eV(a,b));this.Kh.C(!!c&&!!b.getOption("createFolder")&&c!=Zo);var e=jV(a,b);e||dV(b)||!c||b.getOption("sodc")?this.FB(a,b,e):(c=y(this.FB,this),e=b.getOption(m)||Sm,gV(a,b,e,c));b.ad(this.vga)||this.wj.C(!1)};
q.LO=function(){var a=this.getContext().X.Vb;if(a&&!a.getOption("sodc"))if(a.getOption(Uj)){a=a.getOption("idto");var b=0;v(a)&&(b=a.split(",").length);a=(new tU("{numIds, plural, =0 {unused plural form}=1 {Move this item}other {Move these items}}")).format({numIds:b});this.He.eb(a)}else this.getContext().v.hh?this.He.eb(lV(this.getContext())):this.He.eb(AV(this.getContext(),a))};q.zu=function(){var a=this.getContext(),b=C(a.X.Vb);this.LO();this.FB(a,b,jV(a,b))};
q.hna=function(){var a=this.getContext(),b=C(a.X.Vb);if(b.getOption(Uj))b=b.clone(),a.ba.nc(78),b.Js(Uj),a.X.Kb(b);else if(b.getOption("cv")){if(b.getOption("cv")){var c;(c=b.getOption("cv"))&&x(c)&&c[0]?(c=QU(c[0],c[1],c[2]),c.$f(b)):c=null;if(c){var e=iV(a,b);if(e){if(c&&e){b=c.clone();var f="_addItemId_"==e.jb;f?b.Js(m):e.getId()&&b.Aa(m,e.jb);f&&(b.Aa("sblovs","Add here"),b.Aa("sblois",Ib));e=b.getOption("ops");f=c.Bc.getOption("items");v(e)&&v(f)&&(e=e.split(",").concat(f.split(",")),vs(e),b.Aa("ops",
e.join(",")));c=c.Bc.getOption("idto");v(c)&&b.Aa("idto",c);b.u6(b)}else b=null;a.X.Kb(b)}}}}else{if(c=b)a:{e=b.getOption("sfcm");if((c=jV(a,b))&&c.jb!=No&&(e||c.jb!=yn)&&c.jb!=Zo&&(a.v.hh&&c.setAttribute("rpt",""),e=b.getOption("drois"),b.getOption("sp")||!(hV(a,b,c.getId())||e&&c&&c.getAttribute("ro")))&&(b.getOption("ers")||!c.Cq())){b=a.Ma;b.Ak(!0);b.E6(c.getId(),!0,"cl",!0);a.vb.rQ(!0);c=!0;break a}c=!1}c||this.getContext().vb.Vi()}};
q.gna=function(){var a=this.getContext(),b=a.X,c=b.Vb;if(c){var e=iV(a,c);a=c.clone();var f=c.getOption(m);e&&(f=e.jb);a.$f(c);c="newFolderId";f&&(c+=f);a.Aa(m,c);b.Kb(a)}};q.TBa=function(a,b){this.vga=b;this.wj.eb(a);this.wj.C(!0);M(function(){this.wj.N()&&this.wj.C(!1)},1E4,this)};
var AV=function(a,b){var c=fV(a,b);if(c&&c.Cq()&&!b.getOption("ers"))return"Done";c=b.getOption("mbl");if(v(c))return c;if(ks(a.Ma.xg()))c=b.getOption("sblovs");else{if((c=iV(a,b))&&"_addItemId_"==c.jb)return"Add new location";c=b.getOption("sblois")}return v(c)?c:a.v.bn()};
yV.prototype.FB=function(a,b,c){if(dV(b)||b.getOption("cv")&&!c||b.getOption("sodc"))kV(this.He,!1,"","",!0),kV(this.Kh,!1,this.Jn);else{var e=b.getOption("sfcm"),f=!!b.getOption(cn)&&!b.getOption(Uj)&&!b.getOption(m)&&(!c||!c.Cq()&&!b.getOption("scm"));e=c&&(c.jb==No||c.jb==Zo||!e&&c.jb==yn);f||e?(kV(this.He,!1,Id,"",!0),kV(this.Kh,!1,this.Jn)):b&&c&&hV(a,b,c.getId())?(kV(this.He,!1,"Item is already in this folder","",!0),!c.getAttribute("tdid")||c.getAttribute("tdcac")?kV(this.Kh,!0,this.Jn):kV(this.Kh,
!1,this.Jn)):c&&c.getAttribute("ro")&&!b.getOption(Uj)?(b&&b.getOption("drois")&&kV(this.He,!1,Hd,"",!0),kV(this.Kh,!1,Hd,this.Jn)):c&&c.jb==Zo&&!b.getOption("scm")||this.getContext().v.hh&&c.getAttribute("tdid")?kV(this.He,!1,this.getContext().v.hh?"Files can't be added to Team Drive, they must be moved":Id,"",!0):b.getOption(m)==Nf||c&&c.getAttribute("icr")?(kV(this.He,!1,this.getContext().v.hh?"Files can't be added to Computers":Id,"",!0),kV(this.Kh,!1,this.Jn)):this.getContext().v.hh&&this.getContext().Bi.xua?
(a=b.getOption("idto"),b=0,v(a)&&(b=a.split(",").length),a=this.getContext().vi().Kl(xV,{oM:b}),kV(this.He,!1,a,"",!0)):(kV(this.He,!0,""),kV(this.Kh,!0,this.Jn))}};var zV={ERROR:"__mp-fe",naa:"__mp-fnf",wR:"__mp-fo"};var BV=function(a){UT.call(this,a);this.Fi&&(a=this.mu(),this.tw(PT(a.docs||[])))};B(BV,UT);BV.prototype.kc=function(){return 5};WT.set(5,function(a){return new BV(a)});var CV=function(a,b,c,e){yT.call(this);this.uua=a;this.md=b;this.AH=c;this.Ya=e};B(CV,yT);q=CV.prototype;q.xh=As(new Ty("mutate"));q.kc=function(){return 5};q.getOptions=function(){return this.Ya};q.Hf=function(){var a=new L;CT(a,Li,lv(this.AH));CT(a,nn,this.md);CT(a,"operation",this.uua);CT(a,dl,lv(this.Ya));return a};q.au=function(){var a=CV.c.au.call(this);a.T("requestid",this.getId());return a};var DV=function(a,b){YU.call(this,a,"picker-min-title-root","picker-min-title-frame","picker-min-title-content",op,b);this.zU=!1;this.rb=new MC;this.PM=this.zv=this.lt=this.Bl=null;this.Y(this.rb)};B(DV,YU);q=DV.prototype;q.qza=function(a){this.Aj=a};q.gA=function(){this.Aj.uoa();fC(this.b(),"picker-minimal-add-mode",this.getContext().v.hh&&!this.getContext().X.Vb.getOption(Uj))};
q.g=function(){DV.c.g.call(this);var a={};a.Rc=this.o1(EV);a.Ge=CS().Ge();a=this.getContext().vi().R3(tV,a);this.Sa.appendChild(a);this.xb(48);this.getContext().v.Hn&&U(this.b(),Rl)};
q.B=function(){DV.c.B.call(this);this.Ch=this.Fj("__mp-ti");this.Um=this.Fj("__mp-tfn");this.oz=this.Fj("__mp-tfnc");this.mj=this.vy("__mp-tc");this.Y(this.mj);this.xk=this.vy("__mp-tb");this.Y(this.xk);this.Ot=this.vy("__mp-tfl");this.Y(this.Ot);this.ee=this.Fj("__mp-tnfi");this.rb.pd(this.ee);this.Al=this.vy("__mp-tnfc");this.Y(this.Al);this.Al.Yg(CS().Ge()?2:1);this.qq();this.fd=new iE(this.ee);this.A().listen(this.mj,k,this.ky).listen(this.getContext().X,"B",this.rk).listen(this.getContext().X,
"F",this.gA).listen(this.xk,k,this.A1).listen(this.Al,k,this.GU).listen(this.rb,yj,this.Gma).listen(this.fd,Vi,this.zma).listen(this.j().getWindow(),Om,this.m4).listen(this.Ot,k,this.qua)};q.Pa=function(){DV.c.Pa.call(this);this.fd.dispose();this.fd=null};q.vy=function(a){var b=new hG(null);b.R(this.Fj(a));return b};q.qua=function(){eB(this.PM,{target:Xd})};
q.rk=function(a){this.PM=null;if(a=a.bx){var b=!!a.getOption(Uj);fC(this.Sa,"picker-locate-view",b);if(a.getOption("sodc"))this.qq(),this.mj.C(!0);else if(b)this.qq(),a=a.getOption("idto"),v(a)&&(this.zv=a.split(",").length),null===this.Bl?this.getContext().Bi.Aia().ua(this.gBa,this):this.S6(),this.mj.C(!0);else if(this.xb(48),a.getOption(cn)&&!a.getOption(m))this.qq(),this.RD("Drive"),mV(this.Um,"Drive"),this.mj.C(!0);else if(a.getOption("cv")||a.getOption("sp")){this.qq();if(a=a.Pd())this.RD(a),
mV(this.Um,a);this.mj.C(!0)}else if(b=dV(a),R(this.ee,b),this.Al.C(b),R(this.oz,!b),this.mj.C(!b),b)this.xk.C(!0),R(this.Ch,!1),this.m4(),this.zD(!1);else{b=this.getContext();var c=y(this.xEa,this),e=a.getOption(m)||Sm;gV(b,a,e,c)}}else this.qq(),this.mj.C(!0)};
q.gBa=function(a){a.bta&&(this.Bl=a.bta);if(a.Kfa){a=a.Kfa;var b=2;b&&12<a.length?(12<b&&(b=12),a=a.substring(0,12-b)+"..."+a.substring(a.length-b)):12<a.length&&(b=Math.floor(6),a=a.substring(0,b+0)+"..."+a.substring(a.length-b));this.lt=a}this.S6()};
q.S6=function(){var a=CS().Oq;this.lt&&a&&null!==this.zv?1==this.zv?a=(new tU("{numParents, plural, =1 {{docName} is in 1 folder:}other {{docName} is in # folders:}}")).format({numParents:this.Bl,docName:this.lt}):2==this.zv?a=(new tU("{numParents, plural, =1 {{docName} and 1 other file is in 1 folder:}other {{docName} and 1 other file is in # folders:}}")).format({numParents:this.Bl,docName:this.lt}):(a=this.zv-1,a=(new tU("{numParents, plural, =1 {{docName} and {numDocsToBeMoved} other files are in 1 folder:}other {{docName} and {numDocsToBeMoved} other files are in # folders:}}")).format({numParents:this.Bl,
docName:this.lt,numDocsToBeMoved:a})):a=this.getContext().Bi.yca?(new tU("{numParents, plural, =1 {This file is in 1 folder:}other {This file is in # folders:}}")).format({numParents:this.Bl}):this.getContext().Bi.zca?(new tU("{numParents, plural, =1 {This folder is in 1 folder:}other {This folder is in # folders:}}")).format({numParents:this.Bl}):(new tU("{numParents, plural, =1 {This item is in 1 folder:}other {This item is in # folders:}}")).format({numParents:this.Bl});this.RD(a,!0);mV(this.Um,
a)};q.xEa=function(a,b,c){a=a.Sf.Gz();var e=c&&c.Cq()&&!b.getOption(cn);this.xk.C(!e||!!a&&!!a.getOption("cv"));R(this.Ch,!this.xk.N());a=c?c.getName():"";this.RD(a);mV(this.Um,a);this.rqa(b)&&(this.PM=b=c&&c.getUrl()?c.getUrl():null,this.Ot.C(!!b),fC(this.oz,"picker-header-add-folder-link",!!b))};q.rqa=function(a){return!!a.getOption("eflimt")};q.qq=function(){R(this.oz,!1);this.xk.C(!1);R(this.Ch,!1);R(this.ee,!1);this.Al.C(!1);this.mj.C(!1);this.Ot&&this.Ot.C(!1)};
q.m4=function(){var a=lA(this.Fj("__mp-ttc")),b=iA(this.xk.b()),c=iA(this.Al.b());a=a.width-1-b.width-c.width;(b=oA(this.xk.b()))&&(a-=b.left+b.right);(b=Rz(this.ee))&&(a-=b.left+b.right);(b=kA(this.ee))&&(a-=b.left+b.right);(b=oA(this.ee))&&(a-=b.left+b.right);Yz(this.ee,Math.floor(0<a?a:0))};
q.A1=function(){var a=this.getContext().X.Vb;if(a){var b=this.getContext();if((dV(a)||a.getOption(cn))&&a.Bc)b.X.Kb(a.Bc);else{var c=fV(b,a);if(c)if(!c.Cq()||a.getOption(cn)){var e=a.clone(),f=c.Rn;if(!f){var g=c.Rha();1==g.length&&(f=g[0])}!f&&c.getAttribute(Zi)&&(f=nV.jb,b.ba.cj([nV]));f?(a.getOption(cn)||e.$f(a),e.Aa(m,f)):e.Js(m);e.setQuery(null);b.X.Kb(e)}else a=b.Sf.Gz(),a.getOption(Uj)||b.X.Kb(a)}}};q.ky=function(){M(this.getContext().vb.Vi,0,this.getContext().vb)};
q.Gma=function(a){13==a.keyCode&&this.GU()};q.zma=function(){this.Al.U(!!cr(this.ee.value))};q.GU=function(){var a=this.ee.value;if(cr(a)){this.getContext().Ma.Ak(!0);this.zD(!0);var b=this.getContext().X.Vb,c=b&&b.getOption(m).substring(11);a={title:a};c&&(a.parent=c);this.getContext().ba.requestData(new CV("createFolder",Ug,null,a),y(this.Mla,this,b),y(this.XY,this,b))}};
q.Mla=function(a,b){if(b.dc().length){var c=this.getContext(),e=c.ba;c=c.X;var f=c.Vb,g=b.dc()[0];g.Gza(!0);e.cj([g]);b=a.clone();var h=a.Bc.clone();h.getOption(m)!=a.getOption(m).substring(11)&&(h.$f(a.Bc),h.Aa(m,a.getOption(m).substring(11)));e.xd(h.lu()).LA(!0);b.$f(h);b.Aa(m,g.jb);e=e.xd(b.lu());e.cj([]);e.rw(void 0);f&&a&&f.ad(a)&&this.zU&&(this.zD(!1),c.Kb(b,!0))}else this.XY(a,b)};
q.XY=function(a,b){a=this.ee.value;this.zD(!1);this.Aj&&(b=b.OH||this.getContext().vi().Kl(wV,{bha:a}),a=this.getContext().X.Vb,this.Aj.TBa(b,a&&a.Bc));this.A1()};q.zD=function(a){this.zU=a;this.Al.U(!a);if(a)this.ee.setAttribute(Dg,sp);else{this.ee.value="Untitled folder";this.ee.removeAttribute(Dg);try{this.ee.focus(),this.ee.setSelectionRange(0,15)}catch(b){}}};
q.RD=function(a,b){Gy(this.Um,a);R(this.oz,!0);b?(a=iA(this.Um).height,b=this.Um.getBoundingClientRect(),b.top&&(a+=2*b.top),this.xb(Math.max(a,48))):this.xb(48)};var EV={BACK:"__mp-tb",gR:"__mp-tc",L$:"__mp-tfl",pR:"__mp-tfn",M$:"__mp-tfnc",T$:"__mp-ti",paa:"__mp-tnfi",oaa:"__mp-tnfc",Waa:"__mp-ttc"};var FV=function(){F.call(this)};B(FV,F);FV.prototype.initialize=function(){};var GV=function(a,b){this.mz=a;this.Ga=b};GV.prototype.execute=function(a){this.mz&&(this.mz.call(this.Ga||null,a),this.mz=this.Ga=null)};GV.prototype.abort=function(){this.Ga=this.mz=null};var HV=function(a,b){F.call(this);this.lfa=a;this.ma=b;this.FM=[];this.xM=[];this.WV=[]};B(HV,F);q=HV.prototype;q.Hsa=FV;q.xl=null;q.KI=function(){return this.lfa};q.getId=function(){return this.ma};q.registerCallback=function(a,b){return this.er(this.FM,a,b)};q.B3=function(a,b){return this.er(this.xM,a,b)};q.er=function(a,b,c){b=new GV(b,c);a.push(b);return b};q.Dh=function(){return!!this.xl};
q.Nta=function(a){var b=new this.Hsa;b.initialize(a());this.xl=b;b=(b=!!this.bG(this.WV,a()))||!!this.bG(this.FM,a());b||(this.xM.length=0);return b};q.xta=function(a){(a=this.bG(this.xM,a))&&window.setTimeout(Es("Module errback failures: "+a),0);this.WV.length=0;this.FM.length=0};q.bG=function(a,b){for(var c=[],e=0;e<a.length;e++)try{a[e].execute(b)}catch(f){et(f),c.push(f)}a.length=0;return c.length?c:null};q.o=function(){HV.c.o.call(this);G(this.xl)};var IV=function(){F.call(this);this.wl={};this.Xj=[];this.hk=[];this.Vv=[];this.Le=[];this.px=[];this.ay={};this.bV=this.Vx=new HV([],"");this.Npa=new xH;this.F=ov("goog.module.ModuleManager");this.Rda=this.$S=!1;this.k1=null;this.ry=0;this.S9=this.H0=!1;this.Kq=null};B(IV,F);Kq(IV);q=IV.prototype;q.Gf=function(a){return this.wl[a]};q.Eja=function(){return this.Kq};q.bAa=function(a){this.Kq=a;this.nsa()};q.Rb=function(){return 0<this.Xj.length};q.jra=function(){return 0<this.px.length};
q.Hm=function(){var a=this.H0,b=this.Rb();b!=a&&(this.Nk(b?de:"idle"),this.H0=b);a=this.jra();a!=this.S9&&(this.Nk(a?"userActive":"userIdle"),this.S9=a)};q.e3=function(a,b){var c=new xH;window.setTimeout(y(this.Mba,this,a,c),b||0);return c};q.Mba=function(a,b){var c=this.Gf(a);c.Dh()?b.callback(this.Kq):(this.C3(a,c,!1,b),this.VA(a)||this.GL([a]))};
q.Jra=function(a,b){var c=[];vs(a,c);a=[];for(var e={},f=0;f<c.length;f++){var g=c[f],h=this.Gf(g);if(!h)throw Error("Unknown module: "+g);var l=new xH;e[g]=l;h.Dh()?l.callback(this.Kq):(this.C3(g,h,!!b,l),this.VA(g)||a.push(g))}0<a.length&&this.GL(a);return e};q.C3=function(a,b,c,e){b.registerCallback(e.callback,e);b.B3(function(a){e.sg(Error(a))});this.VA(a)?c&&(K(this.F,Qd+a),this.Dx(a),this.Hm()):c?(K(this.F,Rd+a),this.Dx(a)):K(this.F,Lc+a)};
q.GL=function(a){this.Rda?this.Npa.ua(y(this.qB,this,a)):ks(this.Xj)?this.qB(a):(this.Le.push(a),this.Hm())};q.Xha=function(){return 5E3*Math.pow(this.ry,2)};q.qB=function(a,b,c){b||(this.ry=0);b=this.wva(a);K(this.F,"Loading module(s): "+b);this.Xj=b;this.hk=this.$S?a:rs(b);this.Hm();ks(b)||(this.Vv.push.apply(this.Vv,b),a=y(this.k1.TNa,this.k1,rs(b),this.wl,null,y(this.Nma,this,this.hk,b),y(this.Oma,this),!!c),(c=this.Xha())?window.setTimeout(a,c):a())};
q.wva=function(a){for(var b=0;b<a.length;b++)if(this.wl[a[b]].Dh())throw Error("Module already loaded: "+a[b]);var c=[];for(b=0;b<a.length;b++)c=c.concat(this.bY(a[b]));vs(c);return!this.$S&&1<c.length?(b=c.shift(),K(this.F,"Must load "+b+" module before "+a),this.Le=as(c,function(a){return[a]}).concat(this.Le),[b]):c};
q.bY=function(a){var b=[];is(this.Vv,a)||b.push(a);for(a=rs(this.Gf(a).KI());a.length;){var c=a.pop();this.Gf(c).Dh()||is(this.Vv,c)||(b.unshift(c),Array.prototype.unshift.apply(a,this.Gf(c).KI()))}vs(b);return b};q.nsa=function(){this.bV==this.Vx&&(this.bV=null,this.Vx.Nta(y(this.Eja,this))&&this.wH(4),this.Hm())};q.VA=function(a){if(is(this.Xj,a))return!0;for(var b=0;b<this.Le.length;b++)if(is(this.Le[b],a))return!0;return!1};
q.Dt=function(a,b,c,e,f,g){var h=this.wl[a];h.Dh()?(K(this.F,a+" module already loaded"),b=new GV(b,c),g?b.execute(this.Kq):window.setTimeout(y(b.execute,b),0)):this.VA(a)?(K(this.F,a+" module already loading"),b=h.registerCallback(b,c),f&&(K(this.F,Qd+a),this.Dx(a),this.Hm())):(K(this.F,"Registering callback for module: "+a),b=h.registerCallback(b,c),e||(f&&(K(this.F,Rd+a),this.Dx(a)),K(this.F,Lc+a),this.GL([a])));return b};q.load=function(a,b){return this.Jra([a],b)[a]};
q.Dx=function(a){is(this.px,a)||this.px.push(a)};q.Nma=function(a,b,c){this.ry++;this.hk=a;D(b,Wq(os,this.Vv),this);401==c?(K(this.F,"Module loading unauthorized"),this.wH(0),this.Le.length=0):410==c?(this.qN(3),this.HL()):3<=this.ry?(K(this.F,"Aborting after failure to load: "+this.Xj),this.qN(1),this.HL()):(K(this.F,"Retrying after failure to load: "+this.Xj),this.qB(this.hk,!0,8001==c))};q.Oma=function(){K(this.F,"Aborting after timeout: "+this.Xj);this.qN(2);this.HL()};
q.qN=function(a){1<this.hk.length?this.Le=as(this.hk,function(a){return[a]}).concat(this.Le):this.wH(a)};
q.wH=function(a){var b=this.hk;this.Xj.length=0;for(var c=[],e=0;e<this.Le.length;e++){var f=$r(this.Le[e],function(a){var c=this.bY(a);return cs(b,function(a){return is(c,a)})},this);ss(c,f)}for(e=0;e<b.length;e++)ms(c,b[e]);for(e=0;e<c.length;e++){for(f=0;f<this.Le.length;f++)os(this.Le[f],c[e]);os(this.px,c[e])}var g=this.ay.error;if(g)for(e=0;e<g.length;e++){var h=g[e];for(f=0;f<c.length;f++)h(gh,c[f],a)}for(e=0;e<b.length;e++)this.wl[b[e]]&&this.wl[b[e]].xta(a);this.hk.length=0;this.Hm()};
q.HL=function(){for(;this.Le.length;){var a=$r(this.Le.shift(),function(a){return!this.Gf(a).Dh()},this);if(0<a.length){this.qB(a);return}}this.Hm()};q.registerCallback=function(a,b){x(a)||(a=[a]);for(var c=0;c<a.length;c++)this.er(a[c],b)};q.er=function(a,b){var c=this.ay;c[a]||(c[a]=[]);c[a].push(b)};q.Nk=function(a){for(var b=this.ay[a],c=0;b&&c<b.length;c++)b[c](a)};q.o=function(){IV.c.o.call(this);uu(Ps(this.wl),this.Vx);this.ay=this.Le=this.px=this.hk=this.Xj=this.wl=null};var JV=function(a,b){var c=this.la();YU.call(this,a,c+"-root",c+"-frame",c+Ia,this.UI(),b);b=this.A();b.listen(a.ce,tn,this.Zna);b.listen(a.X,"E",this.oBa)};B(JV,YU);q=JV.prototype;q.VF=function(a,b){a=a||this.getContext().v.ui();if(x(a))for(var c=a.length,e=0;e<c;e++){var f=a[e];if(x(f))this.GG(f,b);else if(Oq(f)&&x(f.root)){var g=this.GG(f.root,b,f.options,!0);g&&this.VF(f.items,g)}}};q.zm=function(a){var b=a[0];return b?QU(b,a[1],a[2]):null};
q.f3=function(a){a&&(a=TU(a,this.getContext().v),"opc"!=a&&IV.H().e3(a))};q.wg=function(a,b){return v(b[1])?b[1]:a&&a.getName()||""};q.Zna=function(a){a=this.zm(a.data.view);(a=this.JX(a))&&this.Nw(a)};q.JX=function(a,b){b=b||this.getContext().v.ui();if(x(b))for(var c=b.length,e=0;e<c;e++){var f=b[e];if(x(f)){if(f=this.zm(f),f.ad(a))return f}else if(Oq(f)){var g=f.root;if((g=g?this.zm(g):null)&&a.ad(g))return g;if(f=this.JX(a,f.items))return f}}return null};
q.Nw=function(a){a&&(this.getContext().X.Kb(a),this.on(a),this.T5(!0))};q.Gz=function(a){a=a||this.getContext().v.ui();for(var b=0;b<a.length;b++){var c=a[b],e=null;x(c)?e=this.zm(c):Oq(c)&&(e=this.zm(c.root)||this.Gz(c.items));if(e)return e}return null};q.oBa=function(a){this.T5(a.visible)};var KV=function(a){return"@"+W(a.prefix)+"-keyframes "+W(a.c5)+" {0% {background-position: 0 0;} 100% {background-position: -20px 0;}} ."+W("picker-photosuploadview-progress")+" ."+W(Bm)+", ."+W("picker-photosuploadview-actionpane")+" ."+W(Bm)+", ."+W("picker-doc-upload-control-progress")+" ."+W(Bm)+", ."+W(El)+" ."+W(Bm)+", ."+W("new-upload-box")+" ."+W(Bm)+" {-webkit-animation-name: "+W(a.c5)+"; -moz-animation-name: "+W(a.c5)+";}"};KV.ra="picker.ui.templates.appview.progressBar";
var LV=function(){return yF('<div id="docs-aria-speakable" class="'+X("picker-offscreen")+'" aria-live="assertive" role="region" aria-atomic="true"></div>')};LV.ra="picker.ui.templates.appview.ariaLiveRegion";var MV=function(){};B(MV,cD);Kq(MV);q=MV.prototype;q.S=function(){return"goog-tab"};q.wd=function(){return"tab"};q.g=function(a){var b=MV.c.g.call(this,a);(a=a.zg())&&this.Wc(b,a);return b};q.R=function(a,b){b=MV.c.R.call(this,a,b);var c=this.zg(b);c&&a.Er(c);a.Rd()&&(c=a.getParent())&&Nq(c.Tl)&&(a.setState(8,!1),c.Tl(a));return b};q.zg=function(a){return a.title||""};q.Wc=function(a,b){a&&(a.title=b||"")};var NV=function(a,b,c){gD.call(this,a,b||MV.H(),c);this.tb(8,!0);this.sw(9,!0)};B(NV,gD);NV.prototype.zg=function(){return this.kb};NV.prototype.Wc=function(a){this.M.Wc(this.b(),a);this.Er(a)};NV.prototype.Er=function(a){this.kb=a};ZC("goog-tab",function(){return new NV(null)});var OV=function(){this.rm="tablist"};B(OV,aD);Kq(OV);q=OV.prototype;q.S=function(){return"goog-tab-bar"};q.cP=function(a,b,c){this.m1||this.tea();var e=this.m1[b];e?a.h6(e):OV.c.cP.call(this,a,b,c)};q.Zd=function(a){var b=OV.c.Zd.call(this,a);this.fy||this.tU();b.push(this.fy[a.Pra]);return b};q.tU=function(){var a=this.S();this.fy={top:a+"-top",bottom:a+"-bottom",start:a+"-start",end:a+"-end"}};q.tea=function(){this.fy||this.tU();this.m1=Zs(this.fy)};var PV=function(a,b,c){this.h6(a||op);mD.call(this,this.Sc,b||OV.H(),c);this.b1()};B(PV,mD);q=PV.prototype;q.WS=!0;q.Oh=null;q.B=function(){PV.c.B.call(this);this.b1()};q.o=function(){PV.c.o.call(this);this.Oh=null};q.removeChild=function(a,b){this.gH(a);return PV.c.removeChild.call(this,a,b)};q.h6=function(a){this.setOrientation(a==Oo||a==eh?Up:Ci);this.Pra=a};q.sya=function(a){this.WS=a};q.wO=function(a){PV.c.wO.call(this,a);this.WS&&this.GAa(a)};q.Tl=function(a){a?a.ag(!0):this.Oh&&this.Oh.ag(!1)};
q.GAa=function(a){this.Tl(this.pa(a))};q.gH=function(a){if(a&&a==this.Oh){for(var b=this.De(a),c=b-1;a=this.pa(c);c--)if(this.t0(a)){this.Tl(a);return}for(b+=1;a=this.pa(b);b++)if(this.t0(a)){this.Tl(a);return}this.Tl(null)}};q.t0=function(a){return a.N()&&a.isEnabled()};q.roa=function(a){this.Oh&&this.Oh!=a.target&&this.Oh.ag(!1);this.Oh=a.target};q.soa=function(a){a.target==this.Oh&&(this.Oh=null)};q.poa=function(a){this.gH(a.target)};q.qoa=function(a){this.gH(a.target)};
q.Be=function(){this.Ff()||this.Jc(this.Oh||this.pa(0))};q.b1=function(){this.A().listen(this,en,this.roa).listen(this,"unselect",this.soa).listen(this,"disable",this.poa).listen(this,zi,this.qoa)};ZC("goog-tab-bar",function(){return new PV});var QV=function(a,b){WU.call(this,a,b);this.TT=this.rf=null};B(QV,WU);QV.prototype.mia=function(){return this.getContext().v.Dd()?"picker-min-close-icon":fm};QV.prototype.g=function(){var a=this.j(),b=a.g(d,Kl);this.Na(b);this.TT=a.g(d,this.mia(!1));this.rf=jG(this.TT,a);this.rf.render(b);this.rf.TD(!0);this.rf.Wc(bc)};QV.prototype.B=function(){QV.c.B.call(this);this.A().listen(this.rf,k,this.Fla)};QV.prototype.Fla=function(){this.getContext().vb.Vi()};var RV=function(a,b){JV.call(this,a,b);this.bm=[];this.hd=new VD(void 0,void 0,void 0,b)};B(RV,JV);q=RV.prototype;q.la=function(){return"picker-navpane-horizontal"};q.UI=function(){return op};
q.g=function(){RV.c.g.call(this);var a=this.j();this.pn=a.g(d,{"class":"picker-navpane-horizontal-tab-bar-wrapper",id:pC.H().Nd()});var b=this.pV=this.KU();this.VF(void 0,b);this.LB=a.createTextNode("More");this.hd.g();this.hd.eb(a.g(d,void 0,this.LB,a.g(d,bm)));b.ca(this.hd,!0);this.hd.C(!1);MB(this.hd.b(),"tab");this.xb(50);this.Sa.appendChild(this.pn);b=this.getContext().v;!b.Pd()&&b.Om&&(this.rf=new QV(this.getContext(),a),this.ca(this.rf,!1),this.rf.g(),a.append(this.Sa,this.rf.b()))};
q.B=function(){RV.c.B.call(this);this.Qda();this.BP(this.pV);this.zC();this.A().listen(this.hd.Qa(),k,this.wu).listen(this.j().getWindow(),Om,this.Kj);D(this.bm,function(a){var b=a.b();this.A().listen(a,k,this.ooa).listen(b,zh,y(this.hn,this,!0)).listen(b,hf,y(this.hn,this,!1))},this)};q.hn=function(a,b){fC(b.target,"picker-navpane-horizontal-focused",a)};
q.GG=function(a,b,c,e){var f=this.EU(a,b,c);if(f&&e){e=this.KU();f.Dc(e);if(a=this.EU(a,e,c,!0))U(a.b(),"picker-navpane-horizontal-parent-tab"),a.Dc(b);return e}return f};
q.EU=function(a,b,c,e){c=this.zm(a);this.getContext();this.f3(c);var f=this.j();a=this.wg(c,a);if("-"==a)f=new NV("",void 0,f),f.U(!1),f.wk("picker-navpane-horizontal-divider"),f.g(),f.b().removeAttribute(Qm);else{var g=CS().Ge()?"picker-spr-back-folder-rtl":"picker-spr-back-folder-ltr";g=f.g(d,"picker-navpane-horizontal-back-icon "+g);g=f.g(d,"picker-navpane-horizontal-tabcontent",e?g:a);f=new NV(g,void 0,f);f.g();e&&a&&(e="Return from "+a,a=f.b(),kF(a,e,void 0))}f.Dc(c);b&&(b.ca(f,!0),1==b.Xa()&&
f.ag(!0));return f};q.on=function(a){a&&(D(this.bm,function(b){b.Ia(function(c){if(c.N()&&c.isEnabled()){var e=c.$;e instanceof zU&&a.ad(e)&&b.Tl(c)}})},this),this.hd.b()&&(this.f4(),this.hd.Qa().Ia(function(b){var c=b.getValue().$;c&&c instanceof zU&&a.ad(c)&&(b.ag(!0),Gy(this.LB,b.pi()),fC(this.hd.b(),Nl,!0),(b=this.vJ())&&b.Tl(null))},this)))};q.ooa=function(a){this.wZ(a.target)};q.wu=function(a){this.wZ(a.target.getValue())};
q.wZ=function(a){a=a.$;if(a instanceof PV){var b=a;this.BP(b);b=b.pa(b==this.pV?0:1);b instanceof NV&&(a=b.$);this.f4()}a instanceof zU&&(this.Nw(a),this.on(a));this.zC()};q.Kj=function(){this.Vr[this.pn.id]=aA(this.pn).width;this.zC();this.on(this.getContext().X.Vb)};q.w7=function(a){var b=a?"":"0px";Zz(this.Sa,b);Yz(this.Sa,b);Kz(this.Sa,a?"":"-9500px","");(b=this.vJ())&&b.Me(a)};
q.KU=function(){var a=this.j(),b=new PV(void 0,void 0,a);b.sya(!1);b.g();a.appendChild(this.pn,b.b());this.ps(b);this.bm.push(b);return b};q.BP=function(a){D(this.bm,function(b){b.C(b==a)},this);var b=this.hd.getParent();b!=a&&(b.removeChild(this.hd,!0),a.ca(this.hd,!0))};
q.zC=function(){var a=this.vJ();if(a){a.Ia(function(a){a.C(!0)});this.hd.C(!1);var b=this.hd.Qa();b.Ke(!0);var c=this.Vr[this.pn.id];if(c){for(var e=0,f=0,g=a.Xa()-1;0<=g;--g){var h=a.pa(g);if(h.N())if(SV(a,this.Vr,e,c)){var l=h.b();h.C(!1);Oy(l)&&(l=new qD(Oy(l),h),l.Fw(!0),b.pe(l,0,!0));f=Math.max(f,this.Vr[h.getId()]);h=oA(this.hd.b());isNaN(h.left)||isNaN(h.right)||(e=f+h.left+h.right)}else break}0<b.Xk()?(this.hd.C(!0),U(b.b(),"picker-horizontal-navpane-more-menu")):this.hd.C(!1)}}};
var SV=function(a,b,c,e){var f=0;a.Ia(function(a){a.N()&&(f+=b[a.getId()])});f+=c;return f>=e};q=RV.prototype;q.vJ=function(){for(var a=0;a<this.bm.length;++a){var b=this.bm[a];if(b.N())return b}return null};q.Qda=function(){this.Vr={};D(this.bm,function(a){a.Ia(function(a){var b=a.b(),e=aA(b).width;b=oA(b);isNaN(b.left)||isNaN(b.right)||(e=e+b.left+b.right);this.Vr[a.getId()]=e},this)},this);this.Vr[this.pn.id]=aA(this.pn).width};
q.f4=function(){this.LB&&this.hd.b()&&(Gy(this.LB,"More"),fC(this.hd.b(),Nl,!1))};q.Nw=function(a){a&&(this.jCa(a),this.zC(),RV.c.Nw.call(this,a))};q.jCa=function(a){D(this.bm,function(b){b.Ia(function(c){c=c.$;c instanceof zU&&a.ad(c)&&this.BP(b)},this)},this)};var TV=function(a,b,c){QD.call(this,a,b||RD.H(),c)};B(TV,QD);ZC(Uh,function(){return new TV(null)});var UV=function(){};B(UV,zG);Kq(UV);UV.prototype.S=function(){return Zh};ZC(Zh,function(){return new QD(null,UV.H())});var WV=function(a,b){WU.call(this,a,b);this.Gc=null;this.ya=VV(a.v)};B(WV,WU);WV.prototype.g=function(){if(this.ya){var a=this.j(),b=a.g(d,"picker-learnmore",a.g(gd,"picker-spr-questionmark"));this.Na(b);this.Gc=new TV(Qc,UV.H(),a);this.ca(this.Gc,!0)}else WV.c.g.call(this)};WV.prototype.B=function(){WV.c.B.call(this);this.Gc&&this.A().listen(this.Gc,k,this.Ima)};WV.prototype.getUrl=function(){return this.ya};WV.prototype.Ima=function(){this.ya&&eB(this.ya,{target:Xd})};
var VV=function(a){a=a.xra;var b="&hl="+CS().Qf;if(!isNaN(parseInt(a,10)))return"https://www.google.com/support/websearch/bin/answer.py?answer="+a+b;if(v(a)){var c=/\/support\/\w+\?p=\w+$/;if(c.test(a))return"https://www.google.com"+a+b;c=/^[a-z]+\/\?p=[a-z_]+$/;if(c.test(a))return"https://support.google.com/"+a+b}return null};var XV=function(){this.Z3={};this.Y3=0};q=XV.prototype;q.format=function(a){var b=[],c=qr("SafeHtmlFormatter:");a=qr(a).replace(new RegExp("\\{"+c+"[\\w&#;]+\\}","g"),y(this.Nwa,this,b));C(0==b.length,"Expected no unclosed tags, got <"+b.join(">, <")+">.");return jx(a,null)};
q.Nwa=function(a,b){var c=this.Z3[b];if(!c)return b;b="";c.Sr&&(b+="<"+c.Sr+c.attributes+">",!0===kw[c.Sr.toLowerCase()]||a.push(c.Sr.toLowerCase()));c.f_&&(b+=c.f_);c.Ip&&(b+="</"+c.Ip+">",a=a.pop(),C(a==c.Ip.toLowerCase(),"Expected </"+a+">, got </"+c.Ip+">."));return b};q.Sr=function(a,b){qx(a);return this.YP({Sr:a,attributes:xx(a,b)})};q.Ip=function(a){qx(a);return this.YP({Ip:a})};q.text=function(a){return this.YP({f_:qr(a)})};
q.YP=function(a){this.Y3++;var b="{SafeHtmlFormatter:"+this.Y3+"_"+Cr()+"}";this.Z3[qr(b)]=a;return b};var YV=function(a,b,c,e){gD.call(this,null,c,e);this.P=a;this.Ky=b;this.tb(16,!0);this.sw(16,!0)};B(YV,gD);q=YV.prototype;q.K=function(){return this.Ky};q.getContext=function(){return this.P};q.B=function(){YV.c.B.call(this);this.A().listen(this.b(),vg,this.iA)};q.update=function(){this.P.ba.K(this.Ky.getId())&&this.Xh(this.Ky.getId())};q.Xh=function(a){this.Ky=this.P.ba.K(a)};q.iA=function(){this.dispatchEvent(vg)};q.CM=Jq;var ZV=function(a,b){H.call(this,"H",a);this.Vj=b||0};B(ZV,H);var $V=function(a,b){var c=VR(a);a=Tz(a,c);qz.call(this,[0,c.scrollTop],[0,a.y],b||200,OA);this.Fa=c};B($V,qz);$V.prototype.Av=function(){$V.c.Av.call(this);this.Fa.scrollTop=this.coords[1]};var aW=function(a,b,c,e){YV.call(this,a,b,c,e);this.CA=!1};B(aW,YV);q=aW.prototype;q.B=function(){aW.c.B.call(this);this.A().listen(this.eu(),yj,this.Dma)};q.BB=function(){this.CA=!0};q.u1=function(){this.CA=!1};q.Bqa=function(){return this.CA};q.Vwa=function(){this.dispatchEvent(new ZV(this));(new $V(this.b())).play()};
q.Dma=function(a){switch(a.keyCode){case 38:case 40:case 37:case 39:return this.rla(a),!0;case 32:return this.koa(a),!0;case 13:if(!this.cma(a))return a.preventDefault(),a.stopPropagation(),!0}return!1};q.rla=function(a){this.dispatchEvent(new ZV(this,a.keyCode));a.preventDefault();a.stopPropagation()};q.koa=function(a){this.isEnabled()&&this.ax();a.preventDefault()};q.cma=function(){return this.pb(64)?(this.Hb(!0),this.Hb(!1),!1):!0};
q.ax=function(){if(this.pb(16)){var a=this.getContext();a.Ma.ax(this.K().getId(),a.v.PB?"cb":"cl")}};q.wc=function(a){return 13!=a.keyCode?aW.c.wc.call(this,a):!1};var bW=function(a,b){PN.call(this,b);this.Yea=E&&!LL?"picker-progress-bar-spinner":a};B(bW,PN);bW.prototype.B=function(){bW.c.B.call(this);U(this.b(),this.Yea);MB(this.b(),Ro)};bW.prototype.g=function(){bW.c.g.call(this);var a=this.b();a&&(OB(a,Sp),T(a,Xe,!0),T(a,Mj,rm),TB(a,cd))};bW.prototype.setValue=function(a){bW.c.setValue.call(this,a);var b=this.b();if(b)switch(OB(b,Sp),T(b,Xe,!0),T(b,Mj,rm),a){case 0:TB(b,cd);break;case 100:TB(b,"Progress Completed")}};var cW=function(a){this.Rea=a;this.OF=null};B(cW,cD);q=cW.prototype;q.tc=function(){return!1};q.S=function(){return this.Rea};q.Bd=function(a){cW.c.Bd.call(this,a);a.pb(16)&&T(a.b(),yf,!1)};q.wd=function(){return cl};q.mX=function(){this.OF||(this.OF=new vF(CS().Ge()));return this.OF};Er(ML,"9.0.0");var dW=["transform","WebkitTransform","msTransform","OTransform","MozTransform"],fW=function(a,b,c){var e=!1;D(dW,function(b){f||c&&"MozTransform"==b||(f=a.style[b])});if(!f&&!b){var f=a.style.filter;e=!0}if(f&&(b=f.search("rotat"),0<=b)){b=f.substr(b);var g=b.search("[)]");e=e?90:1;e*=b.substr(0,g).replace(/\D/g,"");return eW(e)}return 0},eW=function(a){0>a?a+=360:360<=a&&(a-=360);return a};var gW=function(a,b,c,e){a=kx(a);$D.call(this,a,c,e);this.PK=this.zn=!1;this.Go=b};B(gW,bE);q=gW.prototype;q.VR=function(a){this.Go?this.dispatchEvent("L"):this.Ad()&&this.Fh&&a.target.getAttribute(tp)!=kh&&(this.R_()&&this.Md()?this.collapse():(this.expand(),this.pa(0).VR(a)))};q.R_=function(){return cs(this.Pc(),function(a){return a instanceof gW&&(a.zn||a.R_())})};q.B=function(){gW.c.B.call(this);this.A().listen(this.Od(),qk,this.iC);this.A().listen(this.Od(),pk,this.BM)};
q.$X=function(){if(this.Ad()&&this.Md()){for(var a=this.si();a&&!a.aq();)a=a.fe;return a?a:this}a=this;for(var b=this;a!=this.zd();){do if((b=b.fe)&&b.aq())return b;while(b);b=a=a.getParent()}return null};q.lJ=function(){var a=this;do if(a=a.Ei){var b=a.eJ();if(b&&b.aq())return b}while(a);a=this.getParent();b=this.zd();return b.Yl||a!=b?a:null};
q.an=function(){var a=gW.c.an.call(this);this.getParent()==this.zd()&&(a+=" picker-navpaneitem-root");this.aq()?(this.zn&&(a+=" picker-navpaneitem-active"),this.PK&&(a+=" picker-navpaneitem-hover")):a+=ha;return a};q.aq=function(){return!!this.Go&&v(this.YI())||this.Ad()};q.getToken=function(){return this.Go};q.hC=function(a){this.aq()&&(gW.c.hC.call(this,a),this.VR(a))};q.Cv=function(a){!this.Go&&this.Ad()&&this.Fh||gW.c.Cv.call(this,a)};q.iC=function(){this.PK=!0;this.gx()};
q.BM=function(){this.PK=!1;this.gx()};
q.select=function(){gW.c.select.call(this);var a=this.Od(),b=VR(a);if(b){if(a&&b&&a.parentNode&&b.parentNode&&1==a.parentNode.nodeType&&1==b.parentNode.nodeType){var c=aA(a);var e=Vz(a),f=Vz(b),g=fW(a,!0,!1);if(90==g||270==g)if(g=c.height,c.height=c.width,c.width=g,yt&&!Qt("12")){g=Math.round(c.width/2);var h=Math.round(c.height/2);e.x=e.x+h-g;e.y=e.y-h+g}e=new Tx(e.x-f.x,e.y-f.y);f=b.clientWidth;CS().Ge()&&(e.x=f-e.x-c.width);104>c.width&&(e.x+104>f&&(e.x=e.x+c.width-104),e.x-=(104-c.width)/2,c.width=
104);c=new Cz(e.x,e.y,c.width,c.height)}else c=new Cz(0,0,0,0);a=oA(a);c.height+=a.top+a.bottom;c.top+c.height>b.offsetHeight&&(b.scrollTop+=c.top+c.height-b.offsetHeight+5);0>c.top&&(b.scrollTop+=c.top)}};q.setActive=function(a){this.zn=a;this.gx()};var hW=function(){gW.call(this,"",null)};B(hW,gW);hW.prototype.B=function(){hW.c.B.call(this);this.Rh(sx("hr",{"class":"picker-nav-hr"}));U(this.b(),"picker-navpanedivider")};hW.prototype.aq=function(){return!1};hW.prototype.wz=function(){return"picker-navpanedivider-icon"};var iW=function(a,b,c){dE.call(this,a,b,c)};B(iW,dE);iW.prototype.ec=function(a){return 13==a.keyCode&&this.xa()&&this.xa().hC(a)?(a.preventDefault(),!0):iW.c.ec.call(this,a)};var jW=function(a,b){JV.call(this,a,b);this.Gc=new WV(a,b);this.Y(this.Gc)};B(jW,JV);q=jW.prototype;q.iU=!1;q.la=function(){return Sl};q.UI=function(){return Ij};
q.g=function(){jW.c.g.call(this);var a=this.getContext(),b=this.j(),c={};at(c,eE);c.pG="//ssl.gstatic.com/docs/picker/images/cleardot-v1.gif";c.PG+=" picker-navpaneitem";c.QG+=fa;c.zy+=ha;c.Vs+=ha;c.WU=bm;c.XU="picker-spr-arrow-dk-grey";this.aa=new iW(kx(Sm),c,b);this.aa.ZO(!1);this.aa.J6(!1);this.aa.$O(!1);this.ps(this.aa);this.aa.g();var e=this.Sa;e.appendChild(this.aa.b());this.VF();a.ie.ua(function(a){if(a.X_){var c=b.g(d,"picker-buildlabel");this.Gc.getUrl()&&Q(c,lf,"50px");if(CS().isNative())c.appendChild(b.createTextNode(zk));
else{var f=a.y4;f&&(c.appendChild(b.createTextNode(f)),c.appendChild(b.g("BR")));if(a=a.hT)c.appendChild(b.createTextNode(a)),c.appendChild(b.g("BR"));a=(new Ty(window.location.href)).T("clientdebugon",sp).toString();f=b.g("A",{"class":"picker-buildlabel-a",tabIndex:-1},"DEBUG");Px(f,a);c.appendChild(f)}e.appendChild(c);this.vm=c}},this);this.Gc.getUrl()&&(this.Gc.g(),this.ps(this.Gc),e.appendChild(this.Gc.b()));this.xb(180)};
q.GG=function(a,b,c){var e=this.zm(a);this.getContext();this.f3(e);a=this.wg(e,a);if("-"==a)return b=new hW,this.aa.add(b),b;e=new gW(a,e,this.aa.v,this.j());!c||c.collapsible!=lh&&c.collapsible!=Ef?e.DD(!1):(this.iU=!0,c.collapsible==lh&&e.expand());this.A().ql(e,"L",this.Cma,!1,this);b?b.add(e):this.aa.add(e);return e};q.B=function(){jW.c.B.call(this);this.Gq()};
q.Gq=function(){var a=lA(this.Sa);if(0>=a.height)M(y(this.Gq,this),10);else{var b=kA(this.aa.b());a.height-=b.top+b.bottom;this.Gc.getUrl()&&(b=iA(this.Gc.b()),a.height-=b.height);this.vm&&(a.height-=iA(this.vm).height);Zz(this.aa.b(),a.height);this.iU&&U(this.aa.b(),"picker-navpane-hascollapse")}};q.on=function(a){this.eK(a)};
q.eK=function(a,b){if(this.aa)if(!b&&this.aa.Pc().length)this.aa.Ia(function(b){this.eK(a,b)},this);else{var c=b.getToken();a&&c&&a.ad(c)&&a.getName()==c.getName()?((c=this.aa.xa())&&c!=this.aa&&c.setActive(!1),b.setActive(!0),this.aa.Bb(b)):c&&b.setActive(!1);b.Ia(function(b){this.eK(a,b)},this)}};q.Cma=function(a){(a=a.target)&&a!=this.aa&&(this.getContext().X.Kb(a.getToken()),this.on(a.getToken()))};var kW=function(a,b,c,e,f){e?(this.Ue=c.g(d,"goog-inline-block picker-spr-circle"),a=[this.Ue,a]):a=f?[c.g(d,Yh+f),a]:[a];qD.call(this,a,b,c)};B(kW,qD);kW.prototype.ag=function(a){this.V&&(fC(this.b(),"picker-selected",a),this.Ue&&(a?(dC(this.Ue,cm),dC(this.Ue,em),U(this.Ue,dm)):(dC(this.Ue,dm),dC(this.Ue,em),U(this.Ue,cm))))};kW.prototype.Bg=function(){this.Jc(!0);if(this.Ue&&!bC(this.Ue,dm)){var a=this.Ue;dC(a,cm);U(a,em)}};
kW.prototype.xu=function(){this.Jc(!1);if(this.Ue&&!bC(this.Ue,dm)){var a=this.Ue;dC(a,em);U(a,cm)}};kW.prototype.GDa=function(){this.Tc(null)};var lW=function(a){var b="",c=(new tU("{NUM_SELECTED,plural,=1{ selected \u00bb}other{ selected \u00bb}}")).Bf({NUM_SELECTED:a.c2});b+=vb+X(Xh)+'"><span class="'+X(Xh)+" "+X(am)+'"></span><span class="'+X(Xh)+" "+X($l)+ua+W(a.c2)+'</span><span class="'+X(Xh)+" "+X("picker-selnavitem-label")+ua+c+"</span></div>";return yF(b)};lW.ra="picker.ui.templates.selectednavpaneitem.itemsSelected";var mW=function(a,b,c,e){V.call(this,e);this.P=a;this.qra=b;this.O=c;this.$j=this.aF=null};B(mW,V);q=mW.prototype;q.g=function(){var a=this.j();this.$j=new kW("",this.qra,a);this.ca(this.$j);this.$j.g();this.v9(0);this.Na(a.g(d,"picker-selnavitem",a.g(d,"picker-selnavitem-wrapper",this.$j.b())))};q.v9=function(a){var b=this.j();a=this.P.vi().Q3(lW,{c2:a});this.MP=b.Fc(am,a);this.Zda=b.Fc($l,a);Kz(this.MP,0,-14);this.$j.eb(a)};
q.B=function(){mW.c.B.call(this);this.aF=new jQ(null,this.b());this.A().listen(this.P.Ma,"x",this.zu).listen(this.aF,jp,this.s9).listen(this.$j,k,y(function(){this.O.Bb(this.$j);var a=new zU(tl);a.Aa(tp,hn);var b=this.P.X;b.Kb(a);b.ac.setActive(!0)},this));this.O.sc(this.$j)};q.zu=function(){var a=IV.H().Gf(Zk).xl.bka(this.P,this.j()).JNa();a!=this.ub&&(this.ub=a,this.SDa(a),this.s9());0==this.ub&&this.O.xa()==this.$j&&this.dispatchEvent("M")};
q.SDa=function(a){this.j().bg(this.MP,String(a));(new EA(this.Zda,[0,14],218,PA)).play();var b=new EA(this.MP,[0,0],218,PA);this.A().listen(b,eh,function(){this.v9(a)});b.play()};q.s9=function(){this.aF.fqa()||this.aF.Td(!!this.ub)};var nW=function(a){vD.call(this,a)};B(nW,vD);q=nW.prototype;q.wc=function(a){var b=nW.c.wc.call(this,a);b||9!=a.keyCode||(b=a.shiftKey?this.epa():this.dpa())||this.oc(-1);return b};q.Be=function(){this.A().Of(this.b(),Bj,this.wc)};q.Qc=function(){};q.dpa=function(){return this.tq(function(a,b){a++;return a<b?a:-b-2},this.ib)};q.epa=function(){return this.tq(function(a){return a-1},0>this.ib?this.Xa():this.ib)};
q.by=function(a){return Pz(a.b()).y-Pz(this.b()).y<aA(this.b()).height&&nW.c.by.call(this,a)};var oW=function(a,b){JV.call(this,a,b);this.$c=new nW(b);this.$c.Pl(!1);this.$c.Me(!0);this.ca(this.$c);this.ih=new vD;this.ih.Pl(!1);this.ih.Me(!0);this.ca(this.ih);this.O=new WD;a.ba.requestData(new aU("c"),y(this.Mma,this),Jq,!0);var c=a.X;this.A().listen(c,"C",this.Vna);this.nD=new mW(a,3,this.O,b);this.ca(this.nD);this.tG=(this.bE=a.v.bE)?167:153;this.rV=null};B(oW,JV);q=oW.prototype;q.la=function(){return Sl};q.UI=function(){return Ij};
q.g=function(){oW.c.g.call(this);this.$c.b()||this.$c.g();this.ih.b()||this.ih.g();var a=this.j();this.nD.g();a.appendChild(this.Sa,a.g(d,null,this.nD.b(),this.$c.b(),this.MB=a.g(d,Tl,a.g(d,Ul,"More","\u00a0","\u25be")),this.zL=a.g(d,Tl,a.g(d,Ul,"Less","\u00a0","\u25b4")),this.ih.b()));R(this.MB,!1);R(this.zL,!1);this.xb(180)};
q.B=function(){oW.c.B.call(this);this.A().listen(this.$c,k,this.kZ).listen(this.ih,k,this.kZ).listen(this.MB,Bf,y(this.WH,this,!0)).listen(this.zL,Bf,y(this.WH,this,!1)).listen(this.nD,"M",function(){this.$c.pa(0).GDa()});U(this.Sa,"picker-pplnavpane");this.bE&&U(this.Sa,"picker-peoplesearchbar-showroom");U(this.ih.b(),"picker-pplnavpane-additional");this.B1();var a=this.O.xa();a&&a.ag(!0)};
q.RBa=function(a){this.rV=a;var b=a.parent;b?this.getContext().ba.requestData(new aU("c"),y(function(a){for(var b=0;b<this.O.Xk();b++){var c=this.O.cd(b),g=c.$;if(g instanceof OT&&g.jb==a){5<b&&(this.WH(!0),(new $V(c.b())).play());this.X4(c);return}}this.getContext().X.Kb(new zU(tl))},this,b),Jq,!1):this.getContext().X.Kb(new zU(tl,void 0,a))};q.B1=function(){this.V&&6<this.$c.Xa()&&(this.zW=aA(this.$c.b()).height-kA(this.$c.b()).top,R(this.MB,!0),Q(this.$c.b(),hl,yi),Q(this.$c.b(),xi,this.tG+n))};
q.WH=function(a){R(this.MB,!a);R(this.zL,a);var b=a?this.tG:this.zW,c=a?this.zW:this.tG;b=new GA(this.$c.b(),b,c,150);a?this.A().listen(b,eh,y(function(){Q(this.$c.b(),hl,fq)},this)):Q(this.$c.b(),hl,yi);b.play()};
q.Mma=function(a){this.$c.b()||this.$c.g();this.ih.b()||this.ih.g();var b=this.aS("Everyone",1);U(b.b(),"picker-pplnavpane-all");D(a.dc(),function(a){this.aS(a.getName(),a,!0)},this);this.O.Bb(b);this.B1();this.getContext().ba.requestData(new aU("g"),y(function(a){a.dc().length&&this.Eba()},this),Jq)};q.Eba=function(){this.getContext().ie.ua(function(a){this.oba(a.ela,2,"picker-spr-gmail")},this)};q.FU=function(a,b,c,e){a=new kW(a,b,this.j(),c,e);this.O.sc(a);return a};
q.oba=function(a,b,c){a=this.FU(a,b,!1,c);this.ih.ca(a,!0);return a};q.aS=function(a,b,c){a=this.FU(a,b,c);this.$c.ca(a,!0);return a};q.kZ=function(a){this.X4(a.target)};q.X4=function(a){var b=this.O.xa();this.O.Bb(a);var c=this.getContext().X.Vb;c=c?c.clone():new zU(tl,void 0,this.rV);c.setQuery(null);if((a=a.$)&&a instanceof OT)c.Aa(m,a.jb),c.Aa(tp,void 0);else switch(a){case 1:c.Aa(m,void 0);c.Aa(tp,tl);break;case 2:c.Aa(tp,Oh)}this.getContext().X.Kb(c);b||this.getContext().X.ac.setActive(!0)};
q.Vna=function(a){a=a.TEa;this.on(a.getQuery()?null:a)};q.on=function(a){if(a&&a.qa==tl){var b=a.getOption(m),c=a.getType()==Oh,e=a.getType()==tl&&!b,f=a.getType()==hn;D(this.O.Gj(),function(a){var g=a.$,l=g instanceof OT?g.jb:void 0;(b&&b==l||c&&2===g||e&&1===g||f&&3===g)&&this.O.Bb(a)},this)}else this.O.Bb(null)};var pW=function(a,b){var c=a.v.Dd()?"picker-min-header":"picker-header";YU.call(this,a,c+"-root",c+"-frame",c+Ia,op,b);this.Xc=this.getContext().v.Pd();this.aQ=this.getContext().v.aQ||this.Xc;this.vm=null};B(pW,YU);q=pW.prototype;
q.QU=function(a){if(a){var b=this.j(),c=this.Sa,e=b.g(d,{id:"picker:ht","class":Ml,role:"heading"},a);this.getContext().v.Dd()||e.setAttribute("aria-level","1");var f=this.getContext().v.Lka();f&&c.appendChild(b.g(d,"picker-header-icon "+f));c.appendChild(e);this.getContext().v.Lfa&&(e=b.g(d,"picker-header-text picker-dogfood-confidential-text",lc),c.appendChild(e));this.rf=new QV(this.getContext(),b);this.ca(this.rf,!1);this.rf.g();b.append(c,this.rf.b())}this.p4(a)};
q.g=function(){pW.c.g.call(this);this.QU(this.Xc);this.getContext().v.hK&&this.pba()};q.pba=function(){var a=this.j(),b=this.Sa;this.getContext().ie.ua(function(c){if(c.X_&&!CS().isNative()){this.vm=a.g(d,"picker-debug-build-label");var e=c.y4;e&&this.vm.appendChild(a.createTextNode(e+":"));(c=c.hT)&&this.vm.appendChild(a.createTextNode(c));b.appendChild(this.vm)}},this)};
q.B=function(){pW.c.B.call(this);this.getContext().v.Dd()&&(this.A().listen(this.getContext().ce,rn,this.Xna),this.A().listen(this.getContext().X,"A",this.ula))};q.Hw=function(a){var b=this.j(),c=b.Fc(Ml,this.b()),e=this.Xc;(a=a||this.getContext().X.Vb)&&a.getOption(m)&&(e=this.aQ);c?(b.Ke(c),e&&b.appendChild(c,b.createTextNode(e)),this.p4(e)):this.QU(e)};
q.p4=function(a){if(a)if(this.getContext().v.Dd()){var b=this.j().Fc(Ml,this.b());a=iA(b).height;b=oA(b);b.top&&(a+=b.top);b.bottom&&(a+=b.bottom);this.xb(Math.max(a,28))}else this.xb(20);else this.xb(0)};q.Xna=function(a){a=a.data.title;v(a)&&(this.Xc=a,this.Hw());(a=this.getContext().X.ac)&&a.Tg()};q.ula=function(a){this.Hw(a.bx)};ov("goog.debug.ErrorReporter");var qW=function(a,b){if(b.Hn)return"vmd";if(b.Dd())return null;if(oR(a.qa))return"vd";b=a.getOption(m);var c=a.getQuery();switch(a.qa){case fg:return"vco";case Ni:return"vis";case zl:var e=a.getOption(lk),f=a.getOption(tp);if(a.getOption(zp)||f==Nh||"moment"==f&&b)break;return f==pf?"vpcs":f==Bi?"vph":f==Rj&&!b||!f&&(!b&&!c||e==Rm)?"vpa":"vpf";case vl:return a.getOption("enableAlbumNavigation")&&b?"vph":"vpa";case zp:return a.QK()?null:"vup";case Mp:return"vurl";case Wp:return"vvs";case Xp:return"vv";
case pq:return"vyt"}return null},rW=function(a){if(oR(a.qa))return!0;switch(a.qa){case of:case zf:case fg:case "et":case Fh:case Yj:case tl:case vl:case xl:case Jm:case Xp:case pq:return!0;case zl:return a.getOption(zp)?!1:!0}return!1},sW=function(a){switch(a){case "opl":return"opl";case "opr":return"opr";case "opd":return"opd";case "opdr":return"opdr";case "opm":return"opm";case "opmd":return"opmd";case Zk:return Zk;case Yk:return Yk;case $k:return $k;case "opu":return"opu";case "opv":return"opv"}return null},
tW=function(a,b){if(b.Hn)return"load_mindrive";b=a.qa;if(oR(b))return"load_drive";switch(b){case zl:if(!a.getOption(zp))return"load_photos";break;case vl:case wl:case xl:case Xp:return"load_photos"}return Nj};var uW=function(a,b,c){XU.call(this,a,c);this.Id=(this.Lb=b)?a.ba.xd(b):a.ba.jM();this.$s=y(this.Qla,this);this.Gk=[];this.jp=[];this.A().listen(a.Ma,"x",this.zu);this.nW=!1;this.z_=!0;this.Io=this.TC=!1;this.ds=null};B(uW,XU);q=uW.prototype;q.GH=function(a){this.z_=a};q.xd=function(){return this.Id};q.B=function(){uW.c.B.call(this);if(!this.nW){this.nW=!0;var a=this.Id;a&&a.addListener(this.$s);this.z_&&this.ju()}};q.dI=function(a){var b=this.getContext().v.zga;return $r(a,function(a){return!b.contains(a.jb)})};
q.Iy=function(){this.getContext().ba.nc(53)};q.Ffa=function(){this.Iy();this.getContext().ba.nc(51)};q.Jr=Jq;q.y9=Jq;q.Tg=function(a){!this.Io&&this.Id&&(a&&(this.Id.f7(),this.Id.LA()),this.Id.Eg()||this.ju())};
q.ju=function(a){var b=this.Lb;if(b&&!this.Io){var c=this.Id;!c.Eg()||c.el()||c.mn()?(b.setStart&&(b=c.Eg()&&c.el()?c.og:"",parseInt(b,10)?this.Lb.setStart(parseInt(b,10)):this.Lb.setStart(0),this.Lb.rw(b),this.Lb.lo&&(c=c.Eg()&&c.mn()?c.tf:"",this.Lb.lo(c))),this.Io=!0,this.Wa&&this.Jr(!0),c=y(this.Gt,this,a),a=y(this.Jga,this,a),this.Ri("vdl"),(b=this.getContext().Gh)&&b.KC("lfdls"),this.getContext().ba.requestData(this.Lb,c,a,!0)):this.Gt(a)}};
q.Gt=function(a){this.ji("vdl");var b=this.getContext().Gh;b&&(b.KC("lfdle"),b.oN());if(this.Wa){this.rk(a);if(this.isDisposed())return;this.getContext().vb.a9()}else this.TC=!0;this.Io=!1;this.Jr(!1)};q.Jga=function(a){this.Io=!1;this.Jr(!1);this.Iga(a);!this.isDisposed()&&this.getContext().vb.a9()};q.Iga=function(a){this.Gt(a)};
q.setActive=function(a,b){uW.c.setActive.call(this,a,b);this.Wa?((a=this.Id)&&a.f7(),a&&!a.Eg()?this.Tg():this.TC?this.rk(!0):this.dispatchEvent(tf),this.Io&&this.Jr(!0)):this.Jr(!1)};
q.rk=function(a){this.TC=!1;var b=this.ds;null!==b&&(Rv(b),this.ds=null);b=this.dI(this.Id.dc());var c=this.Gk,e=c.length,f=!a&&0<e&&e<=b.length&&ds(b,function(a,b){return!!(b>=e||a.getId()==c[b].getId()||a.getAttribute("oid")==c[b].getId())});this.jp.length&&this.Sva();this.Gk=b;f?(a=b.slice(e),a.length?this.appendData(a):this.HZ()):(a||b.length)&&this.fN(b);b.length||(this.Id.Eg()?f||!this.Id.mn()&&!this.Id.el()?this.Iy():this.HZ():this.Ffa());this.jp=[];this.dispatchEvent("z");this.dispatchEvent(tf)};
q.HZ=Jq;q.Sva=function(){var a=this.jp;vs(a);D(a,function(a){cs(this.Gk,function(b){return b.getId()==a})&&this.Uva(a)},this);this.jp=[]};q.Rp=function(){return new LG(as(this.Gk,function(a){return a.getId()}))};q.Bz=function(a){return Xr(this.Gk,a)};
q.Qla=function(a,b,c){var e=as(this.Gk,function(a){return a.getId()});this.jp=qs(this.jp,$r(c,function(a){return is(e,a)},this));this.Wa?!b.length||a.length||c.length?null===this.ds&&(this.ds=M(y(this.rk,this,!1),0,this)):D(b,function(a){this.awa(a);ps(this.Gk,function(b){return b.getId()==a})},this):this.TC=!0};q.zu=function(a){D(a.Rc,this.y9,this)};q.uAa=function(a){this.Lb=a;this.Io=!1;this.Id.removeListener(this.$s);this.Id=this.getContext().ba.xd(a);this.Id.addListener(this.$s)};
q.o=function(){uW.c.o.call(this);var a=this.Id;a&&a.removeListener(this.$s);this.Lb=this.Id=null;delete this.$s;delete this.Gk;null!==this.ds&&Rv(this.ds)};var vW=function(){this.rm=void 0};B(vW,aD);Kq(vW);vW.prototype.S=function(){return"picker-dataview"};vW.prototype.g=function(a){a=a.j();return a.g(d,this.S()+Ia,a.g(gd))};vW.prototype.J=function(a){return a.firstChild};vW.prototype.wd=function(){return Lj};var wW=function(a,b,c){mD.call(this,a,b||vW.H(),c);this.rO(!0);this.Me(!1);this.jAa(!1);this.$e=-1;this.jK=null};B(wW,mD);q=wW.prototype;q.eka=function(){if(0<=this.De(this.jK)){var a=this.jK.b();if(Wz(a,this.b()).x==this.d_)return this.d3}(a=this.pa(this.$e))&&this.w6(a);return this.d3};q.w6=function(a){this.jK=a;a=a.b();this.d_=Wz(a,this.b()).x;this.d3=this.d_+a.offsetWidth/2};
q.pe=function(a,b,c){wW.c.pe.call(this,a,b,c);if(a instanceof YV&&(a.CM(this.De(a)),b<this.Xa()-1))for(c=b+1;c<this.Xa();c++){var e=this.pa(c);e instanceof YV&&e.CM(c)}a.pb(32)&&(a=a.Zb(),-1==this.$e?(this.$e=b,a.tabIndex=0):(b<=this.$e&&this.$e++,a.tabIndex=-1))};
q.removeChild=function(a,b){var c=v(a)?this.Sk(a):a;if(c){var e=this.De(c);if(c instanceof YV&&e<this.Xa()-1)for(c=e+1;c<this.Xa();c++){var f=this.pa(c);f instanceof YV&&f.CM(c-1)}e==this.$e?((c=this.Sp(e,!0))||(c=this.Sp(e,!1)),c?(this.yl(c,!1),0<c&&this.$e--):this.$e=-1):e<this.$e&&this.$e--}return wW.c.removeChild.call(this,a,b)};q.B=function(){wW.c.B.call(this);this.A().listen(this,"H",this.cna)};
q.cna=function(a){var b=a.target;switch(a.Vj){case 0:a=this.De(b);var c=this.$e;a==c&&b.RA()||this.yl(a-c,!0);break;case 38:this.Sc==Up?this.yl(-1,!1):(b=this.aja(b))&&this.yl(b,!1);break;case 40:this.Sc==Up?this.yl(1,!1):(b=this.bja(b))&&this.yl(b,!1);break;case 37:this.Sc==Ci&&this.yl(this.Sp(b,CS().Ge()),!0);break;case 39:this.Sc==Ci&&this.yl(this.Sp(b,!CS().Ge()),!0)}};
q.Sp=function(a,b){a=typeof a==Ik?a:this.De(a);var c=b?this.Xa():-1;b=b?1:-1;for(var e=a+b;e!=c;e+=b){var f=this.pa(e);if(f.isEnabled()&&f.pb(32))return e-a}return 0};q.aja=function(a){a=this.De(a);if(-1==a)return 0;var b=this.IX(a);if(0!=b){var c=this.Sp(b,!1);if(c)return c=b+c,b=this.IX(c),this.PW(b,c)-a}return 0};q.bja=function(a){a=this.De(a);if(-1==a)return 0;var b=this.UX(a);if(b!=this.Xa()-1){var c=this.Sp(b,!0);if(c)return c=b+c,b=this.UX(c),this.PW(c,b)-a}return 0};
q.IX=function(a){var b=this.pa(a).b();b=Vz(b).y;for(--a;0<=a;a--){var c=this.pa(a);if(c.isEnabled()&&(c=c.b(),Vz(c).y+c.offsetHeight<=b))return a+1}return 0};q.UX=function(a){var b=this.Xa(),c=this.pa(a).b();c=Vz(c).y+c.offsetHeight;for(a+=1;a<b;a++){var e=this.pa(a);if(e.isEnabled()&&(e=e.b(),Vz(e).y>=c))return a-1}return b-1};
q.PW=function(a,b){for(var c=Vz(this.b()),e=Number.MAX_VALUE,f=a,g=this.eka();a<=b;a++){var h=this.pa(a);if(h.isEnabled())if(h=h.b(),h=Vz(h).x-c.x+h.offsetWidth/2,h=Math.abs(g-h),h<e)e=h,f=a;else if(h>e)break}return f};q.yl=function(a,b){try{if(!Ey(this.b(),Sy(this.j().K())))return}catch(f){return}var c=this.$e;if(0<=c){var e=c+a;if(a=this.pa(e)){this.$e=e;c=this.pa(c);c=c.M.Zb(c);My(c,!1);c=a.M.Zb(a);My(c,!0);try{c.focus(),b&&this.w6(a)}catch(f){}}}};
q.kk=function(){var a=this.pa(this.$e);if(a){a=a.M.Zb(a);try{return a.focus(),!0}catch(b){}}return!1};var xW=function(a,b){V.call(this,b);this.P=a};B(xW,V);xW.prototype.getContext=function(){return this.P};xW.prototype.g=function(){var a=this.j(),b,c=a.g(vd,null,a.g(wd,null,a.g(zd,null,a.g(xd,null,this.bu()),a.g(xd,null,b=a.g(gd,Vl))))),e=this.getMessage();Dy(e)?b.appendChild(e):a.appendChild(b,a.Nh(xE(e)));a=a.g(vd,"picker-promo-table",a.g(wd,null,a.g(zd,null,a.g(xd,{align:sf},c))));this.Na(a)};xW.prototype.setActive=function(){var a=this.b();R(a,!0);a=by("a",void 0,a);if(a=0<a.length?a[0]:null)try{a.focus()}catch(b){}};var yW=function(a,b){xW.call(this,a,b)};B(yW,xW);yW.prototype.getMessage=function(){var a=this.j(),b=this.getContext().v.b0();return a.g(d,void 0,a.g(d,"picker-promo-title",b?"Share photos from Google Drive on Google+":"Goodbye attachments. Hello Google Drive."),a.g(d,Vl,b?"Google Drive is the single place to keep all your files so you can access them from anywhere, any device.  Once you have photos in Google Drive, you can instantly share them with your circles here.":"With Google Drive, you never have to send another email attachment again.  Just share a link to any file you store in Google Drive.  That way everyone has access to the same file, same version - automatically."))};
yW.prototype.bu=function(){return this.j().g(Gc,{"class":"picker-promo-logo",width:"64",height:"64",src:"//ssl.gstatic.com/docs/picker/images/db07825265y.png"})};Object.values({kaa:1,QFa:2,pIa:3,tIa:6,xaa:7,BMa:11,rIa:12,pR:13,Faa:14,qHa:15,sHa:16,rHa:17,tHa:18,z$:19,AR:20,uFa:21,jMa:22});var zW=function(a,b){var c=a.getOption(lk),e=b.v.UV,f=!1;b.ie.ua(function(a){f=!a.U9.Yha("dl")});return c==ti||null==c&&!e&&(a.Ca(Ig)||a.Ca(Jg))||null==c&&e&&f},AW=function(a){if(null==a)return null;var b=a.sd;return"drive.google.com"==b||"docs.google.com"==b?(b=a.getPath(),"/open"==b&&a.mb("id")?a.mb("id"):(a=b.match(/\/file\/d\/([\w|\d]+)\/(edit|preview|view)/))?a[1]:null):null},BW=function(a){var b=QU(a).getName();switch(a){case ke:b="All file types"}return b},CW=function(a,b,c){b=b||a.qa;var e=
new zU(b,a.Pd(),Xs(a.getOptions()));c&&e.setQuery(null);var f=e;for(a=a.Bc;a;){var g=new zU(b,a.Pd(),Xs(a.getOptions()));c&&g.setQuery(null);f.$f(g);f=g;a=a.Bc}return e},DW=function(a){switch(a){case 10:return"Last modified by me";case 3:return"Last modified";case 2:return"Last opened by me";case 8:return"Name";case 15:return"Recent";case 5:return"Relevance";case 9:return"Share date"}return""},EW=function(a){a=a.Jg;return a==ue?"Folder":is(DU,a)?"Image":is(LU,a)?"Video":is(KU,a)?"Document":is(FU,
a)?"Presentation":is(IU,a)?"Spreadsheet":is(BU,a)?"Drawing":is(EU,a)?"PDF":is(CU,a)?"Form":is(JU,a)?"Table":is(HU,a)?nd:is(GU,a)?"Script":""},FW=function(a){if(a.getOption(Fo))return a.getOption(Fo);if(a.getQuery())return 5;if(a.RK())return 9;switch(a.qa){case ke:case Mg:case Tg:case Ch:case Hh:case sl:case wm:case Rn:case Lo:case Xo:return 3;case Ig:case Jg:case Kg:return 8;default:return 3}};new zB("EEEE, "+CD.vR+", HH:mm a");new zB("EEEE, "+CD.vR+", HH:mm a "+CD.LR);new zB(2);var GW=new zB(3);new zB(1);var HW=new zB(7),IW=new zB(CD.eaa),JW=function(a){if(a){var b=new vB;b.setTime(a)}else b=null;if(432E5>A()-a)b=b?HW.format(b,void 0):"";else{a=b;var c=new Date(A());b=a.getFullYear()==c.getFullYear()?b?IW.format(b,void 0):"":b?GW.format(b,void 0):""}return b};var KW=function(a){cW.call(this,"picker-list-control");this.PB=a};B(KW,cW);
KW.prototype.g=function(a){var b=a.K(),c=a.j(),e=c.g(zd,Ol);fC(e,"picker-list-control-unselectable",!a.pb(16)&&!a.pb(64));My(e,!0);var f=c.g(xd,"picker-list-control-checkbox-cell picker-list-control-cell");if(a.pb(16)){var g=new IG(void 0,c);g.tb(32,!1);g.render(f);a.Dya(g);My(g.b(),!1);U(e,"picker-list-control-tablerow-with-checkbox")}a=c.g(xd,"picker-list-control-icon-cell picker-list-control-cell");(g=b.ZI())?(g=c.g(Gc,{"class":"picker-list-control-icon-img",src:g}),a.appendChild(c.g(gd,"picker-list-control-icon",
g))):a.appendChild(c.createTextNode("\u00a0"));TB(a,EW(b));g=c.g(xd,"picker-list-control-name-cell picker-list-control-cell");Ox(g,vx(this.mX().Y7(kx(b.getName()||"")),"\u00a0"));var h=c.g(xd,"picker-list-control-lastedited-cell picker-list-control-cell");(b=b.Fg)?c.bg(h,JW(b)):c.bg(h,"\u2013");c.append(e,f,a,g,h);return e};KW.prototype.setState=function(a,b,c){KW.c.setState.call(this,a,b,c);if(16==b){var e=a.Hd;e&&M(function(){e.ke(c)})}};
KW.prototype.Xh=function(a){var b=a.b(),c=a.K();a=a.j();if(c.getName()){var e=a.Fc("picker-list-control-name-cell",b);a.Fc(Ol);e&&Ox(e,vx(this.mX().Y7(kx(c.getName()||"")),"\u00a0"))}e=a.Fc("picker-list-control-lastedited-cell",b);var f=c.Fg;f?a.bg(e,JW(f)):e&&a.bg(e,"\u2013");(b=a.Fc("picker-list-control-icon-cell",b))&&TB(b,EW(c))};var LW=function(a,b,c,e){aW.call(this,a,b,c,e);this.Hd=null};B(LW,aW);LW.prototype.Kf=function(a){!this.pb(64)||!this.isEnabled()||this.Hd&&a.target.className==kj?LW.c.Kf.call(this,a):(this.Hb(!0),this.Hb(!1))};LW.prototype.Dya=function(a){this.Hd=a};LW.prototype.Op=function(){return this.Hd&&this.Hd.b()};LW.prototype.Xh=function(a){LW.c.Xh.call(this,a);this.M.Xh(this)};var MW=function(){J.call(this);this.oa=Ek};B(MW,J);MW.prototype.setState=function(a){this.oa!=a&&(this.oa=a,this.dispatchEvent(tf))};MW.prototype.getState=function(){return this.oa};var NW=function(a,b){V.call(this,b);this.Tx="#fff";this.gb=0;this.Ur=a};B(NW,V);var OW={qMa:0,yaa:1,BGa:2,Z$:3};q=NW.prototype;q.xb=function(a){C(!this.b(),"Cannot setSize after activity indicator is rendered.");this.gb=a};q.g=function(){NW.c.g.call(this);var a=this.j();this.ym=a.g(d);this.j_=a.g(d,"jfk-activityIndicator-icon");var b=["jfk-activityIndicator"];1==this.gb&&b.push("jfk-activityIndicator-small");this.Na(a.g(d,b,this.ym,this.j_))};q.J=function(){return this.ym};
q.B=function(){NW.c.B.call(this);this.A().listen(this.Ur,tf,this.E4)};q.E4=function(){if(!this.lB||this.lB.complete){this.Ke(!0);var a=this.yea();this.Yua(a);G(this.lB);this.lB=a;this.s6()}};q.Yua=function(a){this.ca(a,!0);this.A().Of(a,"O",this.qA);M(Wq(this.vda,a),0,this)};q.vda=function(a){this.V&&(a.play(),M(function(){!this.isDisposed()&&this.V&&this.ICa&&!this.complete&&this.qA()},500,a))};q.qA=function(a){a=a.target;var b=this.Ur.getState();b==a.state&&"loading"!=b||this.E4();this.s6()};
q.s6=function(){this.j_.style.opacity="offline"==this.Ur.getState()?1:0};q.yea=function(){var a=this.Tx,b=this.Tx,c=2,e=this.lB;e&&(a=e.kW,b=e.lW,c=e.direction,C(is(Ps(OW),c)),c=(c+1)%4,C(is(Ps(OW),c)));e=this.Ur.getState();switch(e){case "loading":var f=PW[c];var g=f[0];f=f[1];break;case Ek:f=g=this.Tx;break;case "offline":g="#999";f="#777";break;default:Or(Bn)}C(g);C(f);return new QW(e,c,g,a,a,b,g,f,this.gb,this.j())};
var PW={0:["#00B15F","#008948"],1:["#3C78F8","#2159bd"],2:["#FA2424","#9e1212"],3:["#FFD34B","#dea11a"]},QW=function(a,b,c,e,f,g,h,l,p,r){V.call(this,r);this.state=a;this.complete=!1;this.direction=b;this.yCa=c;this.oga=e;this.zCa=f;this.FCa=g;this.kW=h;this.lW=l;this.ey=1==p?16:19};B(QW,V);q=QW.prototype;
q.g=function(){QW.c.g.call(this);var a=this.b(),b=this.j();U(a,"jfk-activityIndicator-circle-transition");var c=b.g(d,dj),e=b.g(d,dj);C(a);b.append(a,c,e);a=b.g(d,cj);b.appendChild(c,a);Q(a,cf,this.yCa);var f=b.g(d,cj);b.appendChild(e,f);Q(f,cf,this.oga);var g=b.g(d,cj),h=b.g(d,cj);b.appendChild(c,g);b.appendChild(e,h);Q(g,cf,this.zCa);Q(h,cf,this.lW);this.yj=g;this.Ki=h;this.gz=a;this.HN=f;this.Lt=c;this.fw=e;this.YAa(this.direction);U(g,"jfk-activityIndicator-transition");U(h,"jfk-activityIndicator-transition-second")};
q.YAa=function(a){var b=this.ey+n,c=Math.ceil(this.ey/2)+n,e="-"+c;switch(a){case 1:Q(this.Lt,{left:0,top:0});Q(this.fw,{left:c,top:0});Q(this.yj,{left:0,top:0});Q(this.Ki,{width:0,left:0});Q(this.gz,{left:0,top:0});Q(this.HN,{left:e});break;case 3:Q(this.Lt,{left:c,top:0});Q(this.fw,{left:0,top:0});Q(this.yj,{left:e,top:0});Q(this.Ki,{width:0,left:c});Q(this.gz,{left:e,top:0});break;case 0:Q(this.Lt,{left:0,top:c});Q(this.fw,{left:0,top:0});Q(this.yj,{left:0,top:e});Q(this.Ki,{top:c,height:0});Q(this.gz,
{left:0,top:e});break;case 2:Q(this.Lt,{left:0,top:0});Q(this.fw,{left:0,top:c});Q(this.yj,{left:0,top:0});Q(this.Ki,{left:0,height:0});Q(this.gz,{left:0,top:0});Q(this.HN,{top:e});break;default:Or(Bn)}a=this.direction;b=0==a||2==a?{width:b,height:c}:{width:c,height:b};Q(this.Lt,b);Q(this.fw,b)};
q.dza=function(a){var b=this.ey+n,c=Math.ceil(this.ey/2)+n,e="-"+c;switch(a){case 1:Q(this.yj,{width:0,left:c});Q(this.Ki,{left:e,width:b});break;case 3:Q(this.yj,{width:0,left:0});Q(this.Ki,{width:b,left:0});break;case 0:Q(this.yj,{top:0,height:0});Q(this.Ki,{top:0,height:b});break;case 2:Q(this.yj,{top:c,height:0});Q(this.Ki,{top:e,height:b});break;default:Or(Bn)}};
q.play=function(){C(this.V,"Must be in document at this point.");yt&&aA(this.b());this.ICa=!0;Q(this.yj,cf,this.FCa);Q(this.Ki,cf,this.kW);this.dza(this.direction);this.Ara(this.Ki,["webkitTransitionEnd","transitionend"],this.qA)};q.Ara=function(a,b,c){var e=!1,f=this;this.A().Of(a,b,function(){e||(e=!0,c.call(f))})};q.qA=function(){this.complete=!0;this.dispatchEvent("O");R(this.HN,!1)};var RW=function(a){V.call(this,a);this.yx=new MW;this.Y(this.yx);this.sR=new NW(this.yx,a);this.Y(this.sR)};B(RW,V);RW.prototype.g=function(){RW.c.g.call(this);var a=this.vB=this.j().g(d,"picker-loadingstatusbox");this.yx.setState(Ek);this.sR.render(a);this.b().appendChild(this.vB);R(this.vB,!1);TB(this.vB,"Loading data");MB(this.b(),Ro);T(this.b(),Mj,rm)};RW.prototype.C=function(a){this.yx.setState(a?"loading":Ek);R(this.vB,a)};var SW=function(){F.call(this)};B(SW,F);SW.prototype.qb="";SW.prototype.setValue=function(a){this.qb=a};SW.prototype.getValue=function(){return this.qb};var TW=function(){};Kq(TW);q=TW.prototype;q.o$=0;q.p$=0;q.RT=0;q.Bra=function(){C(void 0===this.G);this.G=new jC(this);this.G.Hq(window,dK,function(){this.RT++});this.G.ql(window,"unload",this.hua,!1,this)};q.hua=function(){this.G.dispose()};q.tia=function(){return{xc:this.o$,xec:this.p$,click:this.RT}};var UW=function(a,b){F.call(this);this.I1=a||0;this.yi=b||10;if(this.I1>this.yi)throw Error("[goog.structs.Pool] Min can not be greater than max");this.Ld=new CM;this.gl=new LG;this.wp=0;this.mL=null;this.Ix()};B(UW,F);q=UW.prototype;q.Hj=function(){var a=A();if(!(null!=this.mL&&a-this.mL<this.wp)){var b=this.gwa();b&&(this.mL=a,this.gl.add(b));return b}};q.gk=function(a){return this.gl.remove(a)?(this.vF(a),!0):!1};
q.gwa=function(){for(var a;0<this.NX()&&(a=this.Ld.Cm(),!this.tM(a));)this.Ix();!a&&this.sa()<this.yi&&(a=this.oj());return a};q.vF=function(a){this.gl.remove(a);this.tM(a)&&this.sa()<this.yi?this.Ld.enqueue(a):this.Jm(a)};q.Ix=function(){for(var a=this.Ld;this.sa()<this.I1;)a.enqueue(this.oj());for(;this.sa()>this.yi&&0<this.NX();)this.Jm(a.Cm())};q.oj=function(){return{}};q.Jm=function(a){if(typeof a.dispose==Ih)a.dispose();else for(var b in a)a[b]=null};
q.tM=function(a){return typeof a.hda==Ih?a.hda():!0};q.contains=function(a){return this.Ld.contains(a)||this.gl.contains(a)};q.sa=function(){return this.Ld.sa()+this.gl.sa()};q.$ia=function(){return this.gl.sa()};q.NX=function(){return this.Ld.sa()};q.Sb=function(){return this.Ld.Sb()&&this.gl.Sb()};q.o=function(){UW.c.o.call(this);if(0<this.$ia())throw Error("[goog.structs.Pool] Objects not released");delete this.gl;for(var a=this.Ld;!a.Sb();)this.Jm(a.Cm());delete this.Ld};var VW=function(a,b){this.uV=void 0;this.RC=new gT;UW.call(this,a,b)};B(VW,UW);q=VW.prototype;q.Hj=function(a,b){if(!a)return(a=VW.c.Hj.call(this))&&this.wp&&(this.uV=t.setTimeout(y(this.mA,this),this.wp)),a;this.RC.enqueue(u(b)?b:100,a);this.mA()};q.mA=function(){for(var a=this.RC;0<a.sa();){var b=this.Hj();if(b)a.Cm().apply(this,[b]);else break}};q.vF=function(a){VW.c.vF.call(this,a);this.mA()};q.Ix=function(){VW.c.Ix.call(this);this.mA()};
q.o=function(){VW.c.o.call(this);t.clearTimeout(this.uV);this.RC.clear();this.RC=null};var WW=function(a,b,c,e){this.XJ=a;this.uk=!!e;VW.call(this,b,c)};B(WW,VW);WW.prototype.oj=function(){var a=new bw,b=this.XJ;b&&b.forEach(function(b,e){a.headers.set(e,b)});this.uk&&a.oP(!0);return a};WW.prototype.tM=function(a){return!a.isDisposed()&&!a.Rb()};var XW=function(a,b,c,e,f,g){J.call(this);this.TL=u(a)?a:1;this.nk=u(f)?Math.max(0,f):0;this.uk=!!g;this.hs=new WW(b,c,e,g);this.Uc=new L;this.G=new jC(this)};B(XW,J);var YW=[Gm,Gf,Vo,gh,Yd,gp];q=XW.prototype;q.QD=function(a){this.nk=Math.max(0,a)};q.Tja=function(){return this.Uc.sa()};
q.send=function(a,b,c,e,f,g,h,l,p,r){if(this.Uc.get(a))throw Error("[goog.net.XhrManager] ID in use");b=new ZW(b,y(this.tu,this,a),c,e,f,h,u(l)?l:this.TL,p,u(r)?r:this.uk);this.Uc.set(a,b);a=y(this.tla,this,a);this.hs.Hj(a,g);return b};q.abort=function(a,b){var c=this.Uc.get(a);if(c){var e=c.ux;c.dya(!0);b&&(e&&(this.P3(e,c.aR),Ou(e,Gm,function(){this.hs.gk(e)},!1,this)),this.Uc.remove(a));e&&e.abort()}};
q.tla=function(a,b){var c=this.Uc.get(a);c&&!c.ux?(this.bca(b,c.aR),b.QD(this.nk),b.wAa(c.Xv),b.oP(c.uk),c.ux=b,this.dispatchEvent(new $W(Gm,this,a,b)),this.v4(a,b),c.PR&&b.abort()):this.hs.gk(b)};q.tu=function(a,b){var c=b.target;switch(b.type){case Gm:this.v4(a,c);break;case Gf:return this.Jla(a,c,b);case Vo:this.GJ(a,c);break;case gp:case gh:this.be(a,c);break;case Yd:this.ila(a,c)}return null};
q.v4=function(a,b){var c=this.Uc.get(a);!c||c.cU||c.SJ()?(c&&(this.P3(b,c.aR),this.Uc.remove(a)),this.hs.gk(b)):(c.wpa(),b.send(c.getUrl(),c.Asa,c.zb(),c.WI()))};q.Jla=function(a,b,c){var e=this.Uc.get(a);if(7==b.fc||b.cL()||e.SJ())if(this.dispatchEvent(new $W(Gf,this,a,b)),e&&(e.Lya(!0),e.bU))return e.bU.call(b,c);return null};q.ila=function(a,b){this.dispatchEvent(new $W(Yd,this,a,b))};q.GJ=function(a,b){this.dispatchEvent(new $W(Vo,this,a,b))};
q.be=function(a,b){this.Uc.get(a).SJ()&&this.dispatchEvent(new $W(gh,this,a,b))};q.P3=function(a,b,c){this.G.ta(a,c||YW,b)};q.bca=function(a,b,c){this.G.listen(a,c||YW,b)};q.o=function(){XW.c.o.call(this);this.hs.dispose();this.hs=null;this.G.dispose();this.G=null;this.Uc.clear();this.Uc=null};var $W=function(a,b,c,e){H.call(this,a,b);this.id=c;this.ux=e};B($W,H);
var ZW=function(a,b,c,e,f,g,h,l,p){this.ya=a;this.Asa=c||"GET";this.uc=e;this.XJ=f||null;this.TL=u(h)?h:1;this.QS=0;this.PR=this.cU=!1;this.aR=b;this.bU=g;this.Xv=l||"";this.uk=!!p;this.ux=null};q=ZW.prototype;q.getUrl=function(){return this.ya};q.zb=function(){return this.uc};q.WI=function(){return this.XJ};q.wpa=function(){this.QS++};q.SJ=function(){return this.QS>this.TL};q.Lya=function(a){this.cU=a};q.dya=function(a){this.PR=a};var aX=function(a,b,c,e){H.call(this,a,b);this.request=c;this.response=e||null};B(aX,H);var bX=function(a,b,c,e,f,g,h){H.call(this,a,b);this.request=c;this.response=e;this.Gva=h};B(bX,aX);var cX=function(){J.call(this);this.ap=ov("picker.net.BaseCommunicationsManager");this.ed=!1;this.rM=0;this.kw=new L;this.xC=new L;this.SC=new L;this.G=new jC(this);this.u3=new Qv(6E4);this.G.listen(this.u3,fp,this.pna)};B(cX,J);q=cX.prototype;q.cG=function(){return!1};q.yh=function(){return this.G};q.initialize=function(){K(this.ap,"Initializing...");this.ed=!0;for(var a=this.SC,b=a.nb(),c=0;c<b.length;c++)this.jw(b[c]);a.clear();this.u3.start()};
q.jw=function(a){Wr(a,yT);this.ed?(K(this.ap,"sendRequest with id="+a.getId()+ba+a.Ef()+aa+a.kc()),this.xC.set(a.getId(),a),this.Sxa(a),this.rM++):(K(this.ap,"sendRequest before initialization with id="+a.getId()+ba+a.Ef()+aa+a.kc()),this.SC.set(a.getId(),a))};q.xva=function(a){var b=this.xC,c=b.get(a);c&&(K(this.ap,"processReady with id="+a+ba+c.Ef()+aa+c.kc()),this.dispatchEvent(new bX(Gm,this,c)),b.remove(a),this.kw.set(a,c))};
q.yva=function(a,b){var c=this.kw,e=c.get(a);e&&(K(this.ap,"processSuccess with id="+a+ba+e.Ef()+aa+e.kc()),c.remove(a),a=WT.execute(e.kc(),b),this.dispatchEvent(new bX(Vo,this,e,a||void 0,b)))};q.m3=function(a,b,c){var e=this.kw,f=e.get(a);f&&(qv(this.ap,"processError with id="+a+aa+f.kc()+" and opt_errorCode="+b),e.remove(a),this.Cfa(f,b,c))};q.Cfa=function(a,b,c){a=x(a)?a:[a];for(var e=0;e<a.length;e++)this.dispatchEvent(new bX(gh,this,a[e],void 0,void 0,b,c))};
q.pna=function(){45<this.rM&&window.location.reload(!0);this.rM=0};q.o=function(){this.xC.clear();this.xC=null;this.kw.clear();this.kw=null;this.SC.clear();this.SC=null;this.G.dispose();this.G=null;cX.c.o.call(this)};var dX=ov("picker.net.JsonResponseUtil"),eX=function(a,b){try{0==b.indexOf(Ea)&&(b=b.substring(11));var c=JSON.parse(b)}catch(e){return qv(dX,"response could not be parsed for id="+a,e),null}return Oq(c)?c:(qv(dX,"response not an object for id="+a),null)};var fX=function(a){cX.call(this);this.v=a;a=new L;a.set("Content-control","no-cache");a.set("X-Same-Domain","explorer");a=new XW(0,a,0,4,2E4);this.yh().listen(a,[Gm,Vo,gh],this.tu);this.Lo=a};B(fX,cX);q=fX.prototype;q.F=ov("picker.net.CommunicationsManager");q.QD=function(a){this.Lo.QD(a)};q.cG=Bs;q.Sxa=function(a){TW.H().o$++;var b=a.Zt();b.T(Ei,this.v.fl);this.Lo.send(a.getId()+"",b.toString(),Zc,a.zb(),a.WI(),100)};
q.tu=function(a){var b=a.id;var c=Number(b);b=0==c&&ar(b)?NaN:c;c=a.ux;switch(a.type){case Gm:this.qna(b,c);break;case Vo:this.GJ(b,c);break;case gh:this.be(b,c)}};q.qna=function(a){this.xva(a)};q.GJ=function(a,b){(b=eX(a,b.ae()))?this.yva(a,b):this.m3(a)};q.be=function(a,b){TW.H().p$++;this.m3(a,b.Ij(),b)};q.o=function(){this.Lo&&(this.Lo.Tja()?this.yh().Of(this.Lo,[Vo,gh],function(){M(this.o,0,this)}):(fX.c.o.call(this),this.Lo.dispose(),this.Lo=null))};var gX=function(a){J.call(this);this.CC=a.CC;this.DC=a.DC;this.Mv=a.Mv;this.$_=!0;this.Lb=null};B(gX,J);gX.prototype.cG=function(a){return this.$_&&a instanceof dU&&(this.$_=!1,this.Bca(a))?!0:!1};gX.prototype.initialize=Jq;var hX=function(a,b){return a===b||(void 0===a||null===a)&&(void 0===b||null===b)};q=gX.prototype;
q.Bca=function(a){var b=new L(this.Mv.options),c=new L(a.getOptions()),e=b.get(jk);e&&(e=e.split(","),xs(e),b.set(jk,e.join()));if(e=c.get(jk))e=e.split(","),xs(e),c.set(jk,e.join());if(!b.ad(c,hX))return!1;b=new Ty("picker/pvr");for(var f in this.DC)b.T(f,this.DC[f]);c=new Uy;for(f in this.Mv)c.set(f,this.Mv[f]);b.Qh(c);c.remove(dl);f=a.Zt();a=a.zh();f.Qh(a);a.remove(dl);return b.toString()==f.toString()};q.jw=function(a){Wr(a,dU);this.Lb=a;this.CC.addCallback(y(this.mna,this))};
q.mna=function(a,b){if(200==a&&b&&(a=eX(this.Lb.getId(),b))){this.zva(a);this.Lb=null;return}this.vva();this.Lb=null};q.zva=function(a){var b=WT.execute(this.Lb.kc(),a);this.dispatchEvent(new bX(Vo,this,this.Lb,b,a))};q.vva=function(){this.dispatchEvent(new bX(gh,this,this.Lb))};var iX=function(a,b){yT.call(this);this.hc=a;this.Fs=b||[]};B(iX,yT);iX.prototype.xh=As(new Ty("stat"));iX.prototype.Zt=function(){var a=iX.c.Zt.call(this);D(this.hc,function(b){a.zh().add("stat",b)});D(this.Fs,function(b){a.zh().add("csdms",b)});return a};iX.prototype.kc=function(){return 8};iX.prototype.Ef=function(){return iX.c.Ef.call(this)+"/"+this.getId()};var jX=function(a){F.call(this);this.uQ=a||0;this.Ec={};this.Ik=[];this.iL=!1;this.og="0";this.tf="";this.EL=[];this.a$=this.bI=0};B(jX,F);q=jX.prototype;q.yG=function(a){return!!this.Ec[a]};q.dc=function(){return rs(this.Ik)};q.Ae=function(){return this.Ik.length};q.f7=function(){this.a$=A()};
q.cj=function(a){var b=[],c=[],e=[],f=this.Ec,g=this.Ik,h=[],l={};D(a,function(a){var b=a.getId(),c=l[b];void 0!==c?h[c]=a:(l[b]=h.length,h.push(a))});a=h;if(this.Eg())D(a,function(a){var c=a.getId(),h=f[c];f[c]=a;h?(g[Xr(g,h)]=a,e.push(c)):(g.push(a),b.push(c))});else{var p=f;this.Ec=f={};this.Ik=g=[];D(a,function(a){var c=a.getId();f[c]=a;g.push(a);p[c]?(delete p[c],e.push(c)):b.push(c)});Js(p,function(a,b){c.push(b)});this.iL=!0;this.bI=A()}ys(this.Ik,this.tCa);A();this.KV(b,c,e)};
q.Xh=function(a,b){for(var c=0;c<this.Ik.length;c++)this.Ik[c].getId()==a&&(this.Ik[c]=b);Vs(this.Ec,a);this.Ec[b.getId()]=b;this.KV([],[],[a])};q.Eg=function(){return this.iL&&(!this.uQ||this.a$-this.bI<this.uQ)};q.LA=function(a){if(a||!this.uQ)this.iL=!1};q.el=function(){return void 0!=this.og};q.rw=function(a){this.og=a};q.mn=function(){return!!this.tf};q.lo=function(a){this.tf=a||""};q.addListener=function(a){this.EL.push(a)};q.removeListener=function(a){os(this.EL,a)};
q.KV=function(a,b,c){D(this.EL,function(e){e(a,b,c)})};q.tCa=function(a,b){return a.X7-b.X7};var kX=function(a){F.call(this);this.v=a;this.Ec={};this.sp={};this.fDa={}};B(kX,F);var lX=0;q=kX.prototype;q.K=function(a){var b=this.Ec[a];if(b)return b;if(!v(a))return null;b=a.split(".");if(3!=b.length)return null;var c=b[0],e=b[1];return b[2]==Sm&&(b=gs(this.dc(),function(a){return a.Cq()&&a.md==c&&a.Qr==e}))?this.Ec[a]=b:null};
q.cj=function(a){var b=this.Ec;D(a,function(a){if(0!=a.Lqa(b[a.getId()])&&(b[a.getId()]?b[a.getId()].C1(a):b[a.getId()]=a,a.getAttribute(Zi))){var c=a.getAttribute("tdid");this.fDa[c]=a}},this);Js(this.sp,function(b){if(b.Eg()){var c=$r(a,function(a){return b.yG(a.getId())});c.length&&(c=as(c,function(a){return this.K(a.getId())},this),b.cj(c))}},this)};q.Xh=function(a,b){this.Ec[b.getId()]=b;Js(this.sp,function(c){c.Eg()&&c.yG(a)&&c.Xh(a,b)})};q.dc=function(){return Ps(this.Ec)};
q.xd=function(a){a=a.Ef();var b=this.sp[a];b||(b=this.sp[a]=new jX(this.v.HY()));return b};q.jM=function(){return this.sp["_newnodes_"+lX++]=new jX(this.v.HY())};q.bqa=function(a){Js(this.sp,function(b){b.LA(a)})};var mX=function(a){F.call(this);this.ba=a;this.Uc=new L;this.kQ=100;this.v_=this.oL=0;this.mf=null};B(mX,F);q=mX.prototype;q.requestData=function(a,b,c,e,f){b=new nX(a,b,c,e,f);this.Uc.Xb(a)?ms(this.Uc.get(a),b):this.Uc.set(a,[b]);this.gP()};q.gP=function(){var a=this.oL;this.oL=A();null===this.mf&&(this.kQ=this.Ija(this.kQ,4E3<this.oL-a),this.mf=M(this.toa,this.kQ,this))};
q.toa=function(){this.mf=null;this.ba.requestData(new YT(Al,this.Uc.bb(),{includeProtoPhoto:sp,includeFaceData:sp}),y(this.vna,this),y(this.gP,this))};q.vna=function(a){this.isDisposed()||(D(a.dc(),function(a){for(var b=this.Uc.get(a.jb,[]),e=0;e<b.length;){var f=b[e];if(!f.context.isDisposed())if(f.jva.call(f.context,a)){f.callback.call(f.context,a);ns(b,e);continue}else if(60>f.c9)f.c9++;else{ns(b,e);continue}e++}b.length||this.Uc.remove(a.jb)},this),this.Uc.sa()&&this.gP())};
q.Ija=function(a,b){var c=A()-5E3;return b||this.v_<c?(this.v_=A(),100):50*a};q.o=function(){mX.c.o.call(this);null===this.mf||Rv(this.mf)};var nX=function(a,b,c,e,f){this.context=b;this.callback=c;this.jva=e||Bs;this.c9=f||0};var oX=function(a){F.call(this);this.ba=a;this.hc=[];this.Fs=[];this.Uh=new kE(this.Kt,15E3,this)};B(oX,F);oX.prototype.F=ov("picker.base.StatManager");oX.prototype.add=function(a,b){K(this.F,"Queuing stat: "+a);this.hc.push(a);6==a&&u(b)&&this.Fs.push(b);this.Uh.Ht()};oX.prototype.flush=function(){this.Uh.stop();this.Kt()};oX.prototype.Kt=function(){this.hc.length&&(K(this.F,"Sending stats: "+this.hc.join(",")),this.ba.requestData(new iX(this.hc,this.Fs),Jq,Jq),ls(this.hc),ls(this.Fs))};var pX=function(a){F.call(this);this.v=a;this.Ek=new kX(a);this.Y(this.Ek);this.G=new jC(this);this.Y(this.G);this.Pn=new L;this.oy=[];this.c8=new fX(a);this.sF(this.c8);a.CC&&a.Uqa()&&this.sF(new gX(a));this.dfa=new mX(this);this.Y(this.dfa);this.TP=new oX(this);this.Y(this.TP)};B(pX,F);var qX=function(a,b,c){this.callback=a;this.sg=b;this.TDa=c};q=pX.prototype;q.F=ov("picker.base.DataHub");q.qw=function(a){this.P=a};q.sF=function(a){this.oy.push(a);this.G.listen(a,[Vo,gh],this.una)};
q.requestData=function(a,b,c,e){if(!this.isDisposed())if(a instanceof aU&&!this.Pqa)IV.H().Dt(Zk,y(function(){this.isDisposed()||(IV.H().Gf(Zk).xl.bka(this.P),this.Pqa=!0,this.requestData(a,b,c,e))},this));else{var f=new qX(b,c,!!e),g=a.Ef(),h=this.Pn.get(g);h?h.push(f):(this.Pn.set(g,[f]),this.XCa(a))}};
q.XCa=function(a){var b=this.oy;a instanceof dU&&(this.v.Dd()?(a.IAa(Ug),a.hW("isMinimalMode")):this.v.Pga&&a.hW("filterTeamDriveResults"));for(var c=b.length-1;0<=c;c--)if(b[c].cG(a)){b[c].jw(a);return}throw Error("Communications manager not found.");};
q.una=function(a){if(!this.isDisposed()){var b=a.type,c=Wr(a.request,yT),e=a.response&&VT(a.response),f=c.Ef(),g=this.Pn.get(f);if(g){b==Vo&&e.Fi&&e.dc?(b=cs(g,function(a){return a.TDa}),(a=e.dc())&&b&&(0==a.length&&this.Rxa(c),this.cj(a),b=e.el&&e.el()?e.og:void 0,this.xd(c).rw(b),b=e.mn&&e.mn()?e.tf:void 0,this.xd(c).lo(b),this.xd(c).cj(as(a,function(a){return this.K(a.getId())},this)))):b==Vo&&e&&!e.Fi?c instanceof cU?this.nc(50):c instanceof CV?this.nc(60):c instanceof YT&&this.nc(57):b==gh&&
this.Mxa(a);for(c=0;c<g.length;c++)e&&!e.getError()&&e.Fi?g[c].callback(e):g[c].sg(e);this.isDisposed()||this.Pn.remove(f)}}};q.Mxa=function(a){var b=Wr(a.request,yT);b instanceof iX||(a=this.bla(a))&&this.Uxa(b,a)||(b instanceof cU?this.nc(52):b instanceof CV?this.nc(61):b instanceof YT&&this.nc(58))};q.bla=function(a){return a instanceof bX&&(a=a.Gva)&&a.fc?a:null};
q.Uxa=function(a,b){if(8==b.fc){if(a instanceof cU)return this.nc(55),!0;if(a instanceof CV)return this.nc(62),!0;if(a instanceof YT)return this.nc(59),!0}return!1};q.Rxa=function(a){a instanceof cU?this.nc(54):a instanceof YT&&this.nc(56)};q.K=function(a,b){b&&(a=b+".0."+a.substring(a.lastIndexOf(".")+1));return this.Ek.K(a)};q.dc=function(){return this.Ek.dc()};q.cj=function(a){this.Ek.cj(a)};q.Xh=function(a,b){this.Ek.Xh(a,b)};q.xd=function(a){return this.Ek.xd(a)};q.jM=function(){return this.Ek.jM()};
q.nc=function(a,b){this.TP.add(a,b)};q.YW=function(){this.TP.flush()};q.reset=function(a){this.Ek.bqa(a);this.Pn.clear()};q.o=function(){pX.c.o.call(this);D(this.oy,function(a){a.dispose()});delete this.oy;this.Pn.clear();delete this.Pn};var rX=function(a,b,c){yT.call(this);this.nt=a;this.Go=b;this.T2=c};B(rX,yT);rX.prototype.xh=As(new Ty("pick"));rX.prototype.kc=function(){return 6};rX.prototype.Hf=function(){var a=new L;CT(a,Hg,lv(this.nt));this.Go&&CT(a,bq,lv(this.Go.jk()));u(this.T2)&&CT(a,"psdms",lv(this.T2));return a};var sX=function(a){switch(a){case "atec":case "blogger":case "caa":case "cpaa":case "contactPhoto":case "copyphoto":case "ctpa":case "cropphoto":case "ipfd":case "sptm":case "mtp":case je:case "photocuration":case "photosharing":case "polls":case "profileBanner":case ym:case "sqprofile":return Yk;case Vg:case uf:return"opd";case zf:return Zk;case "ctpf":case "dow":case "mdisamb":return"opmd"}},tX=function(a,b){var c=new xH,e;null!=a[0]&&(e=sX(a[0]));if(null!=e&&null!=a[1]){var f=IV.H();f.Dt(e,function(){c.callback(f.Gf(e).xl.qNa(a[0],
a[1],b))})}else c.sg("Postprocessor not found: "+a[0]);return c};var uX,vX=Jw(ow(Ji)),xX=function(a,b){if(!uX){var c=py(document,ed);Rx(c,vX);c.type=ap;c.async=!0;document.body.appendChild(c);uX=!0}wX(a,b)},wX=function(a,b){window.gapi&&window.gapi.load?window.gapi.load(a,{callback:b}):M(y(wX,void 0,a,b),100)};var yX=function(a,b){J.call(this);this.v=a;this.X=b;this.aN=[];Ou(b,"F",this.Coa,!1,this)};B(yX,J);q=yX.prototype;q.F=ov("picker.base.IncomingStream");q.Z9=!1;q.Coa=function(){this.Z9=!0;D(this.aN,function(a){this.it(a)},this);ls(this.aN)};
q.it=function(a){var b=a&&a.action,c=Ss(fR,b);K(this.F,"Received "+(c?"":"invalid ")+'"'+b+'" action from host: '+Vt(a));if(c)if(!this.Z9&&a.wfv)this.aN.push(a);else{switch(b){case sn:this.Yna(a);break;case on:this.Wna(a);break;case dq:this.$na(a)}(!CS().Oq||b!=tn&&b!=un)&&this.dispatchEvent(new zX(b,a))}};
q.Yna=function(a){a=a.albumId;null===a||v(a)?(this.v.Fr(a),K(this.F,'Set the default upload album id to: "'+a+'"')):qv(this.F,'Unable to set upload album id to non-null, non-string value: "'+a+'"')};q.Wna=function(a){this.v.rs([Vg,a])};q.$na=function(a){a=a.visible;Gq(a)?(this.v.rAa(a),a&&this.v.Dd()&&(a=this.X.ac)&&a.Tg(!0)):qv(this.F,"Invalid value for visible: "+a)};var zX=function(a,b){H.call(this,a);this.data=b};B(zX,H);var AX=function(a,b,c){F.call(this);this.ce=a;this.ed=!1;this.yb=[];c?xX("rpc",y(this.vq,this)):this.Ira(b)};B(AX,F);q=AX.prototype;q.F=ov("picker.base.GadgetsChannel");q.mw="";
q.Ira=function(a){var b=CS(),c=b.oxa;c||(c=!b.jQ&&a?a.replace(/[^a-z0-9]/gi,""):"onepick",c=$q("//www-%s-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=%s",c,c),c=Bx(ow("String literals or [a-z0-9]*."),c));a=py(document,ed);Rx(a,c);a.type=ap;document.body.appendChild(a);var e=window.setInterval(y(function(){try{window.gadgets&&window.gadgets.rpc&&window.gadgets.config.get("rpc")&&(window.clearInterval(e),this.vq())}catch(f){}},this),100)};
q.vq=function(){var a=CS();this.mw=a.C4||Cl;K(this.F,"Set service name to "+this.mw);var b=a.getRelayUrl();window.gadgets.rpc.setRelayUrl("..",b);K(this.F,"Set gadgets relay url to "+b);if(a=a.Vg)window.gadgets.rpc.setAuthToken("..",a),K(this.F,"Set gadgets auth token to "+a);a=this.ce;window.gadgets.rpc.register(Cl,y(a.it,a));K(this.F,"Gadgets channel type = "+window.gadgets.rpc.getRelayChannel());this.ed=!0;D(this.yb,function(a){a()})};q.uW=function(a){this.ed?a():this.yb.push(a)};
q.call=function(a){this.uW(y(function(){window.gadgets.rpc.call("..",this.mw,null,a)},this))};q.o=function(){AX.c.o.call(this);delete this.yb};var BX=function(a){F.call(this);this.ed=!1;this.yb=[];this.ce=a;xX(Mh,y(this.vq,this))};B(BX,F);BX.prototype.vq=function(){var a=CS();a.getRelayUrl()&&(a=Uv(a.getRelayUrl()),this.n_=Iq(Lh)([a]));a={};var b=this.ce;a.sendCommand=y(b.it,b);Iq(Kh)().ready({},a,void 0,this.n_);this.ed=!0;D(this.yb,function(a){a()})};BX.prototype.call=function(a){this.ed?Iq(Kh)().getParentIframe().send("response",a,void 0,this.n_):this.yb.push(y(this.call,this,a))};BX.prototype.o=function(){BX.c.o.call(this);delete this.yb};var CX=function(){return yF('<div><iframe onload="this.poolLocked=false"></iframe></div>')};CX.ra="picker.base.templates.ifpciframepool.iframeTemplate";var DX=function(){F.call(this);this.$b=[]};B(DX,F);DX.prototype.DG=function(a){var b=VE(CX),c=b.getElementsByTagName(Fc)[0];c.style.visibility=yi;c.style.width=c.style.height="0px";c.style.border="0px";c.style.position=be;c.W2=a;this.$b[this.$b.length]=c;b.removeChild(c);return c};
DX.prototype.Yia=function(a){var b=this;M(function(){for(var c=null,e=b.$b.length-1;0<=e;e--){var f=b.$b[e];if(f&&!f.W2)if(f.parentNode.removeChild(f),E)b.$b[e]=null,b.$b.splice(e,1);else{f.W2=!0;c=f;break}}c=c?c:b.DG(!0);c.src=a;document.body.appendChild(c)},0)};DX.prototype.clear=function(){for(var a=0;a<this.$b.length;a++)this.$b[a].onload=null,this.$b[a]=null;this.$b.length=0};DX.prototype.o=function(){DX.c.o.call(this);this.clear();this.$b=null};var EX=function(){F.call(this);var a=CS();this.l_=m;this.DT=a.C4||Cl;K(this.F,"Set ifpc channel name to "+this.DT);this.yA=a.getRelayUrl();K(this.F,"Set ifpc relay url to "+this.yA);this.Vg=a.Vg||"";K(this.F,"Set ifpc rpctoken to "+this.Vg);this.mK=new DX};B(EX,F);q=EX.prototype;q.F=ov("picker.base.IfpcChannel");q.gp=0;
q.call=function(a){this.Vg&&(a.rpctoken=this.Vg);if(this.yA){var b=[a];b.unshift("");b.unshift(null);b.unshift(this.DT);b.unshift(this.l_);a=4095-this.yA.length;a=parseInt(a/3,10);b=this.xt(b);var c=parseInt(b.length/a,10);0<b.length%a&&(c+=1);for(var e=0;e<c;e++)this.mK.Yia(this.yA+"#"+this.xt([this.l_,this.gp,c,e,b.substr(e*a,a),!1]));this.gp++}else K(this.F,"No relay URL. Not sending data.")};q.xt=function(a){for(var b=[],c=0;c<a.length;c++){var e=lv(a[c]);b.push(encodeURIComponent(e))}return b.join("&")};
q.o=function(){EX.c.o.call(this);this.mK.dispose();this.mK=null};var FX=function(a){F.call(this);this.ed=!1;this.yb=[];this.ce=a;a=window.location.href.match(/.*(\?|#|&)usegapi=([^&#]+)/)||[];this.SE="1"===decodeURIComponent(a[a.length-1]||"");xX(this.SE?Mh:"iframes",y(this.vq,this))};B(FX,F);q=FX.prototype;q.F=ov("picker.base.IframesChannel");
q.vq=function(){var a={getHealthc:function(){return Lk}};TW.H().Bra();a.getVarc=function(){return TW.H().tia()};var b=this.ce;a.sendCommand=y(b.it,b);if(this.SE){b=CS();var c,e;b.getRelayUrl()&&(e=bz(b.getRelayUrl()))&&e.gf&&(c=Iq(Lh)([e.gf+"://"+e.sd]));Iq(Kh)().ready({},a,void 0,c)}else window.iframes.ready({},a);this.ed=!0;D(this.yb,function(a){a()})};q.uW=function(a){this.ed?a():this.yb.push(a)};
q.call=function(a){if(this.ed){var b=a.action;b==Bl||b==qf?this.SE?Iq(Kh)().closeSelf(a):window.iframes.close(a):(b=this.SE?y(this.Oxa,this):window.iframer.message,Nq(b)?b(a):K(this.F,"Interim data not sent since no listening function exists."))}else this.yb.push(y(this.call,this,a))};q.Oxa=function(a){var b=Iq(Kh)(),c=Iq("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER");b.addOnOpenerHandler(function(b){b.send(gk,a,void 0,c)},c)};q.o=function(){FX.c.o.call(this);delete this.yb};var GX=function(a,b,c,e){F.call(this);this.rE=c;this.Xr=e;this.wP=a;this.eL=b};B(GX,F);var HX=["32-c","64-c","72-c","400",xg],IX=/<\/?b>/g;q=GX.prototype;q.j5=function(a,b){b(as(a,this.rD,this))};
q.rD=function(a){var b={};b.id=a.jb;var c=a.md;c=this.eL?"kix"==c?"doc":"punch"==c?"pres":"ritz"==c?"spread":c:c;b.serviceId=c;var e=a.Jg;b.mimeType=this.eL?e==xe?te:e==ze?ye:e==Ae?Ce:e==we?ve:e:e;e=a.getName();var f=a.dt;c==gq&&(e=null!=e?e.replace(IX,""):null,f=null!=f?f.replace(IX,""):null);this.na(b,"name",e);this.na(b,Ag,f);this.na(b,tp,a.getType());this.na(b,Ej,a.Fg);if(c=a.ZI())c=(new Ty(window.location.href)).resolve(new Ty(c)),b.iconUrl=c.toString();this.na(b,Mp,a.getUrl());a.md==Al&&a.getType()==
Vp||this.na(b,ah,a.wt);this.na(b,Pg,a.getAttribute(Pg));this.na(b,"copyable",a.getAttribute("cpy"));this.na(b,"blobId",a.getAttribute("blobId"));this.na(b,ep,this.Kea(a));this.na(b,"driveSuccess",a.getAttribute("ds"));this.na(b,"driveError",a.getAttribute("de"));this.na(b,xj,a.eB);this.na(b,ng,a.getAttribute("c"));this.na(b,Zg,a.getAttribute(Zg));this.na(b,"id",a.getAttribute("cid"));this.na(b,"sizeBytes",a.Nr);this.na(b,"rpt",a.getAttribute("rpt"));this.na(b,"rptn",a.getAttribute("rptn"));this.na(b,
Yo,a.getAttribute("tdid"));this.na(b,"teamDriveName",a.getAttribute("tdname"));this.na(b,Ho,a.getAttribute("stdid"));this.na(b,Io,a.getAttribute("stdn"));this.na(b,"undoable",a.getAttribute("undo"));this.na(b,el,a.getAttribute("oitd"));if(c=a.getImageData())b.rotation=c.nxa,b.rotationDegree=c.mxa;(c=a.ix)&&this.uca(c,b);(c=a.UE)&&this.vca(c,b);(c=a.Rn)&&(b.parentId=c.substring(c.lastIndexOf(".")+1));c=a.getAttribute("aa");null!=c&&(b.audience=uR[c]);this.na(b,"coverPhotoId",a.getAttribute("cpid"));
this.na(b,Hj,a.getAttribute("lat"));this.na(b,Sj,a.getAttribute("lng"));this.na(b,Tp,a.getAttribute("v"));(c=a.Pc())&&(b.children=as(c,this.rD,this));this.na(b,Hk,a.Wp());a.zq()&&(b.isNew=!0);this.na(b,"numTagged",a.getAttribute("nft"));this.na(b,"numUntagged",a.getAttribute("nfu"));this.na(b,Xi,a.getAttribute("ilpp"));this.na(b,Zj,a.getAttribute("mfr"));this.na(b,dq,a.getAttribute(dq));this.na(b,bk,a.getAttribute(bk));this.na(b,Yi,a.getAttribute("iss"));return b};
q.uca=function(a,b){b.uploadId=a.getId();b.uploadState=a.getState();this.na(b,hg,a.Qs);this.wP&&(a=a.ez)&&(b.uploadMetadata=a)};q.vca=function(a,b){this.na(b,"video_cid",a.Qs);this.na(b,"duration",a.QI());this.na(b,"aspectRatio",a.Qx);this.na(b,"channel",a.cy);this.na(b,"view_count",a.VE)};q.na=function(a,b,c){null!=c&&(a[b]=c)};q.Kea=function(a){if(!ER(a.md)||!this.eL){if(a=a.lia()){if(this.Xr){for(var b=[],c=0;c<a.length;c++){var e=a[c];e.getType()&&!is(this.Xr,e.getType())||ss(b,this.PU([e]))}return b}return this.PU(a)}return null}};
q.PU=function(a){for(var b=[],c=0;c<a.length;c++){var e=a[c];if(e&&e.k4)return this.Cea(e);if(e){var f={},g=e.getUrl();g&&Yq(g,"data:")||(f.url=e.getUrl(),f.width=e.Ag(),f.height=e.ti(),this.Xr&&e.getType()&&(f.type=e.getType()),b.push(f))}}return b};
q.Cea=function(a){for(var b=[],c={},e=this.rE||HX,f=0;f<e.length;f++){var g=e[f];if(g==xg)var h=a.Zz(void 0,void 0,!0);else if("orig"==g)h=a.Zz(0,void 0,!0);else{var l,p,r;h=[];g=g.split("-");for(var z=0;z<g.length;z++){var O=g[z],ea=parseInt(O,10);ea?l=ea:Yq(O,"h")&&1<O.length?p=parseInt(wr(O,0,1),10):Yq(O,"w")&&1<O.length?r=parseInt(wr(O,0,1),10):h.push(O)}var qa;r&&p?qa=new Wx(r,p):l&&(qa=l);h=a.Zz(qa,h,!0)}g=h.Ag()+"x"+h.ti();if(this.rE||!c[g])z={},z.url=h.getUrl(),z.width=h.Ag(),z.height=h.ti(),
this.Xr&&h.getType()&&(z.type=h.getType()),b.push(z),c[g]=!0}return b};var JX=function(a){C(a,"null context found");this.P=a;a=this.P.v.ZD();var b=this.P&&this.P.v.rE||void 0,c=this.P&&this.P.v.Xr||void 0;C(!!BS,"flags not initialized");var e=CS();GX.call(this,a,!!e.Oq||e.jQ,b,c)};B(JX,GX);JX.prototype.rD=function(a){var b=JX.c.rD.call(this,a);if((a=a.getAttribute("si"))&&a.length){var c=[];D(a,function(a){a=this.P.ba.K(a);var b={};b.name=a.getAttribute("tdn");b.email=a.getAttribute("te");b.userId=a.getAttribute("tuid");c.push(b)},this);b.people=c}return b};var KX=function(a,b,c){J.call(this);I(b,qf,this.Vi,!0,this);if(!c)if(c=a.ku(),"injected"==c)c=function(a){var b=window._pickerCallback;if(b)b(a);else throw Error("Injected callback function not defined");};else{switch(c){case Jh:b=new AX(b,a.fl,a.OQ());break;case "gapi_iframes":b=new BX(b);break;case "iframes":b=new FX(b);break;default:b=new EX}c=y(b.call,b)}this.Mc=c;this.Yq=[];this.Wn=0;this.qF=CS().isNative()?null:new QS(N(a.b()));this.Y(this.qF);this.U2=!1};B(KX,J);q=KX.prototype;q.F=ov("picker.base.HostManager");
q.qw=function(a){C(!this.P);this.P=a;this.e1()};q.iw=function(a){this.isDisposed()||(K(this.F,"Sending data to host: "+Vt(Ys(a))),this.Mc(a))};q.EE=function(a){var b={};b.action=a;this.iw(b)};q.Vi=function(){var a=this.P,b=A()-a.v.QN;a.ba.nc(6,b);this.g4();this.EE(qf);a.v.WT&&a.Qk().get(oQ).j().getWindow().close()};q.BDa=function(){this.EE("blurred")};q.CDa=function(){this.EE(Qj)};q.a9=function(){this.P.v.P_(aq)&&this.EE(aq)};
q.rQ=function(a){var b=this.P;if((a=b.Ma.xg(a))&&a.length)this.$r(as(a,function(a){return b.ba.K(a)},this));else if(a=b.Eo.getValue())this.Z8(a);else throw a=(a=b.X.Vb)?a.Kz():"unknown",Error('E31337: No documents selected in "'+a+'"');b.v.WT&&b.Qk().get(oQ).j().getWindow().close()};
q.$r=function(a,b){u(b)&&b!=Bl&&b!=qf||this.P.X.q5(!0);var c=y(function(a,b){this.P.Uua.ua(y(function(){var c=new JX(this.P);c.j5(a,y(function(e){u(b)&&b!=Bl||this.wxa(a,e);this.P.v.Hn&&this.P.v.Dd()&&this.v6(!0);var f=this.aka(a);f.length?c.j5(f,y(function(a){this.qQ(e,b,a)},this)):this.qQ(e,b)},this))},this))},this);b&&b!=Bl?c(a,b):this.G4(a,c)};q.Z8=function(a){this.qQ([{url:a}])};
q.qQ=function(a,b,c){b=b||Bl;var e=this.Xp(),f={};f.action=b;f.viewToken=e.jk();f.docs=a;c&&(f.parents=c);a=this.P.Ma.Gga;Us(a)||(f.extraUserInputs=a);CS().jQ||(f.view=e.Kz());this.iw(f);b==Bl&&this.g4()};
q.G4=function(a,b){this.e1();if(this.Wn==this.Yq.length)b(a);else{var c=y(function(a){this.Wn++;this.Wn==this.Yq.length?b(a):this.G4(a,b)},this),e=y(function(a){alert(a||"Sorry! An unexpected error occurred while processing your selection.  Please try again later.");this.Vi()},this),f=this.Yq[this.Wn];f.ua(function(b){K(this.F,"Running post processor "+this.Wn+": "+Vt(Ys(this.P.v.Ie[this.Wn])));b.aOa(a,c,e)},this);f.Zh(function(a){pv(this.F,a);e()},this)}};
q.e1=function(){for(var a=this.P.v.Ie,b=this.Yq.length;b<a.length;b++)x(a[b])&&this.Yq.push(tX(a[b],this.P))};q.wxa=function(a,b){for(var c=this.P,e=c.X.ac,f=[],g=0;g<a.length&&b.length;g++){var h=Xs(b[g]),l=a[g];h.docIndex=e.Bz(l);l.Fg&&(h.lastEdited=l.Fg);l.VX()&&(h.lastModifiedByMe=l.VX());l.jY()&&(h.recentTime=l.jY());l.WX()&&(h.lastViewedByMe=l.WX());f.push(h)}b=c.X.Vb;for(a=0;null!=b.Bc;)b=b.Bc,a++;b=b.clone();b.Aa("viewTokenDepth",a);a=A()-c.v.QN;c.ba.requestData(new rX(f,b,a),Jq,Jq)};
q.EZ=function(){var a=this.P.X.ac;a&&a.Tg(!0)};q.aka=function(a){var b=[],c={};D(a,function(a){(a=a.Rn)&&!c[a]&&(c[a]=!0,(a=this.P.ba.K(a))&&b.push(a))},this);return b};q.Xp=function(){var a=this.P.X.Vb;if(this.P.v.Dd()){a=a.Xp()||a;var b=a.getOption(m);v(b)&&(b=oR(a.qa)?this.P.ba.K(b,Hg):this.P.ba.K(b))&&b.getName()&&a.Aa("parentName",b.getName());return a}for(;null!=a.Bc;)a=a.Bc;return a};
q.g4=function(){if(!this.isDisposed()){var a=this.P;a.ba.YW();var b=a.Gh;b&&(b.oN(),b.a4(),b.U(!1));M(function(){this.isDisposed()||(a.X.q5(!1),this.dispatchEvent(Nm),a.Ma.Ak(!0),a.ba.reset(),this.qF&&Ou(this.qF,"activity",y(this.EZ,this),!1,this),D(this.Yq,function(a){a.ua(function(a){a.reset()})}),this.Wn=0)},500,this)}};q.v6=function(a){this.U2=a};var LX=function(){F.call(this);this.xDa=this.eH=null;this.xua=this.yca=this.zca=!1;this.n7=this.EV=0;this.fW=!0};B(LX,F);LX.prototype.Aia=function(){null===this.eH&&(this.eH=new xH);return this.eH};LX.prototype.LAa=function(a){this.n7=a};LX.prototype.Vya=function(a){this.EV=a};LX.prototype.I5=function(a){this.fW=a};var MX=function(a){J.call(this);this.P=a;this.yEa=[];this.KW=new pK;this.tV={};this.zEa=[];this.Ga=new jC(this);this.Y(this.Ga);this.Ga.listen(a.vb,Nm,y(this.$wa,this))};B(MX,J);q=MX.prototype;q.YB=0;q.ZF=0;q.bc=0;q.F=ov("picker.base.UploadService");q.$wa=function(){this.isDisposed()||(D(this.zEa,function(a){a.reset()},this),this.dG())};q.bB=function(){return this.Tz()!=this.YB};q.Tz=function(){return this.KW.sa()};q.fka=function(){return this.bc?this.ZF/this.bc:0};
q.dG=function(){D(this.yEa,function(a){a.dG(!0)});this.Ll()};q.Ll=function(){this.bc=this.ZF=this.YB=0;this.KW.clear();this.Vga()};q.Vga=function(){K(this.F,"Upload status changed (numFiles="+this.Tz()+", numCompleted="+this.YB+", bytesUploaded = "+this.ZF+" / "+this.bc+")");this.dispatchEvent("Q")};var NX=function(a){UT.call(this,a);this.Hfa=a.response&&a.response.displayname};B(NX,UT);NX.prototype.kc=function(){return 20};WT.set(20,function(a){return new NX(a)});var OX=function(){yT.call(this)};B(OX,yT);OX.prototype.xh=As(new Ty("displayname"));OX.prototype.kc=function(){return 20};var PX=function(a){this.ba=a};PX.prototype.ua=function(a){this.RQ||(this.RQ=new xH,this.ba.requestData(new OX,y(function(a){this.RQ.callback(a.Hfa)},this),Cs));this.RQ.ua(a)};var QX=function(a,b,c,e,f,g,h,l,p,r,z,O,ea,qa,ac){F.call(this);this.Ma=a;this.v=z;this.X=e;this.vb=b;this.Eo=c;this.ce=f;this.ba=g;this.ME=h;this.Uua=l;this.ie=p;this.R9=r;this.Cc=O;this.jh=ea;this.Sf=null;this.Xo=qa;this.Gh=ac||null;this.Bi=new LX};B(QX,F);q=QX.prototype;q.eAa=function(a){this.Sf=a};q.pu=function(){this.NE||(this.NE=new MX(this));return this.NE};q.vi=function(){return this.jh.get(pQ)};q.Qk=function(){return this.jh};
q.o=function(){QX.c.o.call(this);G(this.Bi);delete this.Bi;G(this.Ma);delete this.Ma;G(this.v);delete this.v;G(this.X);delete this.X;G(this.vb);delete this.vb;G(this.Eo);delete this.Eo;G(this.ce);delete this.ce;G(this.R9);delete this.R9;G(this.ba);delete this.ba;G(this.ME);delete this.ME;G(this.NE);delete this.NE;G(this.jh);delete this.jh;delete this.ie};var RX=function(a,b,c,e,f){V.call(this,f);this.I=a;this.P=b;this.Eb=c;this.jqa=!!e;this.Gm=null};B(RX,V);
RX.prototype.g=function(){RX.c.g.call(this);var a=this.b();a.id=pC.H().Nd();var b=this.j();U(a,"picker-doctype-chip");var c=BW(this.I.qa);b.appendChild(a,b.g(d,"picker-doctype-chip-label",c));TB(a,"Filter by "+(c+" on"));this.jqa&&(this.Gm=new gD(b.g(d,"picker-spr-close-box-tiny-black")),this.Gm.wk("picker-doctype-chip-dismiss"),this.ca(this.Gm,!0),MB(this.Gm.b(),mf),a="Remove filter: "+c,TB(this.Gm.b(),a))};RX.prototype.B=function(){RX.c.B.call(this);this.Gm&&this.A().listen(this.Gm,k,this.Vla)};
RX.prototype.Vla=function(){var a=CW(this.I,ke);a.setQuery(this.Eb.value);a.Aa(Gg,!0);this.P.X.Kb(a)};var SX=function(a,b,c){wD.call(this,c);this.P=a;this.Eb=b};B(SX,wD);SX.prototype.g=function(){SX.c.g.call(this);var a=new qD("File type");this.ca(a,!0);a.tb(2,!1);a.tb(4,!1);U(a.b(),"picker-dropdown-menuitem-header");a.b().removeAttribute(Qm);D(this.P.v.Om?[ke,Ch,Mg,Lo,wm,sl,Ig,Kg]:[ke,Ch,Tg,Ig,sl,wm,Lo,Hh,Mg,Kg,Xo],function(a){this.Dba(a)},this);this.T6(!0);U(this.b(),Il);U(this.b(),"picker-doctypes-dropdown-menu")};SX.prototype.B=function(){SX.c.B.call(this);this.A().listen(this,k,this.wu)};
SX.prototype.wu=function(a){a=CW(this.P.X.Vb,a.target.$);a.setQuery(this.Eb.value);a.Aa(Gg,!0);this.P.X.Kb(a)};SX.prototype.Dba=function(a){var b=BW(a);a=new qD(b,a);this.ca(a,!0)};var TX=function(a,b){V.call(this,b);this.I=a};B(TX,V);TX.prototype.nja=function(){if(this.I.getType()==Nh)return"Results shown are available for personal or commercial use only in Google Drive, and may not be independently redistributed or sold.";switch(this.I.getOption(Jj)){case "r":return"Results shown are labeled for reuse.";case "cr":return"Results shown are labeled commercial for reuse.";case "rwm":return"Results shown are labeled for reuse with modification.";case "crwm":return"Results shown are labeled for commercial reuse with modification."}return null};
TX.prototype.g=function(){TX.c.g.call(this);var a=this.j(),b=pC.H().Nd(),c=this.I.getOption("learnmoreurl")||"https://support.google.com/drive/?p=docs_image_search&hl="+CS().Qf,e=a.g("A",{target:Xd},Qc);Px(e,c);this.Na(a.g(d,"picker-licensebar",a.g("LABEL",{id:b},a.createTextNode(this.nja()+" ")),e));T(e,Dj,b)};var UX=function(a,b,c){WU.call(this,b,c);this.Exa=a;this.h9=this.vQ=null;this.pK=""};B(UX,WU);var VX=["red","orange","yellow","green","teal","blue","purple","pink",jq,"gray",gf,"brown"];UX.prototype.g=function(){var a=this.j().g(d,"picker-searchbarimagefilter");this.Iba(a);this.Hba(a);this.Na(a)};
WU.prototype.Iba=function(a){var b=this.j(),c=this.vQ=new vD(b),e=function(a,e){c.ca(new qD(e,a,b),!0)};e("","Any type");e("face","Face");e(ul,"Photo");e("clipart","Clip art");e("lineart","Line drawing");e=b.g(d,"picker-menu-container");b.appendChild(b.K().body,e);c.render(e);e=this.h9=new VD("Any type",c,AG.H());e.R5(!0);e.render(a);a=e.b();b.setProperties(a,{title:"Image filter"});U(a,"picker-searchbarimagefilter-type-button")};
WU.prototype.Hba=function(a){var b=this.j(),c=function(a,c){a=b.g(d,"picker-searchbarimagefilter-colorbox goog-inline-block",a);MB(a,mf);T(a,Cj,c);T(a,hn,!1);return a},e=function(a,e){e=b.g(d,{"class":"picker-searchbarimagefilter-colorbox-inner "+e,title:a});return c(e,a)};a.appendChild(e("Full color","picker-spr-imagefilter-all-colors"));a.appendChild(e("Monochrome","picker-spr-imagefilter-monochrome"));e=function(a,e){e=b.g(d,{"class":Yl,title:a,style:"background-color: "+e});return c(e,a)};a.appendChild(e("Red",
"#c00"));a.appendChild(e("Orange","#fb940b"));a.appendChild(e("Yellow","yellow"));a.appendChild(e("Green","#0c0"));a.appendChild(e("Teal","#03c0c6"));a.appendChild(e("Blue","blue"));a.appendChild(e("Purple","#762ca7"));a.appendChild(e("Pink","#ff98bf"));a.appendChild(e("White",jq));a.appendChild(e("Gray","#999"));a.appendChild(e("Black",gf));a.appendChild(e("Brown","#885418"))};q=UX.prototype;
q.kba=function(a){var b=this.b().childNodes,c=this.Zia(a.getOption(Pi));this.yO(c.$);this.h9.eb(c.pi());c=1;var e=a.getOption(Oi);"mono"==a.getOption("imgc")?c=2:e&&(c=Xr(VX,e)+3);for(a=1;a<b.length;a++){e=a==c;var f=b[a];T(f,hn,e);this.MO(f,e);My(f,e)}};q.yO=function(a){this.pK=a};q.Zia=function(a){for(var b=this.vQ,c,e=b.Xa();0<e&&(c=b.pa(--e),c.$!=a););return c};
q.B=function(){WU.c.B.call(this);var a=this.A(),b=this.b();a.listen(this.vQ,k,this.gua);a.listen(b,qk,this.Sta);a.listen(b,pk,this.BM);a.listen(b,rk,this.Rta);a.listen(b,Aj,this.Mta);a.listen(b,zj,this.Lta)};q.gua=function(a){var b=this.pK;a=a.target.$;this.yO(a);b!=a&&this.Uv()};q.Sta=function(a){this.iC(a,!0)};q.BM=function(a){this.iC(a,!1)};q.iC=function(a,b){var c=this.yz(a);!c||a.relatedTarget&&Ey(c,a.relatedTarget)||PB(c,hn)==sp||this.MO(c,b)};q.Rta=function(a){(a=this.yz(a))&&this.i2(a)};
q.i2=function(a){for(var b=this.b().childNodes,c=!1,e=1;e<b.length;e++){var f=b[e],g=f==a,h=PB(f,hn)==sp;g!=h&&(T(f,hn,g),this.MO(f,g),My(f,g),c=!0)}c&&this.Uv()};q.yz=function(a){return bC(a.target,Yl)?a.target.parentNode:bC(a.target,Xl)?a.target:null};q.Mta=function(a){var b=this.yz(a);return b?13==a.keyCode||32==a.keyCode?(this.i2(b),a.cancelBubble=!0,a.returnValue=!1):!0:!0};
q.Lta=function(a){var b=a.keyCode;if(37==b||39==b){var c=this.yz(a);if(c){b=37==b;var e=CS().Ge();(b=b^e?c.previousSibling:c.nextSibling)&&bC(b,Xl)&&(My(b,!0),b.focus(),My(c,!1));a.preventDefault();a.stopPropagation()}}};q.MO=function(a,b){a.style.opacity=b?"1":"0.5";a.style.filter=b?"alpha(opacity=100)":"alpha(opacity=50)"};
q.Uv=function(){var a=this.b().childNodes,b=null,c=null;if(PB(a[1],hn)!=sp)if(PB(a[2],hn)==sp)b="mono";else for(var e=3;e<a.length;e++)if(PB(a[e],hn)==sp){c=VX[e-3];break}this.Exa(this.pK,b,c)};var WX=function(a,b,c){V.call(this,c);this.P=a;this.I=b;this.T4=new jE;this.ca(this.T4);this.AA=!b.getQuery()||!b.Ca(Ni)||b.getType()&&"gis"!=b.getType()?null:new UX(y(this.d4,this),a,c);this.F=ov("picker.ui.SearchBar");this.Yj=this.$l=this.Qu=this.SL=this.ML=this.E_=this.Eb=this.LF=this.qC=null;this.QT=!0;this.Km=this.rg=this.mt=null};B(WX,V);q=WX.prototype;q.v0=function(){return this.I.Ca(Ni)||this.I.Ca(Wp)||this.I.Ca(gq)};
q.u0=function(){var a=this.I;return!!a.getOption(Gg)||!a.getOption(jk)&&a.Ca(ke)};q.GBa=function(){return oR(this.I.qa)&&this.I.qa!=ke};
q.uea=function(a){this.j();var b=this.I,c=b.getOption(Pn),e=b.getOption("comboTypes");e&&v(e)&&(e=e.split(","));c=this.YX(b.getType(),c);if(!b.Ca(Ni)||!e||2>e.length)return c;U(a,"picker-searchbar-combobox");this.Yj=new VD(c,null,AG.H());this.Yj.z6(!0);D(e,function(a){var c=new qD(this.YX(a));c.wk("picker-searchbar-menuitem");this.Yj.sc(c);this.A().listen(c,k,function(){var c=b.clone();c.Aa(tp,a);this.P.Ma.Ak();this.P.X.Kb(c)})},this);this.Yj.wk("picker-searchbar-combobox-dropdown");this.Yj.g();return this.Yj.b()};
q.YX=function(a,b){var c=this.j();switch(a){case Nh:a=c.g(gd,"picker-searchbar-stock-photos");TB(a,"Stock images");Gy(a,"Stock");break;case "life":a=c.g(gd,"picker-spr-life-photo-archive");TB(a,"Life images");break;default:a=c.g(Gc,{src:"https://www.gstatic.com/images/branding/googlelogo/2x/googlelogo_color_52x20dp.png","class":"picker-googlelogo-small"}),TB(a,"Google search images")}b&&-1!=b.indexOf(sq)&&(a=c.g(gd,"picker-spr-youtube"));U(a,Xh);U(a,"picker-searchbar-input-item");return a};
q.i7=function(a){this.LF=IV.H().Gf("opd").xl.pNa(this.P,y(this.Bga,this),this.I,CS().Ge(),this.qC,a);this.LF.MS(this.Eb)};q.qAa=function(a){this.qC=a};q.Hya=function(a){this.QT=a};var XX=function(a){T(a,bf,Kj);T(a,wi,!0)};q=WX.prototype;
q.g=function(){var a=this.j(),b=a.g(d,"picker-searchbar"+(this.v0()?" picker-searchbar-logo":""));this.Na(b);var c=this.I,e=c.getQuery();e=this.Eb=a.g(Jc,{type:$o,"class":"picker-searchbar-input-box jfk-textinput",value:e?e:""});T(e,Cj,"Search terms");var f=new hG(kG(Ta),a);f.g();f.TD(!0);f.Wc("Search");this.$l=f;var g=null;if(this.v0()){var h=this.uea(b);g=a.g(d,Wl,h,e,f.b());this.ML=h}else this.u0()?(fC(e,"picker-searchbar-dropdownmenu-padding",!0),g=a.g(d,Wl,e),this.rg=jG(a.g(d,bm),a),this.rg.render(g),
fC(this.rg.b(),"picker-flat-menu-button",!0),lF(this.rg.b(),"Advanced Search options"),T(this.rg.b(),wi,!0),this.mt=new SX(this.P,e),this.ca(this.mt,!1),this.mt.pd(this.rg.b(),13,12),this.mt.render(this.P.v.Yp()),g.appendChild(f.b())):g=a.g(d,"picker-searchbar-input",e,f.b());b.appendChild(g);this.E_=g;this.GBa()&&(this.Km=new RX(this.I,this.P,e,this.u0(),a),this.ca(this.Km,!1),this.Km.g(),f=this.Km.b(),vy(f,e),T(e,zg,f.id));switch(c.qa){case ke:case Mg:case Tg:case Ch:case Hh:case sl:case wm:case Lo:e.setAttribute(bf,
"off");XX(e);IV.H().Dt("opd",y(this.i7,this,!1));break;case Ni:var l=!1;this.P.ie.ua(function(a){l=a.gga});l&&null!=c.getOption(gg)&&(e.setAttribute(bf,"off"),XX(e),IV.H().Dt("opd",y(this.i7,this,l)))}(f=this.AA)&&f.render(b);c.getOption(Jj)&&(new TX(c,a)).render(b);this.T4.R(e)};
q.B=function(){WX.c.B.call(this);this.$l.B();this.Yj&&this.Yj.B();var a=this.A();a.listen(this.j().getWindow(),Om,this.Kj).listen(this.$l,k,this.w8).listen(this.Eb,Aj,this.uu).listen(this.Eb,zh,y(function(){this.dispatchEvent("R")},this)).listen(this.Eb,hf,y(function(){this.dispatchEvent("S")},this));this.rg&&a.listen(this.rg,k,this.bma);this.Qu=this.Vja(this.Eb);this.SL=this.GI(this.Eb).width;this.Kj();var b=new iE(this.Eb);this.Y(b);a.listen(b,Vi,this.Lna)};
q.Kj=function(){if(!(0>this.GI(this.Eb).width)){var a=this.Zha(this.Eb);a=a.left+a.right;var b=this.Qu.left+this.Qu.right,c=this.yja()-b-a;c>this.SL&&(c=this.SL);var e=null;this.Km&&(e=this.uz(this.Km.b()).width,c-=e,b+=e);0>c&&(c=0);Yz(this.Eb,c);if(this.Km){var f=CS().Ge();Q(this.Eb,f?"padding-right":"padding-left",e+(f?this.Qu.right:this.Qu.left)+n)}this.rg&&(a=c+b+a-this.uz(this.rg.b()).width,Kz(this.rg.b(),a))}};
q.yja=function(){var a=this.GI(this.E_).width-100-100-this.uz(this.$l.b()).width;this.ML&&(a-=this.uz(this.ML).width);return a};q.bma=function(){this.mt.q7(this.rg.b(),13,12)};q.$p=function(){return cr(this.Eb.value)};q.Sb=function(){return!this.Eb.value};q.Lna=function(){var a=this.$p(),b=this.$l,c=b.getStyle();a&&2!=c?b.Dr(2):a||0==c||(b.Dr(0),b.eb(kG(Ta)));this.dispatchEvent(new YX(a))};q.uu=function(a){if(13==a.keyCode)return this.I.A8()||this.w8(),a.preventDefault(),a.stopPropagation(),!1};
q.w8=function(){var a=this.$p();a!=(this.I.getQuery()||"")&&(this.Eb.value="",a?(this.$l.Dr(0),this.$l.eb(kG(Ta)),this.Uv(a)):this.d4(null,null,null))};q.Bga=function(){this.Uv(this.$p())};q.Uv=function(a){var b=this.I.clone();b.setQuery(a);b.Js(Fo);this.QT&&this.P.Ma.Ak();this.P.X.Kb(b)};q.d4=function(a,b,c){var e=this.I.clone();e.setQuery(this.$p());e.Js(Fo);var f=e.Xp();f&&f.LK()&&e.Aa(Fo,15);e.Aa(Pi,a);e.Aa("imgc",b);e.Aa(Oi,c);this.P.Ma.Ak();this.P.X.Kb(e);a&&this.P.ba.nc(87);(b||c)&&this.P.ba.nc(88)};
q.setActive=function(a){a&&this.$p()!=this.I.getQuery()&&(this.Eb.value=this.I.getQuery()||"",this.dispatchEvent(new YX(this.$p())))};q.EM=function(a){a&&this.AA&&this.AA.kba(this.I)};q.focus=function(){try{return this.Eb.focus(),!0}catch(a){return qv(this.F,ec),!1}};q.o=function(){G(this.I);G(this.LF);G(this.Eb);G(this.$l);G(this.AA);G(this.Yj);WX.c.o.call(this)};var YX=function(a){H.call(this,"T");this.CK=a};B(YX,H);q=WX.prototype;
q.uz=function(a){a=iA(a);a.width||(a.width=0);a.height||(a.height=0);return a};q.GI=function(a){a=lA(a);a.width||(a.width=0);a.height||(a.height=0);return a};q.Vja=function(a){return this.aY(kA(a))};q.Zha=function(a){return this.aY(Rz(a))};q.aY=function(a){a.top=a.top||0;a.bottom=a.bottom||0;a.right=a.right||0;a.left=a.left||0;return a};var ZX=function(a,b){if(u(b)){switch(b){case 3:return"Too many items selected. Please deselect one or more.";case 5:return"Maximum file size exceeded. Please deselect one or more.";case 4:return"Maximum file size exceeded.";case 1:return Mc;case 7:return Mc;case 2:return a.vi().Kl(oV);case 6:return"The owner of one or more of these files has disabled downloading."}return"An error occurred. Please try again."}return""},$X=function(a){var b=a.v,c=b.y1,e=b.Bsa;b=b.z1;var f=[];a=a.Ma;var g=a.CY();b&&
a.DY()>b&&f.push(5);c&&g>c&&f.push(3);e&&g<e&&f.push(2);return f};var aY=function(a,b,c,e){vD.call(this,e);this.P=a;this.I=b;this.vCa=FW(b);this.f0=c;this.sE=null};B(aY,vD);q=aY.prototype;q.g=function(){aY.c.g.call(this);var a=this.I;a=a.getQuery()?[3,5]:a.RK()?[3,10,2,8,9]:[3,10,2,8];for(var b=0;b<a.length;b++)this.Bx(DW(a[b]),a[b]);U(this.b(),Il);U(this.b(),"picker-sort-dropdown-menu")};q.B=function(){aY.c.B.call(this);this.A().listen(this,k,this.wu)};q.vEa=function(a){this.f0=a;this.sE&&(this.sE.C(!a),this.sE.U(!a))};
q.wu=function(a){var b=this.I.clone();b.Aa(Fo,a.target.$);this.P.X.Kb(b)};q.Bx=function(a,b){a=new qD(a,b);b==this.vCa&&(a.Fw(!0),a.ag(!0));this.ca(a,!0);8==b&&(this.sE=a,this.vEa(this.f0))};var bY=function(a){this.rm=void 0;this.VZ=a};B(bY,aD);bY.prototype.g=function(a){return a.j().g(d,this.Zd(a))};bY.prototype.Bd=function(a){bY.c.Bd.call(this,a);a=a.DI();if(!this.VZ){a[0].Yg(2);for(var b=1;b<a.length-1;++b)a[b].Yg(3);a[a.length-1].Yg(1)}};bY.prototype.kEa=function(a){a=a.DI();if(this.VZ){for(var b,c=0;c<a.length;c++){var e=a[c];e.C(!e.Rd());e.Rd()||(b=e)}b.mo(!0)}};bY.prototype.S=function(){return"picker-segmentedbuttonbar"};var cY=function(a,b,c,e){C(1<=a.length,"The button bar should have at least 1 button");mD.call(this,Ci,e||new bY,c);this.Me(!1);this.rO(!0);this.O=new WD;D(a,this.qba,this);b?this.G6(b):(a=this.O.Pia(),C(a,"First button cannot be null"),this.lk(a))};B(cY,mD);q=cY.prototype;q.B=function(){cY.c.B.call(this);this.A().listen(this.O,en,y(this.dispatchEvent,this,tf))};q.qba=function(a){a.tb(8,!0);this.O.sc(a);this.A().listen(a,k,this.fq);this.ca(a,!0)};q.lk=function(a){this.O.xa()!=a&&(this.O.Bb(a),this.M.kEa(this))};
q.$z=function(){return this.O.xa()};q.rY=function(){return this.$z().getValue()};q.G6=function(a){var b=gs(this.DI(),function(b){return a==b.getValue()},this);b&&this.lk(b)};q.DI=function(){return this.O.Gj()};q.fq=function(a){this.lk(a.target)};var dY=function(a,b,c){WU.call(this,a,c);this.I=b;this.Yf=new WX(a,b,c);this.Y(this.Yf);this.Qy=this.rt=this.Hh=null};B(dY,WU);q=dY.prototype;
q.g=function(){var a=this.j().g(d,"picker-toolbar");this.Na(a);this.Yf.qAa(a);this.ca(this.Yf,!0);this.IBa()&&(a=zW(this.I,this.getContext())?ti:Kj,this.Hh=new cY([this.EG("List view",Kj,"picker-spr-list-view"),this.EG("Grid view",ti,"picker-spr-grid-view")],a,this.j(),new bY(!0)),this.Y(this.Hh),this.ca(this.Hh,!0),U(this.Hh.b(),"picker-drive-view-switcher"));this.HBa()&&(this.xba(),this.Hh&&U(this.Hh.b(),"picker-drive-view-switcher-with-drive-sort"))};
q.B=function(){dY.c.B.call(this);this.Hh&&this.A().listen(this.Hh,tf,y(this.Kma,this))};q.Kma=function(){var a=this.Hh.rY()==ti;this.getContext().ie.ua(function(b){b.U9.yya("dl",!a)});this.getContext().Xo.K4(a?"Changed to grid view.":"Changed to list view.",rm)};q.EG=function(a,b,c){var e=this.j();c=e.g(d,{"class":c+" picker-drive-view-switcher-button"},"\u00a0");e=new hG([c],e);e.setValue(b);e.UD(1);e.g();e.TD(!0);e.Wc(a);return e};
q.setActive=function(a,b){this.Yf.setActive(a,b);this.Hh&&this.Hh.G6(zW(this.I,this.getContext())?ti:Kj)};q.EM=function(a){this.Yf.EM(a)};q.focus=function(){return this.Yf.focus()};q.IBa=function(){return this.getContext().v.UV&&oR(this.I.qa)&&this.I.qa!=Kg&&!this.I.getOption(lk)&&!this.I.aB()};q.HBa=function(){var a=this.getContext().v;return a.Om&&a.Vfa&&oR(this.I.qa)&&15!=this.I.getOption(Fo)&&!this.I.aB()};
q.xba=function(){var a=this.j();this.Qy=new aY(this.getContext(),this.I,!1,a);this.Y(this.Qy);this.Qy.render(this.b());this.rt=new VD(a.g(d,"picker-spr-sort picker-docsortoptions-menu-button-content"),this.Qy,AG.H(),a);this.Y(this.rt);this.ca(this.rt,!0);a=this.rt.b();kF(a,"Sort options",void 0);fC(this.rt.b(),"picker-docsortoptions-menu-button",!0)};var eY=function(a,b,c,e,f){this.Us=qW(b,a.v);uW.call(this,a,b.lu(),f);this.I=b.clone();(this.Nb=this.KBa()?new dY(a,b,f):null)&&this.ca(this.Nb);this.Fa=this.hea(e,c,f);this.wG=null;this.Hk={};this.Q4=new kE(this.t1,400,this);this.rl=null;this.Da=ov("picker.ui.PickerDataView");this.R4=this.Ji=this.sv=this.Ai=this.aH=null;this.Zf="";this.FK=this.Cu=!1;this.Py=null};B(eY,uW);q=eY.prototype;
q.KBa=function(){var a=this.I;if(a.Ca(zl)){var b=a.getType();return b==Nh?!0:!b&&!a.getOption(m)&&!a.getOption(Li)}return a.getOption(Li)?!1:a.Ca(ke)||a.Ca(Ig)||a.Ca(Jg)||a.Ca(Kg)||a.Ca(Mg)||a.Ca(Tg)||a.Ca(Ch)||a.Ca(Hh)||a.Ca(Ni)||a.Ca(sl)||a.Ca(tl)||a.Ca(wm)||a.Ca(Lo)||a.Ca(Rn)||a.Ca(Xo)||a.Ca(Wp)||a.Ca(gq)};
q.g=function(){var a=this.j(),b=this.Fa;b.g();this.rl||this.sea();this.wG=a.g(d,"picker-content-container",b.b());b=a.g(d,"picker-content picker-dataview",this.wG);this.Na(b);if(b=this.Nb)b.g(),a.Su(b.b(),this.wG);this.C(this.Wa)};q.hEa=function(a){this.I.$f(a)};q.sea=function(){this.rl=new RW(this.j());this.Y(this.rl);this.rl.g()};
q.B=function(){this.Ji=this.Ji||VR(this.b());eY.c.B.call(this);this.rl&&this.b().parentNode.appendChild(this.rl.b());this.I.A8()&&(this.R4=new jz(this.r9,200,this),this.Nb&&this.Y0(this.Nb.Yf));var a=this.Fa;a.B();this.A().listen(a,["check","uncheck"],this.Sna).listen(a,"open",this.ina).listen(a,vg,this.iA);this.Ji&&this.A().listen(this.Ji,bn,y(this.Q4.Ht,this.Q4))};q.Y0=function(a){this.A().listen(a,"T",function(a){((this.Zf=a.CK)||this.I.getQuery())&&this.Zf!=this.I.getQuery()&&(this.FK=!0,this.R4.start())})};
q.Pa=function(){eY.c.Pa.call(this);this.Fa.Pa()};q.BBa=function(){var a=this.j();try{if(this.Nb&&a.contains(this.Nb.b(),a.Rt()))return!1}catch(b){}return!0};q.nda=function(){this.Cu||this.kk()};q.kk=function(){var a=this.I;return this.BBa()?this.Nb&&!a.getQuery()&&(a.Ca(gq)||a.Ca(Ni)||a.Ca(Wp))?(this.Cu=!0,M(function(){this.Nb.focus()},0,this),!0):this.Cu=this.getContainer().kk():this.Cu=!0};
q.setActive=function(a,b){eY.c.setActive.call(this,a,b);this.Nb&&this.Nb.setActive(a,b);a&&(this.FK&&(this.Zf="",this.r9()),this.FK=!1)};q.C=function(a){var b=this.b();b.style.top=a?"":Ga;b.style.left=a?"":Ga;b.style.right=a?"":"9500px";this.Nb&&this.Nb.EM(a);E&&Qt("7")};q.getToken=function(){return this.I};q.hea=function(a,b,c){return new wW(a,b||vW.H(),c)};q.getContainer=function(){return this.Fa};q.$ya=function(a){this.Hk=a};
q.fN=function(a){this.Ri("vdr");this.sv&&(xy(this.sv),delete this.sv);this.Py&&(this.removeChild(this.Py,!0),delete this.Py);for(var b=this.Hk,c={},e,f=0;f<a.length;f++)e=a[f].getId(),c[e]=b[e],c[e]&&c[e].u1&&c[e].u1(),delete b[e];this.$ya(c);this.pfa(b);this.Tva(a);this.ji("vdr")};q.pfa=function(a){var b=this.getContainer();Js(a,function(a){a&&a.dispose&&(b.removeChild(a,!0),a.dispose())})};q.Tva=function(a){this.getContainer().Ke(!0);this.b().scrollTop=0;this.appendData(a)};
q.Uva=function(a){var b=this.zz(a),c=this.getContext().Ma;if(b){var e=b.K();if(this.xd().yG(a))b.update();else for(var f=this.dI(this.xd().dc()),g=0;g<f.length;g++){var h=f[g];if(h.getAttribute("oid")==e.getId()){Vs(this.Hk,a);Rs(this.Hk,h.getId())?(this.getContainer().removeChild(b,!0),b&&b.dispose&&b.dispose()):(Ws(this.Hk,h.getId(),b),b.Xh(h.getId()),this.OA(b)&&b.BB&&b.BB(),b.update());c.Rd(e.getId())&&(c.MD([e.getId()],!1),c.MD([h.getId()],!0));break}}}else pv(this.Da,"redrawData on doc not in view.")};
q.appendData=function(a){var b=this.getContext(),c=b.Ma,e=this.Hk;D(a,function(a){var f=a.getId(),h=e[f]=e[f]||this.BG(a);a.JK()||b.v.Jqa(a.Jg)||h.tb(16,!1);this.tba(h);h.ke(c.Rd(f))},this);b.v.P_(Im)&&b.vb.$r(a,Im);this.QL();this.nda();a=this.getContainer().Xa();(0==a||this.OA(this.getContainer().pa(a-1))&&this.xd().el())&&M(this.ju,0,this);this.dispatchEvent("dataAppended")};q.Tg=function(a){eY.c.Tg.call(this,a);this.VL()};q.tba=function(a){this.getContainer().ca(a,!a.V)};
q.awa=function(a){var b=this.zz(a);b&&(this.Fa.removeChild(b,!0),b.dispose(),delete this.Hk[a],this.QL())};q.Jr=function(a){this.rl&&this.rl.C(a)};q.Gt=function(a){eY.c.Gt.call(this,a);this.VL()};
q.VL=function(){if(this.Wa&&this.getContext().v.Fl&&this.xd()&&this.xd().Eg()){var a=this.getToken().getOption("maxPrefetchCollections")||0;if(!(0>=a))for(var b=this.dI(this.xd().dc()),c=this.getContext().ba,e=0,f=0;f<b.length&&e<a;f++)if(b[f].JK()){e++;var g=this.zY(b[f]).lu();c.xd(g).bI||c.requestData(g,Jq,Jq,!0)}}};q.BG=function(a){var b=this.aH;b||(b=this.aH=new KW(this.getContext().v.PB));b=new LW(this.getContext(),a,b,this.j());a.JK()&&!this.I.Ca(Jm)&&(b.tb(64,!0),b.tb(16,!1),b.sD(64,!1));return b};
q.Iy=function(){this.MV(this.I.Mja());if((this.I.Ca(ke)||this.I.Ca(Ig)||this.I.Ca(Jg)||this.I.Ca(Kg))&&Ns(this.I.getOptions(),function(a,c){return c==kl?!1!==a:c==Qi?!0:null==a})){var a=this.getContext();a.ie.ua(y(function(b){b.Ufa&&this.ca(this.Py=new yW(a,this.j()),!0)},this))}eY.c.Iy.call(this)};
q.MV=function(a){var b=this.j();this.sv||(this.getContainer().J().appendChild(this.sv=b.g(zd,null,b.g(xd,null,this.Ai=b.g(d,"picker-dataview-message")))),MB(this.Ai,Ro),T(this.Ai,Mj,We));v(a)?b.bg(this.Ai,a):(b.Ke(this.Ai),this.Ai.appendChild(a))};q.y9=function(a){var b=this.zz(a);b&&b.ke(this.getContext().Ma.Rd(a))};q.zz=function(a){return this.Hk[a]};
q.Sna=function(a){var b=a.target.K(),c=this.getContext();b=b.getId();var e=c.Ma;if(e.Rd(b)!=("check"==a.type)){if(!e.ax(b,c.v.PB?"cb":"cl"))return!1;(a=this.zz(b))&&a.Vwa()}return!0};q.ina=function(a){a=a.target.K();a=this.zY(a);this.getContext().X.Kb(a)};q.zY=function(a){var b=this.I.clone();this.getContext().v.Hn?b.Aa(m,a.jb):b.Aa(m,a.getId());b.setQuery(null);b.$f(this.I);a.Jg==Be?b.Aa(lk,Rm):b.getOption(lk)==Rm&&b.Aa(lk,void 0);return b};
q.iA=function(a){a=a.target;if(a.pb(16)&&a.isEnabled()){a=a.K();var b=this.getContext(),c=b.Ma;c.Rd(a.getId())&&c.Ak();c.ax(a.getId(),"cl")&&(c=$X(b),ks(c)&&b.vb.$r([a]))}};q.QL=function(a){a=a||1;5<a||(this.Ji&&!this.Ji.offsetHeight?M(y(this.QL,this,a+1),20):this.t1())};q.t1=function(){for(var a=this.getContainer(),b=a.Xa(),c=this.Qia();c<b;c++){var e=a.pa(c);e&&this.OA(e)&&e.BB&&e.Bqa&&!e.CA&&(e.BB(),c==b-1&&this.ju())}};
q.Qia=function(){if(!this.Ji)return 0;for(var a=this.Ji,b=a.scrollTop+a.offsetHeight,c=this.getContainer(),e=0,f=c.Xa()-1;e<f;){var g=e+f>>1,h=c.pa(g);h=h.b();if(h.offsetTop+h.offsetHeight<a.scrollTop)e=g+1;else if(h.offsetTop>b)f=g-1;else{for(h=c.pa(g-1);0<g&&h&&this.OA(h);)g--,h=c.pa(g-1);return g}}return 0};
q.OA=function(a){if(!this.Wa)return!1;if(!this.Ji)return!0;var b=this.Ji,c=b.scrollTop-b.offsetHeight;b=b.scrollTop+2*b.offsetHeight;a=a.b();return a.offsetTop<b&&a.offsetTop+a.offsetHeight>=c};q.r9=function(){this.I.setQuery(this.Zf);this.uAa(this.I.lu());this.getContext().X.nw(this.getContext().X.ac,this.I);this.ju(!0)};q.FJ=function(a){a.data.visible&&this.Wa&&(this.Cu=!1);eY.c.FJ.call(this,a);this.VL()};q.o=function(){eY.c.o.call(this);this.I.dispose();this.Fa.dispose();this.aH=null};q.Qp=function(){return this.Us};var fY=function(a,b){XU.call(this,a,b);this.VQ=new L;this.A().listen(a.X,"B",this.wna);a=a.Ma;a.P5(y(this.Oga,this));a.Xya(y(this.Dia,this))};B(fY,XU);q=fY.prototype;q.F=ov("picker.ui.ViewManager");q.ac=null;q.Wo=null;q.mv=null;q.qm=null;var gY=[];q=fY.prototype;q.g=function(){fY.c.g.call(this);var a=this.ac;a&&(a.g(),this.j().appendChild(this.b(),a.b()))};q.tc=function(){return!0};q.Ka=function(a){fY.c.Ka.call(this,a);a=this.j().Ym(a);var b=this.ac;b&&(a?b.R(a):b.render(this.b()))};
q.wna=function(a){if(a.wfa){var b=this.getContext().v,c=b.oH;b.et(!0);this.nw(a.bx);b.et(c)}else this.nw(a.bx);lv(a.bx.jk())};q.Xka=function(a){var b=this.VQ,c=a.Ef(),e=b.get(c);if(!e){var f=this.getContext();e=qW(a,f.v);(f=f.Gh)&&e&&f.Ri(e,"vup");e=this.rX(a).create(a,this.getContext(),this.j());this.A().listen(e,tf,this.NJ).listen(e,"z",this.Doa);b.set(c,e);this.ca(e)}return e};
q.rX=function(a){for(var b=this.getContext().v,c=0;c<gY.length;c++)if(gY[c].oT(a,b))return gY[c];throw Error("No creator registered for view creation.");};q.nw=function(a){K(this.F,"SetActiveView initial history string: "+a.Kz());this.mv=a;var b=this.rX(a);if(b.e4(a,this.getContext().v)){var c=2,e=y(function(){0==--c&&this.TN(a)},this);b.load(e);this.getContext().ie.ua(e)}else b.Dh()?this.TN(a):b.load(y(this.TN,this,a))};
q.TN=function(a){if(this.mv&&this.mv.ad(a)){this.mv=null;var b=this.getContext(),c=b.X,e=a.getOptions(),f=this.Xka(a);a.getOption(cn)&&f instanceof eY&&f.hEa(a.Bc);if(f!=this.ac){var g=b.Gh;g&&!this.ac&&g.Oza(tW(a,b.v));this.V&&!f.V&&f.render(this.b());this.Wo&&this.Wo.q8&&(this.Wo.q8(),this.Wo=null);var h;this.ac&&this.ac.b()&&(h=lA(this.ac.b()));c.Bfa(a);f.setActive(!0,e);g&&!this.ac&&(g.KC("livr"),rW(a)||g.oN());!b.v.oH&&this.ac&&f.tS?(this.Wo=f,f.tS(this,this.ac,h,y(this.NW,this,f,a))):this.NW(f,
a)}}};q.NW=function(a,b){this.Wo=null;var c=this.getContext().X,e=this.ac;e&&e.setActive(!1);this.ac=a;c.nw(a,b);this.getContext().v.Fl&&a.kk();this.z9();this.dispatchEvent(tf);c.Efa(b);K(this.F,"SetActiveView final history string: "+b.Kz())};q.Oga=function(a){var b=this.ac;if(b){var c=[];b=b.Rp().nb();for(var e=0;e<a.length;e++)is(b,a[e])&&c.push(a[e]);return c}return a};q.NJ=function(a){a.target instanceof XU&&a.target.Wa&&this.z9()};
q.Doa=function(a){var b=this.getContext();a.currentTarget instanceof XU&&(a=a.currentTarget.Qp(),(b=b.Gh)&&a&&b.ji(a,"vup"))};q.z9=function(){this.getContext().Ma.jEa()};q.Dia=function(){var a=this.ac;return a?a.Rp():new LG};q.o=function(){fY.c.o.call(this);this.VQ.clear();this.mv=this.ac=this.VQ=null};var hY=function(a,b){XU.call(this,a,b);var c=a.v,e=c.UK()?new oW(a,b):c.hK?new RV(a,b):new jW(a,b);this.Y(e);this.Sf=e;this.sx=new fY(a,b);this.SB=e=c.SB;this.Aj=(c=c.Hn)?new yV(a,b):null;this.Y(this.Aj);this.nf=c?new DV(a,b):new pW(a,b);this.Y(this.nf);this.ca(this.nf);this.Aj?(this.nf.Se(this.Aj),this.nf.qza(this.Aj),this.Aj.Se(this.sx)):this.Sf&&!e?(this.nf.Se(this.Sf),this.Sf.Se(this.sx)):this.nf.Se(this.sx);jF(this.j());this.Bs=null};B(hY,XU);q=hY.prototype;
q.iia=function(a){switch(a){case Ui:return"picker-chrome-inline";case Ek:return"picker-chrome-none";default:return""}};
q.g=function(){var a=this.getContext().v,b=a.hK,c=this.j(),e=this.Bs=c.g(d,"picker-main-overlay",c.g(d,"picker-main-overlay picker-busy"));R(e,!1);c=c.g(d,"picker-main-container "+this.iia(a.tda),e);a.Dd()&&U(c,"picker-min-container");fC(c,"picker-navhidden",this.SB);fC(c,"picker-navhorizontal-new",b&&a.Om);fC(c,"picker-ie",E);fC(c,"picker-people-picker",a.UK());fC(c,"picker-gplus",a.b0());this.Na(c);c.setAttribute(vi,"ghid-pmc");a=this.getContext().vi().Q3(LV);c.appendChild(a);this.nf?(this.nf.g(),
c.appendChild(this.nf.b())):this.SB?(this.sx.g(),c.appendChild(this.sx.b())):(this.Sf.g(),c.appendChild(this.Sf.b()));this.Xpa()};
q.B=function(){hY.c.B.call(this);var a=this.getContext().Gh;a&&(a.KC("lav"),a.ji("ev","evavc"));a=this.getContext().v;this.getContext().Xo.K4(a.Pd(),We);var b=this.j().K(),c=CS().isNative();c||XR(b.body,this.A());this.A().listen(b,zj,y(this.TZ,this,!1),!0).listen(b,nk,y(this.TZ,this,!0),!0);this.A().listen(b,zj,this.Ah,c&&a.Dd()).listen(b,Bj,this.iq).listen(this.getContext().X,"D",this.jta).listen(this.getContext().ce,dq,this.mua);if(a.Dd()&&!a.ft)if(c)if(this.A().listen(b,nk,this.aZ,!0),E){try{var e=
b.activeElement}catch(g){}for(;e&&e.nodeName==Fc;){try{var f=Fy(e)}catch(g){break}b=f;e=b.activeElement}this.A().listen(b,nk,this.aZ,!0);this.A().listen(b,wg,this.ZY)}else this.A().listen(b,hf,this.ZY);else E||this.A().listen(b,hf,this.Xla,!0);a.UK()?(e=this.getContext().v.ui()[0][2]||{},e.type=e.type||tl,this.Sf.RBa(e)):this.Sf.Nw(this.wX());a.Pea&&IV.H().e3("opr")};
q.wX=function(){var a=this.Sf,b=this.getContext().v.jfa;b?b instanceof pR?a=QU(b.getId(),b.wg(),b.getOptions()):(a=JSON.parse(b),a=QU(a[0],a[1],a[2])):a=a.Gz();return a};q.jta=function(a){a.Xca&&!dA(this.Bs)?(R(this.Bs,!0),(new JA(this.Bs,500,function(a){return a/2})).play()):R(this.Bs,!1)};
q.mua=function(a){a=a.data.visible;var b=this.getContext(),c=b.Bi;if(b.v.Hn&&b.v.Dd()&&Gq(a)&&!a){if(b.vb.U2)b.ba.nc(80),b.vb.v6(!1);else{b.ba.nc(73);var e=b.X.Vb;e&&e.getOption(Uj)?b.ba.nc(75):1==c.EV?b.ba.nc(74):1==c.n7&&b.ba.nc(76)}c.LAa(0);c.Vya(0);b.ba.YW()}b.v.Dd()&&a&&(c=(c=c.xDa)||this.wX(),b.X.Kb(c,!0));(b=b.Gh)&&a&&b.U(!0)};
q.Ah=function(a){if(27==a.keyCode&&!this.Qqa()){var b=this.getContext().v.Dd(),c=CS().isNative();b&&c?this.getContext().v.Fl&&(this.getContext().vb.Vi(),a.preventDefault(),a.stopPropagation()):this.getContext().vb.Vi()}(13==a.keyCode||3==a.keyCode)&&(b=a.target)&&bC(b,"picker-disambiguation-radio-internal-link")&&this.getContext().Bi.I5(!1);(b=this.getContext().X.Vb)&&!b.getOption(Uj)&&b.getOption("emak")&&this.nf instanceof DV&&(a.keyCode==(Bt?18:17)?(this.getContext().v.EH(!0),this.nf.gA(),a.preventDefault(),
a.stopPropagation()):this.getContext().v.hh&&13!=a.keyCode&&3!=a.keyCode&&(this.getContext().v.EH(!1),this.nf.gA()))};q.iq=function(a){var b=this.getContext().X.Vb;b&&!b.getOption(Uj)&&b.getOption("emak")&&this.nf instanceof DV&&this.getContext().v.hh&&(this.getContext().v.EH(!1),this.nf.gA(),a.preventDefault(),a.stopPropagation())};q.aZ=function(a){if(this.getContext().v.Fl){var b=this.getContext().v.Yp()||this.b();Ey(b,a.target)||this.getContext().vb.Vi()}};
q.Xla=function(){if(this.getContext().v.Fl){if(!this.getContext().Bi.fW){var a=this.j().K();if(a.hasFocus&&!a.hasFocus()){this.getContext().Bi.I5(!0);return}}M(function(){var a=this.j().K();a.hasFocus&&!a.hasFocus()&&this.getContext().vb.BDa()},0,this)}};q.ZY=function(a){if(this.getContext().v.Fl){var b=this.getContext().v.Yp()||this.b(),c=Zx(b);if("undefined"!=typeof document.activeElement){if(a=c.activeElement,!a||Ey(b,a)||"BODY"==a.tagName)return}else if(a.target!=c)return;this.getContext().vb.Vi()}};
q.TZ=function(a){fC(this.Ta(),"hideable-focus-shown",!a);fC(this.Ta(),"hideable-focus-hidden",a)};q.Xpa=function(){var a=zt?"-webkit":yt?"-moz":void 0;a&&GN(this.getContext().vi().render(KV,{prefix:a,selector:"picker-progressbar-anim"}),this.j())};q.Qqa=function(){var a=this.getContext().X.Vb;return!!a&&a.Ca(xl)};var iY=function(){cW.call(this,"picker-font-control")};B(iY,cW);iY.prototype.g=function(a){var b=a.K();a=a.j();var c=a.g(zd,"picker-font-control-tablerow");b=b.jb;b=a.g(xd,{"class":"picker-font-control-name-cell",style:Dh+b+'::Menu"'},a.g(gd,"picker-spr-added-check"),b);a.append(c,b);return c};var jY=function(){this.pI={};this.Np=null};Kq(jY);jY.prototype.bS=function(a,b){for(var c=[],e=0;e<a.length&&!(4093<Os(this.pI));e++){var f=a[e],g=f.jb;f=f.getAttribute("affr");null==f||u(this.pI[g])||(c.push(f),this.pI[g]=!0)}if(0<c.length)if(this.Np)if(this.Np.styleSheet)for(e=0;e<c.length;e++)this.Np.styleSheet.insertRule(c[e],this.Np.styleSheet.cssRules.length);else this.Np.firstChild.appendData(c.join("\n"));else this.Np=GN(c.join("\n"),b)};var kY=function(){this.rm=void 0};B(kY,vW);kY.prototype.g=function(a){a=a.j();return a.g(vd,this.S()+"-content picker-listrenderer-table",a.g(wd))};var lY=function(a,b,c){eY.call(this,a,b,new kY,Up,c);this.eha=new iY};B(lY,eY);lY.prototype.appendData=function(a){jY.H().bS(a,this.j());lY.c.appendData.call(this,a)};lY.prototype.BG=function(a){return new aW(this.getContext(),a,this.eha,this.j())};lY.prototype.iA=Jq;var mY=function(a){V.call(this,a);this.ws=new $E(this.re,!0);this.cb=new GD;this.YZ=0;this.DW=[]};B(mY,V);q=mY.prototype;q.re="jfk-bubble";q.yP=!0;q.we=!1;q.Ql=function(a){this.ws.Ql(a);this.ha()};q.setPosition=function(a,b,c,e){C(!this.V,"Must call setPosition() before rendering");this.ws.setPosition(a,b,c,e)};q.QBa=function(a){C(!this.V,"Must call setShowClosebox() before rendering");this.yP=a};q.wk=function(a){C(!this.V,"Must call addClassName() before rendering");this.DW.push(a)};
q.eb=function(a){C(v(a)||a.nodeType||a instanceof JE||a instanceof hx,"Content must be a string or HTML.");this.uc=a;this.A5(a)};q.A5=function(a){var b=this.J();a&&b&&(v(a)?Gy(b,a):a instanceof JE?Ox(b,a.Ti()):a instanceof hx?Ox(b,a):(Ox(b,yx),b.appendChild(a)))};q.ow=function(a){this.cb.ow(a)};q.pw=function(a){this.ws.pw(a)};q.Ni=function(a){this.we=a};q.J=function(){return this.Fc(this.re+"-content-id")};
q.g=function(){this.Na(VE(SG,{PBa:this.yP,uid:"bubble-"+Rq(this)},void 0,this.j()));this.A5(this.uc);R(this.b(),!1);this.cb.ur(this.b());this.Sda(this.cb);cC(this.b(),this.DW)};q.Sda=function(a){At||a.SD(rG(this.b(),.218),sG(this.b(),.218))};
q.B=function(){mY.c.B.call(this);this.A().listen(this.cb,[ff,Cn,ef,zi],this.kna);this.yP&&this.A().Hq(this.Fc(this.re+"-closebtn-id"),dK,Wq(this.C,!1));var a=this.b();C(a,"getElement() returns null.");var b=this.Fc(this.re+"-arrow-id");C(b,"No arrow element is found!");this.ws.kO(a,b);this.cb.setPosition(this.ws)};q.C=function(a){this.cb.C(a)};q.N=function(){return this.cb.N()};q.WA=function(){return this.cb.WA()};q.ha=function(){this.N()&&this.cb.ha()};
q.o=function(){this.cb.dispose();delete this.cb;mY.c.o.call(this)};q.lq=function(){var a=Vz(this.b());this.YZ&&a.y<this.YZ&&this.C(!1);return!1};q.kna=function(a){if(a.type==Cn||a.type==zi){var b=this.A(),c=this.j();c=E?c.getWindow():c.K();a.type==Cn?b.listen(c,bn,this.lq):b.ta(c,bn,this.lq)}b=this.dispatchEvent(a.type);this.we&&a.type==zi&&this.dispose();return b};var nY=function(a,b,c,e){YU.call(this,a,"picker-actionpane-root",El,"picker-actionpane-content",lf,e);this.ik=this.Fea();this.Y(this.ik);this.V4=b;this.di=this.eea();this.Y(this.di);this.Yx=new V;this.ps(this.Yx);this.dj=null;this.sT=c;this.F=ov("picker.ui.ActionPane");this.E9=this.G9=this.KQ=this.Bo=this.Xe=this.nM=this.xv=this.Lh=null;this.Gc=new WV(a,e);this.Y(this.Gc);a.v.iba&&a.ie.ua(y(function(a){u(a.UR)&&this.hAa(a.UR,a.gba)},this));this.A().listen(this.getContext().pu(),"Q",this.update)};
B(nY,YU);var oY=0;q=nY.prototype;q.Fea=function(){return this.rU(this.getContext().v.bn(),!0)};q.eea=function(){return this.rU(Yb)};q.rU=function(a,b){return b?iG(this.getContext().v.bn(),this.j()):new hG(a,this.j())};q.EG=function(a,b,c){var e=this.j();c=e.g(d,{"class":c+" picker-actionpane-imagebutton-icon"},"\u00a0");a=e.g(d,"picker-actionpane-imagebutton-text",a);e=new hG([c,a],e);e.setValue(b);return e};q.Gd=function(a){var b=this.j();b.Su(b=b.g(gd),this.di.b());a.render(b)};
q.hAa=function(a,b,c){var e=this.j();this.Lh?(e.Ke(this.xv),e.appendChild(this.xv,e.Nh(xE(a)))):(this.xv=e.g(xd,"picker-actionpane-notice-td",e.Nh(xE(a))),this.Lh=e.g(vd,c?c:"picker-actionpane-notice",e.g(wd,null,e.g(zd,null,this.xv))),this.Sa&&(e.kl(this.Lh,this.Sa.lastChild),this.XC()));a=this.xv.getElementsByTagName("a");if(a.length&&b){b=kx(b);if(!this.nM){var f=this.nM=new mY(e);f.eb(b);f.Ql(a[0]);f.QBa(!1);f.setPosition(2,0);f.render(this.getContext().v.Yp());U(f.b(),"picker-actionpane-notice-popup");
this.A().listen(a[0],nk,function(a){f.C(!0);a.stopPropagation();a.preventDefault()})}this.nM.eb(b)}};q.XC=function(){M(function(){if(this.Lh){var a=iA(this.Sa).width,b=this.Xm(Dl);D(b,function(b){var c=oA(b);c&&(a-=c.right?c.right:0,a-=c.left?c.left:0);(b=iA(b))&&b.width&&(a-=b.width)});0<a&&Q(this.Lh,"max-width",a+n)}if(this.Xe){this.j();b=aA(this.Sa).height;var c=lA(this.Xe).height;b>c?Q(this.Xe,"margin-top",(b-c)/2+n):Q(this.Xe,"margin-top","0px")}},0,this)};
q.g=function(){nY.c.g.call(this);var a=this.j(),b=this.Sa,c=this.Yx;c.g();b.appendChild(a.g(d,Dl,c.b()));c=this.Yx.b();this.ik.render(c);this.ik.b().id=pm+oY++;this.ik.b().setAttribute(vi,"ghid-psc");this.di&&(this.di.render(c),this.di.b().id=pm+oY++,R(this.di.b(),!this.LNa));this.dj&&(this.dj.g(),b.appendChild(this.dj.b()));this.Bo&&(c=a.g(d,"picker-actionpane-upload-button-float-item"),b.appendChild(c),this.Bo.render(c),this.Bo.b().id=pm+oY++,U(this.Bo.b(),"picker-actionpane-upload-button"));this.Gc.getUrl()&&
(this.Gc.g(),this.ps(this.Gc),b.appendChild(this.Gc.b()));(c=this.getContext().v.hba)&&b.appendChild(a.g(d,"picker-actionpane-actionpanetext",a.createTextNode(c)));this.Xe=a.g(d,Fl);R(this.Xe,!1);MB(this.Xe,Ro);T(this.Xe,Mj,rm);b.appendChild(this.Xe);this.Lh&&(b.appendChild(this.Lh),this.XC());this.update();this.xb(E?72:69)};q.setActive=function(a,b){nY.c.setActive.call(this,a,b);this.dj&&this.dj.setActive(a,b)};
q.B=function(){nY.c.B.call(this);var a=this.A();a.listen(this.ik,k,this.Ona);this.di&&a.listen(this.di,k,this.yla);a.listen(this.j().getWindow(),Om,this.XC)};q.focus=function(){try{return this.lD||!this.di?this.ik.b().focus():this.di.b().focus(),!0}catch(a){return qv(this.F,ec),!1}};q.Ona=function(){this.V4?this.V4():this.getContext().vb.rQ()};q.yla=function(){this.sT?this.sT():this.getContext().vb.Vi()};q.Sh=function(a){this.lD=a;this.V&&this.update()};
q.update=function(){var a=this.getContext(),b=a.pu().bB();this.MZ=this.MZ||b;this.ik.U(this.lD&&(!b||a.v.Ixa));this.lD?this.ik.wk(Zl):this.ik.iN(Zl);this.Bo&&(a=this.MZ&&!b,R(this.Bo.b(),a),this.Bo.b().style.visibility=a?"":yi);this.Lh&&R(this.Lh,!b);this.rEa()};q.cs=function(a){this.Sh(a);this.dj&&this.dj.cs()};
q.rEa=function(){var a=this.j(),b=this.getContext().pu(),c=b.bB(),e=this.KQ;if(!c||this.MNa)e&&(R(e,!1),e.style.visibility=yi);else{c=this.G9;var f=this.E9;if(!e){var g;this.Sa.appendChild(e=this.KQ=a.g(d,"picker-actionpane-upload-status",c=this.G9=a.g(d,"picker-actionpane-upload-status-text"),g=a.g(d,Xh)));f=this.E9=new bW("picker-progress-bar",a);f.JD(0);f.HD(100);f.setValue(0);f.R(g);R(e,!1);g=aA(this.Yx.b()).width;Q(this.KQ,CS().Ge()?Pm:Ij,g+30+n)}g=b.YB;var h=b.Tz();g="Uploading "+((g<h?g+1:
g)+(" of "+h));a.Ke(c);a.append(C(c),g+"\u00a0\u00a0\u00a0");f.setValue(100*b.fka());R(e,!0);e.style.visibility=""}};q.z7=function(a,b,c){if(a&&b)switch(this.j().bg(this.Xe,b),eC(this.Xe,[Fl,Gl]),c){case 1:U(this.Xe,Gl);break;default:U(this.Xe,Fl)}R(this.Xe,a);this.$Ba(!a);a&&this.XC()};q.$Ba=function(a){this.Lh&&R(this.Lh,a);this.dj&&this.dj.WNa(a);this.Gc.b()&&R(this.Gc.b(),a)};var pY=function(a,b,c){qD.call(this,a,b,c);this.Fw(!0)};B(pY,qD);pY.prototype.Tc=function(){return this.dispatchEvent(k)};ZC(ei,function(){return new pY(null)});var qY=function(a,b,c,e){YU.call(this,a,"picker-fontbar-root","picker-fontbar-frame","picker-fontbar-content",op,e);this.Yf=new WX(a,b,e);this.I=b;this.iv=c;this.Ww=this.I.getOption(Eh)||"*";this.Ft=this.I.getType()||"a";this.Sw=this.I.getOption(Go)||"p";this.Vy=!!this.I.getOption("efsf");this.Pr=this.Lp=this.am=null};B(qY,YU);
var rY={"*":"All Scripts",arabic:"Arabic",bengali:"Bengali",cyrillic:"Cyrillic","cyrillic-ext":"Cyrillic Extended",devanagari:"Devanagari",greek:"Greek","greek-ext":"Greek Extended",gujarati:"Gujarati",gurmukhi:"Gurmukhi",hebrew:"Hebrew",kannada:"Kannada",khmer:"Khmer",latin:"Latin","latin-ext":"Latin Extended",malayalam:"Malayalam",myanmar:"Myanmar",oriya:"Oriya",sinhala:"Sinhala",tamil:"Tamil",telugu:"Telugu",thai:"Thai",vietnamese:"Vietnamese"},sY={a:"All fonts",d:"Display",h:"Handwriting",m:"Monospace",
s:"Serif",ss:"Sans Serif"},tY={p:"Popularity",a:"Alphabetical",da:"Date added",t:"Trending"};q=qY.prototype;
q.g=function(){qY.c.g.call(this);this.xb(75);var a=this.j();this.Yf.Hya(!1);this.Yf.g();var b=a.g(d,Xh);this.am=new XD("",void 0,AG.H());var c=this.getContext().v.fha;this.Bx(this.am,"*","All Scripts");this.xF(this.am,c.length==Os(rY)?rY:this.Jea(c));this.am.render(b);Q(this.am.Qa().b(),"max-height","400px");c=a.g(d,Xh);this.Lp=new XD("",void 0,AG.H());this.xF(this.Lp,sY);this.Lp.render(c);var e=a.g(d,Xh);this.Pr=new XD("",void 0,AG.H());this.xF(this.Pr,tY);this.Pr.render(e);b=this.Vy?a.g(d,Jl,b,
c,e):a.g(d,Jl,c,e);this.Sa.appendChild(a.g(d,"picker-fontbar-container",this.Yf.b(),b));this.A().listen(this.am,k,this.noa).listen(this.Lp,k,this.ima).listen(this.Pr,k,this.joa);this.UC()};q.Jea=function(a){for(var b={},c=0;c<a.length;c++){var e=a[c];b[e]=rY[e]}return b};q.xF=function(a,b){for(var c in b)this.Bx(a,c,b[c])};q.Bx=function(a,b,c){a.sc(new pY(c,b,this.j()))};
q.noa=function(a){var b=new zU(Fh);b.$f(this.I.Bc||this.I);b.Aa(Eh,a.target.getValue());b.Aa(tp,this.Ft);b.Aa(Go,this.Sw);b.Aa("efsf",this.Vy);this.getContext().X.Kb(b);this.UC();this.Ww=a.target.getValue()};q.ima=function(a){var b=new zU(Fh);b.$f(this.I.Bc||this.I);b.Aa(Eh,this.Ww);b.Aa(tp,a.target.getValue());b.Aa(Go,this.Sw);b.Aa("efsf",this.Vy);this.getContext().X.Kb(b);this.UC();this.Ft=a.target.getValue()};
q.joa=function(a){var b=new zU(Fh);b.$f(this.I.Bc||this.I);b.Aa(Eh,this.Ww);b.Aa(tp,this.Ft);b.Aa(Go,a.target.getValue());b.Aa("efsf",this.Vy);this.getContext().X.Kb(b);this.UC();this.Sw=a.target.getValue()};q.UC=function(){var a="Scripts: "+rY[this.Ww];this.am.setValue(this.Ww);this.am.uD(a);a="Show: "+sY[this.Ft];this.Lp.setValue(this.Ft);this.Lp.uD(a);a="Sort: "+tY[this.Sw];this.Pr.setValue(this.Sw);this.Pr.uD(a)};q.B=function(){qY.c.B.call(this);this.Yf.B()};var uY=function(a,b,c,e){YV.call(this,a,b,c,e)};B(uY,YV);uY.prototype.B=function(){uY.c.B.call(this);var a=this.M.qX(this);this.A().listen(a,qk,y(this.TY,this,!0)).listen(a,pk,y(this.TY,this,!1))};uY.prototype.TY=function(a,b){cA(b.target,a?.8:.5)};var vY=function(){};B(vY,cD);Kq(vY);vY.prototype.g=function(a){var b=a.j(),c=a.K().jb;a=pC.H().Nd();b=b.g(d,{"class":"picker-font-chip goog-inline-block",name:c},b.g(gd,{"class":"picker-font-chip-name",style:Dh+c+'::Menu"',id:a},c),b.g(gd,{"class":"picker-font-chip-x",role:mf,"aria-label":"Remove",tabIndex:0},b.g(gd,"picker-spr-close-box-tiny-black goog-inline-block")));T(b,Dj,a);b.style.paddingRight=E?b.style.paddingLeft="7px":b.style.paddingLeft="15px";return b};vY.prototype.qX=function(a){return a.b().children[1]};var wY=function(a,b,c){YU.call(this,a,"picker-fontbin-root","picker-fontbin-frame","picker-fontbin-content",Pm,c);this.Hs=new L;this.A().listen(a.Ma,"x",this.kma);this.Gs=null};B(wY,YU);q=wY.prototype;q.g=function(){wY.c.g.call(this);this.xb(200);var a=this.j();this.Gs=a.g(d,"picker-fontbin-chip-holder");a=a.g(d,"picker-fontbin-to",a.g(d,"picker-fontbin-header","My fonts"));this.Sa.appendChild(a).appendChild(this.Gs)};q.kma=function(a){D(a.Rc,y(this.p9,this))};
q.vV=function(a){this.getContext().Ma.MD([a.K().getId()],!1)};q.uu=function(a,b){if(13==b.keyCode||32==b.keyCode)this.vV(a),b.stopPropagation(),b.preventDefault();return!0};
q.p9=function(a){if(this.getContext().Ma.Rd(a)&&!this.Hs.Xb(a)){var b=this.getContext().ba.K(a);if(b){var c=new uY(this.getContext(),b,vY.H(),this.j());this.Hs.set(a,c);a=this.j().Xm("picker-font-chip",this.Gs);for(var e=!0,f=0;f<a.length;f++)if(a[f].name>b.jb){c.S3(a[f]);e=!1;break}e&&c.render(this.Gs);b=c.M.qX(c);this.A().listen(b,Bf,y(this.vV,this,c)).listen(b,Aj,y(this.uu,this,c))}}else!this.getContext().Ma.Rd(a)&&this.Hs.Xb(a)&&(c=this.Hs.get(a),this.Gs.removeChild(c.b()),c.o(),this.Hs.remove(a))};var xY=function(a,b,c,e){XU.call(this,a,e);this.I=b;this.iv=c;var f=new qY(a,b,c,e);f.Se(c);this.cha=f;b=new wY(a,b,e);b.Se(f);this.dha=b;a=new nY(a,y(this.moa,this),void 0,e);a.Se(b);this.ca(a);this.ic=a};B(xY,XU);q=xY.prototype;q.B=function(){xY.c.B.call(this);this.A().listen(this.getContext().Ma,"x",this.hq).ql(this.iv,tf,this.hq,!1,this).listen(this.getContext().ce,"select-fonts",this.Pna).listen(this.getContext().vb,Nm,y(this.Ll,this,0));this.iv.Y0(this.cha.Yf)};q.$K=function(){return!!this.getContext().Ma.xg(!0)};
q.moa=function(){for(var a=this.getContext(),b=a.ba,c=a.Ma.xg(!0),e=[],f=0;f<c.length;f++){var g=b.K(c[f]);"font"==g.getType()&&e.push(g)}a.vb.$r(e);this.ic.Sh(!1)};q.setActive=function(a,b){xY.c.setActive.call(this,a,b);a&&this.HT();this.iv.setActive(a)};q.hq=function(){this.Wa&&this.HT()};q.g=function(){var a=this.ic;a.Sh(!1);a.g();this.Na(a.b());U(this.b(),"picker-fontsview")};
q.HT=function(){var a=this.getContext().ba,b=this.getContext().Ma,c=this.dha;b=b.xg(!0);for(var e=!1,f=0;f<b.length;f++)"font"==a.K(b[f]).getType()&&(e=!0,c.p9(b[f]));this.ic.Sh(e)};q.Pna=function(a){if(this.Wa&&(a=a.data.fonts)&&a.length){var b=as(a,function(a){return a.fontName});this.getContext().ba.requestData(new YT(Fh,b,{}),y(this.xna,this,a),y(this.yna,this),!0)}};
q.xna=function(a,b){if(E){var c=this.getContext().v.b();c.style.display=Ek;c.style.display="block"}c=this.getContext().Ma;a=new LG(as(a,function(a){return a.fontName}));b=b.dc();for(var e=0;e<b.length;e++)a.contains(b[e].jb)&&c.E6(b[e].getId(),!0,"cb",!0);jY.H().bS(b,this.j())};q.yna=function(){alert("Sorry!  We could not find the fonts you previously selected.")};q.Ll=function(){if(this.Wa){var a=this.I.Bc;a&&this.getContext().X.Kb(a)}};q.Tg=function(a){this.iv.Tg(a)};var yY=function(a,b,c,e){eY.call(this,a,b,void 0,void 0,e);this.GH(!1);this.message=c};B(yY,eY);yY.prototype.g=function(){yY.c.g.call(this);this.MV(this.message)};yY.prototype.B=function(){yY.c.B.call(this);U(this.b(),"picker-messagelist")};yY.prototype.Tg=function(){};var AY=function(){F.call(this);var a={},b=new zY(function(a){var b=a.sd,c=a.getPath(),g;(g=a.toString())?(g=bz(g).sd,g=g==sq||g==nq||"m.youtube.com"==g):g=!1;if(g){if("/"==c||"/watch"==c)return a.mb("v")}else if(b==oq&&Yq(c,"/"))return c.substr(1)},(Yq(window.location.href,Gi)?Gi:"http")+"://www.youtube.com/v/{$VIDEO_ID}?fs=1","https://www.youtube.com/embed/{$VIDEO_ID}?origin="+window.location.href);a[nq]=b;a[sq]=b;a["m.youtube.com"]=b;a[oq]=b;b=new zY(function(a){var b=a.sd;if(a.gf==Gi&&(b==lq||
"facebook.com"==b))return a.mb("v")},"https://www.facebook.com/v/{$VIDEO_ID}","https://www.facebook.com/video/embed?video_id={$VIDEO_ID}");a[lq]=b;a["facebook.com"]=b;b=new zY(function(a){var b=a.getPath(),c=a.sd;if(a.gf==Gi&&Yq(b,"/")&&("www.vimeo.com"==c||"vimeo.com"==c)&&(a=b.split("/")[1],!isNaN(parseInt(a,10))))return a},"https://vimeo.com/moogaloop.swf?clip_id={$VIDEO_ID}","https://player.vimeo.com/video/{$VIDEO_ID}");a["www.vimeo.com"]=b;a["vimeo.com"]=b;b=new zY(function(a){var b=a.getPath(),
c=a.sd;if("http"==a.gf&&(c==mq||"metacafe.com"==c)&&Yq(b,"/watch/"))return b="/"==b[b.length-1]?b.substr(7,b.length-7-1):b.substr(7),b=b.split("/")[0]},"http://www.metacafe.com/fplayer/{$VIDEO_ID}.swf","http://www.metacafe.com/embed/{$VIDEO_ID}/");a[mq]=b;a["metacafe.com"]=b;this.LP=a};B(AY,F);Kq(AY);AY.prototype.nra=function(a){return this.A0(a,a.sd)};AY.prototype.A0=function(a,b){return(b=this.LP[b])&&b.Nqa(a)};AY.prototype.aJ=function(a){var b=this.LP[a.sd];return b&&b.aJ(a)};
AY.prototype.cla=function(a){try{var b=bz(a);return this.LP[nq].MY(b)}catch(c){}};var zY=function(a,b,c){this.EW=a;this.m_=c};zY.prototype.Nqa=function(a){return!!this.EW(a)};zY.prototype.aJ=function(a){if((a=this.MY(a))&&this.m_)return this.m_.replace("{$VIDEO_ID}",a)};zY.prototype.MY=function(a){return this.EW(a)};var BY=function(a,b){F.call(this);this.xN=this.Fe=0;this.Pf=a;this.Ga=b;this.pg=new jz(y(this.Qq,this),0,this)};B(BY,F);q=BY.prototype;q.o=function(){this.pg.dispose();delete this.Pf;delete this.Ga;BY.c.o.call(this)};q.start=function(a,b){this.stop();b=b||0;this.Fe=Math.max(a||0,0);this.xN=0>b?-1:A()+b;this.pg.start(0>b?this.Fe:Math.min(this.Fe,b))};q.stop=function(){this.pg.stop()};q.Rb=function(){return this.pg.Rb()};
q.Qq=function(){if(!this.Pf.call(this.Ga))if(0>this.xN)this.pg.start(this.Fe);else{var a=this.xN-A();0>=a||this.pg.start(Math.min(this.Fe,a))}};var CY=function(a,b){return 4==a.readyState?(Js(a,function(b){try{Nq(a[b])&&(a[b]=null)}catch(e){}}),b.removeNode(a),!0):!1};var DY=function(a,b,c,e,f){V.call(this,f);this.SEa=a;this.gb=b;this.AM=c;this.wta=e};B(DY,V);DY.prototype.g=function(){var a=this.j(),b=Cr();a=a.g(Fc,{id:b,name:b,"class":"picker-iframe-player",src:this.SEa,width:this.gb.width,height:this.gb.height,onload:this.AM?this.AM:Jq,onerror:this.AM?this.wta:Jq,frameBorder:"0"});this.Na(a)};ov("apps.photos.imagurl.ImageUrlOptionsBuilderBase");var EY=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(lh[3-6]\.(googleadsserving\.cn|xn--9kr7l\.com))|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-(dev|qa)\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\//i,
FY=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,GY=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,HY=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,IY=function(a){return EY.test(a)||FY.test(a)||GY.test(a)||HY.test(a)};var JY=function(a){UT.call(this,a);this.Fi&&(this.Wda=a.response.contentUrl||"")};B(JY,UT);JY.prototype.kc=function(){return 23};WT.set(23,function(a){return new JY(a)});var KY=function(a,b){yT.call(this);this.ya=a;this.CV=b};B(KY,yT);KY.prototype.xh=As(new Ty("getcu"));KY.prototype.kc=function(){return 23};KY.prototype.Hf=function(){var a=new L;CT(a,Mp,this.ya);CT(a,"h",this.CV.height);CT(a,"w",this.CV.width);return a};var LY=window.location.protocol==Hi,MY=function(a){return(a.match(Sv)[1]||null)!=Gi&&LY?!0:IY(a)||Zq(Tv(a.match(Sv)[3]||null,!0),".gstatic.com")||Yq(a,"https://googledrive.com/thumb/")?!1:!0},NY=function(a,b,c,e,f){IY(a)&&(a=LY?a.replace(/^http:/i,Hi):a);MY(a)?c.ba.requestData(new KY(a,b),function(a){e(a.Wda)},f):e(a)};var OY=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Paste a URL here:}male{Paste a URL here:}other{Paste a URL here:}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};OY.ra="picker.ui.templates.urlview.anyUrl";var PY=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Paste an image URL here:}male{Paste an image URL here:}other{Paste an image URL here:}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};PY.ra="picker.ui.templates.urlview.imageUrl";
var QY=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Paste a video URL here:}male{Paste a video URL here:}other{Paste a video URL here:}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};QY.ra="picker.ui.templates.urlview.videoUrl";var RY=function(a,b,c){b=c||b;a=(new tU("{VIEWER_GENDER,select,female{Paste YouTube URL here:}male{Paste YouTube URL here:}other{Paste YouTube URL here:}}")).Bf({VIEWER_GENDER:b.fh});return AF(""+a)};RY.ra="picker.ui.templates.urlview.youTubeUrl";var SY=function(a,b,c){XU.call(this,a,c);this.Us=qW(b,a.v);this.Ri("vc");this.I=b;this.ic=new nY(a,y(this.iw,this),void 0,c);this.ca(this.ic);this.Va=b.getType()||Mi;this.dE=b.getOption(Pn);this.lx=new jE;this.ca(this.lx)};B(SY,XU);var TY=new Wx(800,600),UY=new Wx(640,480);q=SY.prototype;q.F=ov("picker.ui.UrlView");q.cH=null;q.WK=!1;q.XK=!1;q.Uu=!1;q.Oy=null;q.Qj=null;
q.g=function(){var a=this.j();var b=pC.H();var c=b.Nd(),e=b.Nd();c=this.Pb=a.g(d,"picker-content picker-urlview",b=a.g("LABEL",{"class":"picker-urlview-header","for":c}),this.Cd=a.g(Jc,{"class":"picker-urlview-input",id:c}),this.Ch=a.g(d,{"class":im,style:"visibility: hidden"}),this.XM=a.g(vd,"picker-urlview-preview",a.g(wd,null,a.g(zd,null,this.Zq=a.g(xd,{"class":"picker-urlview-preview-td",id:e},this.cH=this.yia())))));T(this.Cd,"controls",e);MB(this.Zq,Ro);T(this.Zq,Mj,rm);e=this.getContext().vi();
switch(this.Va){case Mi:a.bg(b,e.Kl(PY));break;case Vp:this.dE==sq||this.dE==nq||this.dE==oq?a.bg(b,e.Kl(RY)):a.bg(b,e.Kl(QY));break;default:a.bg(b,e.Kl(OY))}a=this.ic;a.g();a.J().appendChild(c);this.Na(a.b());this.lx.R(this.Cd)};
q.B=function(){SY.c.B.call(this);this.Gq();var a=this.Cd;this.fd=new iE(a);this.Qj=new tH(this.Pb);a=this.A().listen(this.fd,Vi,this.BZ).listen(a,Aj,this.uu).listen(this.Qj,Nj,this.uma).listen(this.getContext().vb,Nm,this.Ll).listen(this.j().getWindow(),Om,this.Gq);this.Va==Mi?a.listen(this.Qj,gh,this.fZ):a.listen(this.Qj,gh,this.nna);this.ji("vc");this.dispatchEvent("z")};q.kk=function(){M(function(){try{this.Cd.focus()}catch(a){qv(this.F,ec)}this.Cd.select()},0,this);return!0};
q.Gq=function(){var a=this.AI();if(0>=a.width||0>=a.height)M(y(this.Gq,this),100);else{$z(this.XM,a);a=a.width;var b=this.Cd,c=this.Zoa;if(!c){c=function(){var a=oA(b);return a.left+a.right};var e=u(b.previousElementSibling)?b.previousElementSibling:Ay(b.previousSibling,!1),f=this.Ch;c=this.Zoa=c(b)+e.offsetWidth+c(e)+f.offsetWidth+c(f)}b.style.width=a-c+n}};q.uu=function(a){13==a.keyCode&&this.ic.lD&&this.iw()};
q.BZ=function(){this.WK=!1;var a=cr(this.Cd.value),b=!!a,c=b?this.KG(a):void 0;this.ic.Sh(!1);fC(this.Cd,"picker-urlview-selected",b);this.Ch.style.visibility=yi;var e=this.Va,f=this.dE;c?(b=AY.H(),this.Xl("Loading preview..."),e==ke||e==Vp?f&&b.A0(c,f)||b.nra(c)?this.Boa(a):e==ke?this.gZ(a):this.MJ():this.gZ(a)):b?this.Xl("The URL is not valid.  Make sure it starts with http:// or https://.",!0):this.cH?this.Xl(this.cH):this.Xl("If your URL is correct, you'll see a preview here.  Large images may take a few minutes to appear.");
e==ke&&c&&this.ic.Sh(!0)};q.KG=function(a){try{var b=bz(a)}catch(c){return}a=(b.gf||"").toLowerCase();if(("http"==a||a==Gi)&&b.sd)return b};q.gZ=function(a){var b=this.Ch;b.className=im;b.style.visibility="";this.Ri("vdl");(b=(a=this.KG(a))&&AW(a))?(this.Uu=!0,this.getContext().ba.requestData(new YT(Hg,[b],{}),y(this.ama,this),y(this.bZ,this))):(this.Uu=!1,this.Oy=null,NY(a.toString(),TY,this.getContext(),y(this.pB,this),y(this.fZ,this)))};
q.pB=function(a){var b=this.Qj;b.fS(this.YM=pC.H().Nd(),a);b.start()};q.Boa=function(a){a=bz(a);if(a=AY.H().aJ(a)){var b=this.AI();UY.iz(b)||UY.aw(b);a=new DY(a,UY,y(this.Aoa,this),y(this.MJ,this),this.j());b=this.Zq;ty(b);a.render(b)}else this.MJ()};q.Aoa=function(){this.XK=!0;this.ic.Sh(!0)};
q.yia=function(){if(this.Va!=Mi&&this.Va!=Vp)return null;var a="If your URL is correct, you'll see an image preview here.  Large images may take a few minutes to appear.",b="Remember: Using others' images on the web without their permission may be bad manners, or worse, copyright infringement.";this.Va==Vp&&(a="If your URL is correct, you'll see a video preview here.  Large videos may take a few minutes to appear.",b="Remember: Using others' videos on the web without their permission may be bad manners, or worse, copyright infringement.");
var c=this.j();a=c.g(d,"picker-urlview-preview-content",a);b=c.g(d,null,b);return c.g(d,null,a,b)};q.Xl=function(a,b){fC(this.XM,"picker-urlview-error",!!b);fC(this.Zq,"picker-urlview-error-td",!!b);this.X3(v(a)?this.j().createTextNode(a):a)};q.AI=function(){var a=this.Pb,b=kA(a);return new Wx(a.offsetWidth-b.left-b.right,a.parentNode.offsetHeight-this.XM.offsetTop-b.top-b.bottom)};
q.uma=function(a){a=a.target;if(a.id==this.YM){this.ji("vdl");this.Ch.className="picker-urlview-success-icon goog-inline-block";this.ic.Sh(!0);if(a.naturalWidth&&a.naturalHeight){var b=this.AI(),c=new Wx(a.naturalWidth,a.naturalHeight);c.iz(b)||$z(a,c.aw(b))}this.X3(a);this.WK=!0}};q.X3=function(a){if(this.XK&&this.YM){var b=this.j(),c=b.b(this.YM);E&&Ct?(R(c,!1),(new BY(y(CY,void 0,c,b))).start(50,1E4)):b.removeNode(c);this.XK=!1}b=this.Zq;ty(b);b.appendChild(a)};
q.fZ=function(){this.Ch.className=hm;var a=this.j();this.Xl(a.g(d,{style:"text-align: left;"},"We can't find the image at that URL.",a.g("UL",null,a.g("LI",null,"Please check the address for typing errors."),a.g("LI",null,"Make sure the image is public. If your image is protected by a password, or on an internal network, we will not be able to read it."))),!0)};q.MJ=function(){this.Xl("The video URL you entered above can't be loaded.  Please make sure it is correct and is from a supported site.")};
q.nna=function(){this.Ch.className=hm;this.Xl("Preview unavailable.")};q.iw=function(){var a=this.getContext(),b=a.ba,c=cr(this.Cd.value);if(a.v.q3)this.ic.Sh(!1),b.requestData(new CV("importPhoto",Al,[],{url:c,label:"profile_photos.draft"}),y(this.wma,this),y(this.vma,this),!0);else if(this.WK)this.Pxa(c);else{var e=AY.H().cla(c);e?b.requestData(new YT(pq,[e],{}),y(this.Joa,this),y(this.GZ,this)):a.vb.Z8(c)}};
q.Pxa=function(a){var b={};b.url=a;b.name=bz(a).getPath().split("/").pop();this.Uu&&(b.name=this.Oy.name,b.mimeType=this.Oy.mimeType);b.type=ul;b.serviceId=Mp;b=new OT(b);if(this.Uu){var c=this.KG(a);(c=c&&AW(c))&&b.d6(c)}(c=this.Zq.getElementsByTagName("img")[0])&&b.R6([new ET(this.Uu?c.src:a,c.naturalWidth,c.naturalHeight)]);this.getContext().vb.$r([b])};q.Joa=function(a){(a=a.dc())&&0<a.length?this.getContext().vb.$r(a):this.GZ()};
q.GZ=function(){alert("The video you selected no longer exists.  The owner may have removed it.");this.Ll()};q.wma=function(a){a=a.dc()[0];var b=new zU(ng);b.Aa("id",a.jb);b.Aa(nn,a.md);b.$f(this.I);this.getContext().X.Kb(b);this.ic.Sh(!0)};q.vma=function(){alert("The image URL you specified could not be retrieved.  It may be a private URL that our servers cannot access.  Please try a different URL.");this.ic.Sh(!0)};q.Ll=function(){this.Cd.value="";this.BZ()};
q.ama=function(a){if((a=a.dc())&&0<a.length&&a[0].getType()==ul){var b=a[0].dm;if(b&&0<b.length){this.Oy={name:a[0].getName(),mimeType:a[0].Jg};this.pB(b[0].Zz(400).getUrl());return}}this.bZ()};q.bZ=function(){this.Ch.className=hm;this.Xl("The image URL you have entered above is incorrect or can't be loaded.")};q.Qp=function(){return this.Us};var VY=function(a,b,c){YU.call(this,a,"picker-attributionbar-root","picker-attributionbar-frame","picker-attributionbar-content",lf,c);this.Ho=b};B(VY,YU);q=VY.prototype;q.g=function(){VY.c.g.call(this);var a=this.j(),b=this.Sa,c=pC.H().Nd();b.appendChild(a.g(d,void 0,this.kDa=a.g(d,{"class":Hl,id:c},a.createTextNode("The image you highlighted was found by Google Image Search on this page:")),a.g(d,Hl,this.sS=a.g("A",{href:"#",target:Xd}))));T(this.sS,Dj,c);this.xb(0)};
q.B=function(){VY.c.B.call(this);this.A().listen(this.getContext().Ma,"x",this.Tna)};q.pf=function(){this.j();var a=this.getContext().Ma.xg();a=a&&a.length?this.getContext().ba.K(a[0]):null;this.Ho.getToken().getOption(tp)==Nh&&(a=null);if(a){var b=this.sS,c=a.getUrl();qr(c);b.href=c;Gy(b,c);TB(this.kDa,"The image you highlighted was found by Google Image Search on this page: "+c)}R(this.Sa,!!a);this.xb(a?29:0)};q.setActive=function(a,b){VY.c.setActive.call(this,a,b);a&&this.pf()};
q.Tna=function(){this.Ho.Wa&&this.pf()};var WY=function(a,b){YU.call(this,a,"picker-bloggerinstructions-root","picker-bloggerinstructions-frame","picker-bloggerinstructions-content",op,b)};B(WY,YU);WY.prototype.g=function(){WY.c.g.call(this);var a=new XV,b="These images are also available to view and download in the "+(a.Sr("a",{href:"https://get.google.com/albumarchive?hl="+CS().Qf,target:Xd})+("Google Album Archive"+(a.Ip("a")+"."))),c=this.j();a=c.g(d,"picker-bloggerinstructions-text",c.Nh(a.format(b)));this.Sa.appendChild(a);this.xb(42)};var XY=function(a,b,c,e){YU.call(this,a,"picker-breadcrumbs-root","picker-breadcrumbs-frame","picker-breadcrumbs-content",op,e);this.I=b;this.JT=c};B(XY,YU);q=XY.prototype;
q.g=function(){XY.c.g.call(this);for(var a=this.j(),b,c=a.g(vd,{"class":"picker-breadcrumbs-table",cellSpacing:"0",cellPadding:"0"},a.g(wd,null,b=a.g(zd))),e=this.Dja(),f=e.pop(),g=0;g<e.length;g++){var h=e[g];this.Bwa(b,h[0],h[1],0==g,g==e.length-1)}a=a.g(xd,{"class":"picker-breadcrumbs-child"},f[0]);TB(a,this.dia(f[0]));My(a,!0);b.appendChild(a);this.Sa.appendChild(c);this.xb(40)};
q.Bwa=function(a,b,c,e,f){var g=this.j();e=g.g(xd,"picker-breadcrumbs-parent"+(e?" picker-breadcrumbs-first-parent":"")+(c?" picker-breadcrumbs-clickable":""),b);e.Esa=c;f&&(this.I0=e);My(e,!!c);TB(e,this.Zja(b));MB(e,"link");a.appendChild(e);a.appendChild(g.g(xd,"picker-breadcrumbs-triangle"+(f?" picker-breadcrumbs-last-triangle":""),g.g(d,"picker-breadcrumbs-triangle1 goog-inline-block"),g.g(d,"picker-breadcrumbs-triangle2 goog-inline-block")))};
q.Dja=function(){for(var a=[],b=this.getContext().ba,c=this.I.Bc;c;){var e=c.getName(),f=c.getOption(m);f&&(f=b.K(f))&&(e=f.getName());a.unshift([e,c]);c=c.Bc}a.push([this.JT.getName(),null]);return a};q.B=function(){XY.c.B.call(this);this.A().listen(this.Sa,zj,this.vla).listen(this.Sa,Bf,this.PY)};q.focus=function(){return this.I0?(this.I0.focus(),!0):!1};q.PY=function(a){(a=a.target.Esa)&&this.getContext().X.Kb(a)};
q.vla=function(a){if(32==a.keyCode||13==a.keyCode)this.PY(a),a.preventDefault(),a.stopPropagation()};q.o=function(){XY.c.o.call(this);delete this.I;delete this.JT};q.Zja=function(a){return"Switch to folder "+a};q.dia=function(a){return"Selected folder "+a};var YY=function(a,b,c){YU.call(this,a,"picker-butterbar-root","picker-butterbar-frame","picker-butterbar-content",op,c);this.OB=b};B(YY,YU);YY.prototype.g=function(){YY.c.g.call(this);var a=this.Sa,b=this.j();a.appendChild(b.g(d,"picker-butterbar",this.OB));this.xb(20)};var ZY=function(a,b,c,e){nY.call(this,a,b,c,e);this.ak=null};B(ZY,nY);q=ZY.prototype;q.g=function(){ZY.c.g.call(this);var a=this.j(),b=this.ak=a.g(d,"goog-inline-block picker-actionpane-evph-message");cA(this.ak,0);a.kl(b,this.Sa.lastChild);a=new dU({service:"party",type:Ze,options:{evid:this.getContext().v.rW,maxSize:22}});b=this.getContext().ba.xd(a);b.Eg()&&b.Ae()?this.d1(b.dc(),!1):this.getContext().ba.requestData(a,y(function(a){this.d1(a.dc(),!0)},this),Jq,!0)};
q.vea=function(a,b){a=a==Dm?"Photos will be visible to anyone (public on the web).":"wide"==a?"Photos will be shared with a wide audience.":(new tU("{audienceCount, plural, =0 {Photos will be shared with all event guests} =1 {Photos will be shared with {startTag}one person{endTag}.}other {Photos will be shared with {startTag}{audienceCount} people{endTag}.}}")).format({audienceCount:b,startTag:'<span class="picker-evph-plain-link">',endTag:ob});return this.j().Nh(xE(a))};
q.d1=function(a,b){var c=a[0];this.ak.appendChild(this.vea(c.getAttribute(dq),c.Wp()));b?(new JA(this.ak,218)).play():cA(this.ak,1);if(b=this.j().Fc("picker-evph-plain-link",this.ak)){var e=new mY(this.j());this.Y(e);e.setPosition(2);e.pw(!0);e.render(this.getContext().v.Yp());e.eb(this.Nea(a.slice(1),c.Wp()));U(e.b(),"picker-evph-people-jfk-bubble");e.Ql(b);this.A().Hq(b,dK,y(e.C,e,!0))}};
q.Nea=function(a,b){var c=this.j(),e=Math.min(a.length,22),f=(b-=e)?(new tU("{moreCount, plural, =0 {unused plural form}=1 {+ 1 more}other {+ {moreCount} more}}")).format({moreCount:b}):void 0;f=c.g(d,"picker-actionpane-evph-people",c.g(d,"picker-actionpane-evph-people-title","Visible to:"),b=c.g(d),f);for(var g=0;g<e;g++){var h=a[g],l=c.g(Gc,{src:h.dm[0].Yt(24,["c"]),"class":"picker-actionpane-evph-people-img"});CS().isNative();l.setAttribute("oid",h.jb);if(h=h.getUrl())l=c.g("A",{target:Xd},l),
Px(l,h);b.appendChild(l)}return f};q.update=function(){ZY.c.update.call(this);this.ak&&R(this.ak,!this.getContext().pu().bB())};q.o=function(){ZY.c.o.call(this);this.ak=null};var $Y=function(a,b,c,e){nY.call(this,a,b,c,e);this.Ai=null};B($Y,nY);$Y.prototype.g=function(){$Y.c.g.call(this);var a=this.j(),b=this.Ai=a.g(vd,"picker-actionpane-legal-text",a.g(wd,null,a.g(zd,null,a.g(xd,"picker-actionpane-legal-text-td","Only select images that you have confirmed that you have the license to use."))));a.kl(b,this.Sa.lastChild)};$Y.prototype.update=function(){$Y.c.update.call(this);var a=this.Ai;if(a){var b=this.getContext().pu();R(a,!b.bB())}};
$Y.prototype.o=function(){$Y.c.o.call(this);this.Ai=null};var aZ=function(a,b,c){YU.call(this,a,"picker-url-input-root","picker-url-input-frame","picker-url-input-content",lf,c);this.ura=b;this.lx=new jE;this.ca(this.lx);this.Eb=null;this.dl=!1;this.fd=null};B(aZ,YU);aZ.prototype.g=function(){aZ.c.g.call(this);var a=this.j(),b=this.Sa;b.appendChild(a.g(d,"picker-url-input-text",this.ura||"Or paste a web address here:"));b.appendChild(a.g(d,null,this.Eb=a.g(Jc,{type:$o,"class":"picker-url-input-box"})));this.xb(46);this.lx.R(this.Eb)};
aZ.prototype.B=function(){aZ.c.B.call(this);this.fd=new iE(this.Eb);this.A().listen(this.fd,Vi,this.xma)};aZ.prototype.setValue=function(a){var b=this.Eb;b.value!=a&&(b.value=a);this.dl=0<a.length;fC(b,gm,this.dl);this.dl||b.blur()};aZ.prototype.xma=function(){var a=this.getContext(),b=this.Eb,c=b.value;this.getContext().Eo.setValue(c);!this.dl&&0<c.length?(a.Ma.Ak(),this.dl=!0,this.dispatchEvent(new bZ)):this.dl&&0==c.length&&(this.dl=!1,this.dispatchEvent(new bZ));fC(b,gm,this.dl)};
var bZ=function(){H.call(this,"U")};B(bZ,H);var cZ=function(a,b,c,e,f){XU.call(this,a,f);this.Us=qW(b,a.v);this.Ri("vc");this.I=b;this.Fk=c;var g=null;CS().Vua&&b.Ca(zl)&&b.getOption(zp)&&(g=new YY(a,"Upload problems?  We're doing maintenance, but things should be back to normal soon.",f),g.Se(c),c=g);this.Yca=g;g=null;is(e,"bi")&&(g=new WY(a,f),g.Se(c),c=g);this.Rca=g;g=a.v;var h=null,l=b.getOption(m),p=b.getOption("hideBc")||is(e,"dbbimv");l&&!b.getQuery()&&!p&&(l=a.ba.K(l))&&(h=new XY(a,b,l,f),h.Se(c),c=h);this.Xx=h;b=null;is(e,"at")&&(b=
new VY(a,this,f),b.Se(c),c=b);this.RS=b;e=null;g.BEa&&(e=new aZ(a,void 0,f),e.Se(c),c=e);this.gs=e;f=this.bea();f.Se(c);this.ca(f);this.ic=f;this.A().listen(a.Ma,"x",this.hq).ql(this.Fk,tf,this.hq,!1,this)};B(cZ,XU);q=cZ.prototype;q.Nna=function(){this.ic.getContext().vb.rQ()};
q.bea=function(){var a=this.getContext(),b=this.j(),c=y(this.Nna,this),e=a.v.rW;return!this.I.Ca(Ni)||this.I.getOption(tp)&&"gis"!=this.I.getOption(tp)?this.I.Ca(zl)&&e?new ZY(a,c,void 0,b):new nY(a,c,void 0,b):new $Y(a,c,void 0,b)};q.g=function(){this.ic.g();this.Na(this.ic.b())};q.B=function(){cZ.c.B.call(this);var a=this.gs;a&&this.A().listen(a,"U",this.hq);this.A().listen(this.getContext().Ma,"y",this.cs);this.ji("vc")};
q.C=function(a){var b=this.b();b.style.top=a?"":Ga;b.style.left=a?"":Ga;b.style.right=a?"":"9500px"};q.GH=function(a){this.Fk.GH(a)};q.getToken=function(){return this.I};q.Rp=function(){return this.Fk.Rp()};q.Bz=function(a){return this.Fk.Bz(a)};
q.setActive=function(a,b){cZ.c.setActive.call(this,a,b);var c=function(c){c&&c.setActive(a,b)};c(this.ic);c(this.Fk);c(this.RS);c(this.Yca);c(this.Xx);c(this.gs);a&&(this.gs&&this.gs.setValue(this.getContext().Eo.getValue()),this.cs(),E&&this.I.Ca(Wp)&&0==Er(Ot,"7")&&M(function(){Q(this.b(),"zoom","1")},0,this))};q.Tg=function(a){this.Fk.Tg(a)};q.hq=function(a){if(this.Wa){var b=this.getContext().Eo,c=this.gs;c&&"x"==a.type&&this.$K()&&(c.setValue(""),b.setValue(""));this.cs()}};
q.cs=function(){var a=this.OEa();a=this.$K()&&a||!!this.getContext().Eo.getValue();this.ic.cs(a)};q.$K=function(){var a=this.Rp(),b=this.getContext().Ma.xg(!0);return cs(b,a.contains,a)};q.OEa=function(){var a=$X(this.getContext()),b;ks(a)||(b=a[0]);this.ic.z7(!!b,ZX(this.getContext(),b),0);return!b};q.o=function(){cZ.c.o.call(this);delete this.ic;delete this.RS;delete this.Rca;delete this.Xx;delete this.Fk;delete this.gs};
q.kk=function(){var a=this.Fk.kk();!a&&this.Xx&&(a=this.Xx.focus());a||this.ic.focus();return!0};q.Qp=function(){return this.Us};var dZ=function(){cW.call(this,"picker-web-control")};B(dZ,cW);Kq(dZ);
dZ.prototype.g=function(a){var b=a.K(),c=b.getUrl(),e=b.getName();var f=b.dt;if(!(10>f.length)){for(var g=[],h=0,l=0,p=0,r=0,z=0;z<f.length;z++){var O=r;r=f.charCodeAt(z);O=768<=r&&!rF(O,r,!0);10<=h&&!sF(r)&&!O&&(g.push(f.substring(p,z),uF),p=z,h=0);l?62==r&&60==l?l=0:59==r&&38==l&&(l=0,h++):60==r||38==r?l=r:sF(r)?h=0:8204<=r&&8207>=r||8234<=r&&8238>=r||h++}g.push(f.substr(p));f=g.join("")}b=b.getAttribute("vu");g=a.j();e=g.g("A",{target:Xd,tabIndex:-1},g.Nh(xE(e)));Px(e,c);c=g.g(d,"picker-web-control-content",
g.Nh(xE(f)));return g.g(d,this.Zd(a).join(" "),g.g(d,"picker-web-control-title",e),c,g.g(d,"picker-web-control-url",b))};dZ.prototype.Zb=function(a){return a.b().firstChild};dZ.prototype.setState=function(a,b,c){dZ.c.setState.call(this,a,b,c);32==b&&(by("a",null,a.b())[0].tabIndex=c?0:-1)};var eZ=function(a,b,c){eY.call(this,a,b,void 0,Up,c)};B(eZ,eY);eZ.prototype.BG=function(a){return new aW(this.getContext(),a,dZ.H(),this.j())};var fZ=function(){F.call(this)};B(fZ,F);q=fZ.prototype;q.Dh=function(){return!0};q.oT=function(){return!0};q.create=function(a,b,c){if(a.Ca(gq)){var e=a.getQuery()?new eZ(b,a,c):new yY(b,a,"Type your search in the box above to find web results using Google Web Search.",c);return new cZ(b,a,e,[],c)}if(a.Ca(Mp))return new SY(b,a,c);if(a.Ca(Fh))return new xY(b,a,new lY(b,a,c),c);e=new eY(b,a,new kY,void 0,c);return new cZ(b,a,e,[],c)};q.e4=function(){return!1};q.load=function(a,b){a.call(b)};var gZ=function(a,b){F.call(this);this.ck=a;this.P=b};B(gZ,F);q=gZ.prototype;q.F=ov("picker.ui.ModuleViewCreator");q.Dh=function(){return IV.H().Gf(this.ck).Dh()};q.load=function(a,b){K(this.F,"Loading module id="+this.ck);var c=sW(this.ck),e=this.P.Gh;e&&c&&e.Ri("ml",c);IV.H().Gf(this.ck).B3(y(function(a){pv(this.F,"Error "+a+"occured while loading module id= "+this.ck)},this));IV.H().Dt(this.ck,function(){e&&c&&e.ji("ml",c);a.call(b||null)},void 0,void 0,!0,!0)};
q.create=function(a,b,c){var e=IV.H().Gf(this.ck).xl;return e&&e.rNa(a,b,c)};q.oT=function(a,b){return this.ck==TU(a,b)};q.e4=function(a,b){b=TU(a,b);return"opu"==b||b==$k||oR(a.qa)};var hZ=function(a){F.call(this);this.L=a||N();this.oB={}};B(hZ,F);hZ.prototype.o=function(){Js(this.oB,this.L.removeNode,this.L);this.L=this.oB=null;hZ.c.o.call(this)};hZ.prototype.K4=function(a,b){var c=this.pja(b||rm);Gy(c,"");M(function(){Gy(c,a)},1)};
hZ.prototype.pja=function(a){var b=this.oB[a];if(b)return OB(b,yi),b;b=this.L.createElement(d);b.style.position=be;b.style.top="-1000px";b.style.height="1px";b.style.overflow=yi;T(b,Mj,a);T(b,Xe,sp);this.L.K().body.appendChild(b);return this.oB[a]=b};var iZ=function(a){F.call(this);this.ba=a;this.Ec=new L;this.yb=[]};B(iZ,F);q=iZ.prototype;q.zx=function(a){this.Ec.set(a.getId(),a);this.DCa=A();this.Uh||(this.Uh=new kE(this.Xwa,1E3,this),this.Uh.Ht())};q.ua=function(a){this.Uh?this.yb.push(a):a()};q.Xwa=function(){this.ba.requestData(new YT(Al,this.Ec.bb(),{}),y(function(a){this.Ana(a);this.SW()},this),y(this.SW,this))};q.SW=function(){this.Ec.sa()&&A()<=this.DCa+1E4?this.Uh.Ht():(delete this.Uh,D(this.yb,function(a){a()}),ls(this.yb))};
q.Ana=function(a){D(a.dc(),function(a){var b=a.dm;if(b&&0<b.length){var e=b[b.length-1];0<e.Ag()&&0<e.ti()&&(a=a.getId(),this.Ec.get(a).R6(b),this.Ec.remove(a))}},this)};q.o=function(){this.Uh&&(this.Uh.dispose(),delete this.Uh)};var jZ=function(a,b){yT.call(this);this.Dn=a;this.qb=b};B(jZ,yT);jZ.prototype.xh=As(new Ty("setuserpref"));jZ.prototype.kc=function(){return 16};jZ.prototype.Hf=function(){var a=new L;a.set(yj,this.Dn);a.set(Rp,this.qb);return a};var kZ=function(a,b){J.call(this);this.P=a;this.VM=b};B(kZ,J);kZ.prototype.get=function(a){return this.VM[a]};kZ.prototype.set=function(a,b,c,e){this.VM[a]=b;this.P.ba.requestData(new jZ(a,b),y(function(){c&&c()},this),y(function(){e&&e()},this));this.dispatchEvent(new lZ(a,this))};kZ.prototype.Yha=function(a){a=this.VM[a];if(a==sp)return!0;if(a==oh)return!1};kZ.prototype.yya=function(a,b,c,e){this.set(a,String(b),c,e)};var lZ=function(a,b){H.call(this,"prefUpdate",b);this.key=a};B(lZ,H);var mZ=function(a,b){this.UR=b.apn;this.gba=b.apnl;this.hT=b.buildLabel;this.Ufa=b.dpm;this.vj=b.email;this.ela=b.gdn;this.X_=b.dip;this.y4=b.rig;this.I=b.token;this.cFa=b.xtoken;this.AEa=b.uriParams;this.U9=new kZ(a,b.pref||{});this.KEa=b.userId;this.Eoa(b.wcs);this.gga=!!b.cac};mZ.prototype.Eoa=function(a){return u(a)&&rr(a,"www.gstatic.com")?a:this.bsa(a)};mZ.prototype.bsa=function(a){return(CS().J9+a).replace("picker/picker",Cl)};mZ.prototype.getEmail=function(){return this.vj};
mZ.prototype.getToken=function(){return this.I};var nZ=function(a,b,c){F.call(this);this.ie=new xH;qC=CS().Ge();var e=new pX(a),f=new UU,g=new SW,h=new ZU,l=new yX(a,h),p=new iZ(e);b=new KX(a,l,b);var r=new PX(e),z=this.Uca(a);if(CS().ega){var O=new wT;O.xr(a.fl);O.Ri("ev","evavc")}this.Xo=new hZ(c);var ea=IV.H();ea.Kq||ea.bAa(z);g=new QX(f,b,g,h,l,e,a.ME,p,this.ie,r,a,this,z,this.Xo,O);b.qw(g);e.qw(g);f.qw(g);if(!CS().isNative()&&window.location.ancestorOrigins&&0<window.location.ancestorOrigins.length&&(f=window.location.ancestorOrigins[window.location.ancestorOrigins.length-
1],(h=a.getOrigin())&&(h=bz(h).$g("").vr("").Qh(void 0).toString()),h!=f))throw e.nc(0),Error("Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) of the top-most page");this.P=g;this.YG=a.efa?new DL(Cl):null;this.Ho=new hY(g,c);this.P.eAa(this.Ho.Sf);a=this.P;for(c=0;c<SU.length;c++)e=new gZ(SU[c],a),gY.push(e);a=new fZ;gY.push(a);this.initializeFromServer=this.AK;this.dispose=this.dispose;M(b.CDa,0,b)};B(nZ,F);q=nZ.prototype;
q.initialize=function(){var a=this.P.v,b=this.YG;b&&(b.U(!0),b.Tba());try{document.execCommand(Nb,!1,!0)}catch(e){}AU=a.Csa;NU=a.lga;OU=a.Om;PU=a.fga;var c=this.P.ba;D(a.bya,function(a){c.sF(this.Qk().get(a))},this.P);this.ie.ua(function(a){zT=a.getToken();AT=a.cFa;var b=BT||{};at(b,a.AEa);BT=b;c.c8.initialize()});this.Ho.render(a.b());E&&0==Er(Ot,"7")&&M(function(){Q(a.b(),"zoom","1")},0,this)};
q.Uca=function(a){var b=new LS(a.Qk()),c=N(a.Yp());c=new WS(b,c.K());b.Hi(oQ,c);c=new sT(b);b.Hi(pQ,c);a={locale:CS().Qf,fh:a.UEa};b.Hi(qQ,new tT(a));a=new hT(new US(void 0,31536E6));a=new nT(Sm,a);var e=new qT(a);a.ca(e);this.ie.ua(function(a){e.setValue("oid",a.KEa)});a=new XS(b,a);b.Hi(nQ,a);return b};q.AK=function(a){this.ie.Rm||this.ie.callback(new mZ(this.P,a))};q.ld=function(a){this.P.ce.it(a)};q.getContext=function(){return this.P};
q.o=function(){nZ.c.o.call(this);G(this.Ho);delete this.Ho;G(this.Xo);delete this.Xo;G(this.P);delete this.P;var a=this.YG;a&&(a.U(!1),a.u5(!1),delete this.YG)};var oZ=function(a,b){if(window.google&&window.google.maps)a();else{w(lm,a,void 0);a=py(document,ed);var c=ow("//maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=true&language=%{language}&callback=%{callback}");var e={language:CS().Qf,callback:lm};c=Hw(c,e);c=Iw(c);Rx(a,c);a.type=ap;document.body.appendChild(a);GN(".pac-container{z-index:20000 !important; background-color: #fff; border: 1px solid #bbb;} .pac-item{padding:6px 8px;}",b)}};var pZ=function(a,b){var c=b||N(),e=c.g(d,"picker-native picker-min goog-menu"),f=a.$k().minew;f&&U(e,Rl);var g=a.Ag()||248,h=a.ti()||f?311:300;$z(e,g,h);a.Pd()&&TB(e,a.Pd());c.appendChild(c.K().body,e);fS.call(this,e,c);this.zq=f;this.N()?this.DP():this.sA();this.Z=c;this.qe=a;this.vK=this.us(a.bp)+"pir";this.W5(!1);this.ow(!1);this.yy=!1;this.jj=new eS(b);this.Y(this.jj);this.jj.render(e);this.f5()};B(pZ,fS);var qZ=[Ei,"hl"];q=pZ.prototype;q.F=ov(mm);q.Ol=null;
q.pj=function(){if(!this.yy){this.yy=!0;var a=this.qe.$k();a.outerElement||(a.outerElement=this.b());a.element=this.b();a.loadingStatusElement=this.b();a.uriPrefix=this.us(this.qe.bp);a[zk]=!0;a=new ES(a);this.qe.Eu(Xj)?oZ(y(this.Ru,this,a),this.j()):this.Ru(a)}};
q.f5=function(){var a=new bw,b=this.qe.qk();b.tr("").$g(this.vK).T("app","2").T("subapp","5");var c=this.qe.$k(),e=c.authuser;e&&b.T($e,e);(e=c.groupId)&&b.T("groupId",e);(e=c.gmailDelegatorId)&&b.T(Ph,e);(e=c.apt)&&b.T("apt",e);Js(yR,function(a){c[a]&&b.T(a,!0)});var f={};D(qZ,function(a){f[a]=b.mb(a);b.removeParameter(a)});e=b.getQuery();b.Qh(dz(f));Ou(a,Vo,y(this.BJ,this,a));a.send(b,Zc,e)};
q.BJ=function(a){var b=this.qe.$k();a=a.ae();try{var c=a.replace(Ea,"");this.Ol=JSON.parse(c);this.qv()}catch(e){pv(this.F,Ob+a),(b=b.serverConfigErrback)&&b(a)}};q.nq=function(a){return!!this.qe.$k()[a]};q.qv=function(){this.Cc&&this.Ol&&this.Cc.AK(this.Ol)};q.us=function(a){a=a||"";return"/"==a[a.length-1]?a:a+"/"};q.Ru=function(a){this.Cc||(this.Cc=new nZ(a,y(this.cK,this,this.qe.Mc),this.j()),this.Cc.initialize(),this.qv())};
q.cK=function(a,b){var c=b.action;if(c==cq||c==$p)this.ha();else if(c!=qf||this.N())c!=Bl&&c!=qf||this.C(!1),a(b)};q.ld=function(a){a.action==Lm?(this.Cc&&!this.N()&&(this.Cc.dispose(),this.Cc=void 0,this.Ol=null,this.yy=!1,this.f5()),this.pj()):this.Cc.ld(a)};q.Hc=function(){pZ.c.Hc.call(this);this.B2();this.Era();this.pj();this.ld(new sR(!0));GB(new Tx(0,0),this.b(),0,this.iu());this.jS()};
q.ha=function(){if(this.yy){pZ.c.ha.call(this);var a=this.getPosition();a instanceof TC?this.jj.AT(a.element,this.b(),this.Sn):this.jj.update(this.b(),this.Sn,this.iu())}};q.et=function(a){this.Cc&&this.Cc.getContext().v.et(a)};q.Ng=function(a){pZ.c.Ng.call(this,a);this.n2();this.ld(new sR(!1))};q.o=function(){G(this.Cc);xy(this.b());pZ.c.o.call(this)};
q.Era=function(){this.A().ql(this.b(),vg,this.jE,!1,this).ql(this.b(),Bf,this.jE,!1,this).ql(this.b(),nk,this.jE,!1,this).ql(this.b(),rk,this.jE,!1,this)};q.jE=function(a){a.stopPropagation()};var rZ=function(a,b){wC.call(this,this.re,!0,b);this.qe=a;this.Ni(a.we);this.vK=this.us(a.bp)+"pir";this.oO(!1)};B(rZ,LR);var sZ=[Ei,"hl"];q=rZ.prototype;q.F=ov(nm);q.AV="picker-modal-dialog";q.Ol=null;q.re="picker "+rZ.prototype.AV;q.B=function(){rZ.c.B.call(this);var a=this.Wb,b=a.qj;if(a=b&&a.Cj(b))a.disabled=!0;a=this.ou();a=this.A().listen(a,qk,y(this.lZ,this,!0)).listen(a,pk,y(this.lZ,this,!1)).listen(this,Cg,y(this.zla,this));XR(this.b(),a);XR(this.Rk(),a)};
q.zla=function(a){a.key==this.Wb.ci&&this.ld(new gR)};q.lZ=function(a){fC(this.ou(),this.AV+"-title-close-hover",a)};
q.render=function(a){rZ.c.render.call(this,a);U(this.ou(),fm);this.A9();this.A().listen(this.j().getWindow(),Om,this.A9);a=this.qe;var b=a.$k(),c=a.Pd();c?(this.fb(c),b.dfc&&(c=this.j().g(gd,this.re+"-dogfood-confidential-text",lc),this.dn().appendChild(c)),a.uA()):R(this.dn(),!1);c=new bw;var e=a.qk();e.tr("").$g(this.vK).T("app","2").T("subapp","5");var f=b.authuser;f&&e.T($e,f);(f=b.groupId)&&e.T("groupId",f);(f=b.gmailDelegatorId)&&e.T(Ph,f);(f=b.apt)&&e.T("apt",f);Js(yR,function(a){b[a]&&e.T(a,
!0)});this.A().Of(c,Vo,y(this.BJ,this,c));var g={};D(sZ,function(a){g[a]=e.mb(a);e.removeParameter(a)});f=e.getQuery();e.Qh(dz(g));c.send(e,Zc,f);b.outerElement||(b.outerElement=this.Dj());b.element=this.J();b.loadingStatusElement=this.J();b.uriPrefix=this.us(a.bp);b[zk]=!0;c=new ES(b);a.Eu(Xj)?oZ(y(this.Ru,this,c),this.j()):this.Ru(c)};q.ha=function(){if(this.nq(wn)){var a=aA(this.b()),b=hy(this.j().getWindow());a=Math.max(b.width/2-a.width/2,0);b=this.j().Df().y;Kz(this.b(),a,b)}else rZ.c.ha.call(this)};
q.xb=function(a,b){this.j().getWindow();var c=this.b();c=kA(c);a=a-c.right-c.left;b=b-c.top-c.bottom;$z(this.J(),a,b);dA(this.dn())&&(c=aA(this.dn()),b-=c.height,Yz(this.Mka(),a-50));$z(this.J(),a,b);this.ha()};q.A9=function(){var a=this.nq(wn)?ZR(this.j().getWindow()):$R(this.j().getWindow(),this.qe.Ag(),this.qe.ti());this.xb(a.width,a.height)};
q.BJ=function(a){var b=this.qe.$k();a=a.ae();try{var c=a.replace(Ea,"");this.Ol=JSON.parse(c);this.qv()}catch(e){pv(this.F,Ob+a),(b=b.serverConfigErrback)&&b(a)}};q.nq=function(a){return!!this.qe.$k()[a]};q.qv=function(){this.Cc&&this.Ol&&this.Cc.AK(this.Ol)};q.us=function(a){a=a||"";return"/"==a[a.length-1]?a:a+"/"};q.Ru=function(a){this.Cc=new nZ(a,y(this.cK,this,this.qe.Mc),this.j());this.Cc.initialize();this.qv()};q.cK=function(a,b){var c=b.action;c!=Bl&&c!=qf||this.C(!1);a(b)};q.ld=function(a){this.Cc.ld(a)};
q.C=function(a){this.Cc&&!this.Cc.NI()?this.g7(a,0):rZ.c.C.call(this,a)};q.g7=function(a,b){if(a){this.V||this.render();var c=aA(this.b());10>b&&(0>=c.width||0>=c.height)&&M(y(this.g7,this,a,b++),10);rZ.c.C.call(this,!0);this.Cc&&this.Cc.getContext().vb.EZ()}!a&&this.we||this.ld(new sR(a));a||rZ.c.C.call(this,!1)};q.o=function(){G(this.Cc);rZ.c.o.call(this)};var Z=function(a){cS.call(this,a||"/picker");this.Za={};this.wK=new Ty(this.bp);this.Ie=[];this.LQ={};this.Za.uploadConfigs=[];(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.Bw(a)};B(Z,dS);q=Z.prototype;q.we=!1;q.rs=function(a,b){this.Ie.push([a,b||{}]);return this};q.$ba=function(a,b){this.Za.uploadConfigs[a]=b;return this};
q.As=function(){this.Za.pp=this.Ie.length?this.Ie:void 0;this.Za.uploaders=Us(this.LQ)?void 0:this.LQ;var a=this.Za;if(!a.hl)throw Error("locale must be set");if(!a.hostId)throw Error("host id must be set");this.QEa()};q.zs=function(){this.As();if(this.Za.minimal)throw Error(Pp);return new rZ(this,this.j())};q.WF=function(){this.Hp(kk);this.As();return new pZ(this,this.j())};q.pH=function(a){this.Za.noAutoHide=a;return this};q.Gy=function(a){Vs(this.Za,a);return this};
q.Hp=function(a){this.Za[a]=!0;a==zm&&this.C5("square").rs(ym);return this};q.MI=function(){return this.we};q.ti=function(){return this.Nj};q.$k=function(){this.Za.nav=this.Fja();return this.Za};q.Pd=function(){return this.Za.title};q.Ag=function(){return this.gg};q.YN=function(a){this.Za.authuser=a;return this};q.C5=function(a){this.Za.cropMode=a;return this};q.Ni=function(a){this.we=a;return this};q.FD=function(a){this.Za.maxSizeBytes=a;return this};q.j6=function(a){this.Za.msbpi=a;return this};
q.zw=function(a){this.Za.maxItems=a;return this};q.k6=function(a){this.Za.maxVD=a;return this};q.V5=function(a){this.Za.groupId=a;return this};q.xr=function(a){if(!a.match("^[a-zA-Z0-9_\\-\\.]+$"))throw Error("Illegal host id");this.Za.hostId=a;this.wK.T(Ei,a);return this};q.Bw=function(a){a&&(this.Za.origin=a);return this};q.CD=function(a){this.Za.defaultView=a;return this};q.f6=function(a){this.Za.learnMore=a;return this};q.CO=function(a){this.Za.hl=a;this.wK.T("hl",a);return this};
q.D6=function(a){this.Za.selectableMimeTypes=lv(a.split(","));return this};q.LD=function(a){this.Za.selectButtonLabel=a;return this};q.xb=function(a,b){this.gg=a;this.Nj=b;return this};q.PD=function(a){var b=[];a=a.split(",");for(var c=0;c<a.length;c++)b.push(a[c]);this.Za.thumbs=b;return this};q.fb=function(a){this.Za.title=a;return this};q.aBa=function(a){this.Za.subTitle=a;return this};q.W6=function(){return this};q.Fr=function(a){this.Za.uploadToAlbumId=a;return this};
q.qk=function(){var a=this.wK.T("nav",this.ui()).T(zk,"1");a.T("origin",this.Za.origin);this.Ie.length&&a.T("pp",lv(this.Ie));return a.clone()};q.ZD=function(a){this.Za.srum=a;return this};q.ND=function(a){this.Za.serviceIds||(this.Za.serviceIds=[]);this.Za.serviceIds.push(a);return this};q.QEa=function(){for(var a=this.dA(zp),b=0;b<a.length;b++){var c=a[b],e=c.getQuery();if(!e||!this.Za.uploadConfigs[e])throw Error("missing upload configuration for: "+c);}};var tZ=function(){this.ge={}};q=tZ.prototype;q.nya=function(a){this.ge.at=a;return this};q.fO=function(a){this.ge.det=a;return this};q.jO=function(a){this.ge.dzt=a;return this};q.iO=function(a){this.ge.dzat=a;return this};q.M5=function(a){this.ge.text=a;return this};q.Xza=function(a){this.ge.mechanisms=a;return this};q.$za=function(a){this.ge.metadata=a;return this};q.TO=function(a){this.ge.selectLabel=a;return this};q.ND=function(a){this.ge.serviceId=a;return this};
q.a7=function(a){this.ge.uet=a;return this};q.ro=function(a){this.ge.url=a;return this};q.zs=function(){var a=this.ge;if(!a.url)throw Error("url must be specified");return new bS(a)};
var uZ=function(a){a=a.replace("_","-");"en-us"==a.toLowerCase()&&(a="en_us");return"https://picasa.google.com/intl/{locale}/web/privacy.html".replace("{locale}",a)},vZ=function(a){a='When you upload photos, they\'ll be stored  in an online album in Picasa Web Albums, Google\'s free photo sharing service.\n <a target="_blank" class="upload-text-a" href="'+(uZ(a)+'">View Picasa program policies and privacy notice</a>');return(new tZ).M5(a).a7("There was an upload error.<br>Make sure to upload a JPG, GIF, or PNG file and try again.").fO("Oops, you dragged more than one photo!<br>Please only drag your desired photo.").ND(Al).jO("Drag photos here").iO(Yc).TO("Select photos from your computer").Xza(["XHR",
Ec]).ro("/upload/photos/resumable").$za({disable_asbe_notification:sp})};w(nm,rZ,void 0);rZ.prototype.render=rZ.prototype.render;rZ.prototype.setVisible=rZ.prototype.C;rZ.prototype.getDisposeOnHide=rZ.prototype.MI;rZ.prototype.listen=rZ.prototype.listen;rZ.prototype.dispose=rZ.prototype.dispose;w(mm,pZ,void 0);pZ.prototype.setMargin=pZ.prototype.i6;pZ.prototype.setPinnedCorner=pZ.prototype.PO;pZ.prototype.sendCommand=pZ.prototype.ld;pZ.prototype.disableAnimateView=pZ.prototype.et;w("picker.api.NativePickerBuilder",Z,void 0);Z.prototype.addLabel=Z.prototype.So;
Z.prototype.addUploadConfiguration=Z.prototype.$ba;Z.prototype.addView=Z.prototype.Uo;Z.prototype.addViewGroup=Z.prototype.Vo;Z.prototype.build=Z.prototype.zs;Z.prototype.buildMinimal=Z.prototype.WF;Z.prototype.disableFeature=Z.prototype.Gy;Z.prototype.disableAutoHide=Z.prototype.pH;Z.prototype.enableFeature=Z.prototype.Hp;Z.prototype.getNav=Z.prototype.ui;Z.prototype.getProtocol=Z.prototype.ku;Z.prototype.getRelayUrl=Z.prototype.getRelayUrl;Z.prototype.getSelectButtonLabel=Z.prototype.bn;
Z.prototype.getTitle=Z.prototype.Pd;Z.prototype.hideTitleBar=Z.prototype.uA;Z.prototype.isFeatureEnabled=Z.prototype.NK;Z.prototype.resetNav=Z.prototype.VC;Z.prototype.setAuthUser=Z.prototype.YN;Z.prototype.setCallback=Z.prototype.ko;Z.prototype.setHostId=Z.prototype.xr;Z.prototype.setInitialView=Z.prototype.CD;Z.prototype.setLearnMore=Z.prototype.f6;Z.prototype.setLocale=Z.prototype.CO;Z.prototype.setMaxItems=Z.prototype.zw;Z.prototype.setOrigin=Z.prototype.Bw;Z.prototype.setProtocol=Z.prototype.KD;
Z.prototype.setRelayUrl=Z.prototype.setRelayUrl;Z.prototype.setSelectButtonLabel=Z.prototype.LD;Z.prototype.setThumbs=Z.prototype.PD;Z.prototype.setTitle=Z.prototype.fb;Z.prototype.setSubTitle=Z.prototype.aBa;Z.prototype.setUiVersion=Z.prototype.W6;Z.prototype.setUploadToAlbumId=Z.prototype.Fr;Z.prototype.toUri=Z.prototype.qk;w("picker.api.UploadConfigurationBuilder",tZ,void 0);tZ.prototype.build=tZ.prototype.zs;tZ.prototype.setUploadErrorText=tZ.prototype.a7;tZ.prototype.setDragErrorText=tZ.prototype.fO;
tZ.prototype.setDropZoneText=tZ.prototype.jO;tZ.prototype.setDropZoneAltText=tZ.prototype.iO;tZ.prototype.setSelectFilesLabel=tZ.prototype.TO;tZ.prototype.setServiceId=tZ.prototype.ND;tZ.prototype.setUrl=tZ.prototype.ro;w("picker.api.UploadConfigurationBuilder.createPhotosBuilder",vZ,void 0);
w("picker.api.UploadConfigurationBuilder.createVideosBuilder",function(a){var b='By uploading videos, you agree to the <a target="_blank" class="upload-text-a" href="'+(uZ(a)+'">Upload Terms and Conditions</a>.');return vZ(a).nya([Vp]).M5(b).TO("Choose videos to upload").fO("Oops, you dragged more than one image!").jO("Drag videos here").iO(Yc)},void 0);var wZ=function(a){this.DEa=a||!1};B(wZ,cD);var xZ=null;q=wZ.prototype;q.BY=function(){return this.DEa?Fg:"tr"};q.g=function(a){var b=this.Zd(a);a=a.j();var c=this.BY();return b?a.g(c,{"class":b.join(" ")}):a.g(c)};q.tc=function(a){return a.tagName.toLowerCase()==this.BY()};q.R=function(a,b){return wZ.c.R.call(this,a,b)};
q.pX=function(a){switch(a){case xg:return"upload-state-default";case Wi:return"upload-state-inqueue";case Oo:return"upload-state-start";case qp:return"upload-state-upload";case "pause":return"upload-state-pause";case df:return"upload-state-backoff";case Vo:return"upload-state-complete";case gh:return"upload-state-error";case qf:return"upload-state-cancel";default:return""}};q.Bd=function(a){wZ.c.Bd.call(this,a);hA(a.b(),!1,yt);a.GO("");a.EI().C(!1);a.mJ().C(!1)};
q.LE=function(a){var b=a.getMessage();a=a.zja();b?(a.eb(" ("+b+")"),a.C(!0)):(a.eb(""),a.C(!1))};q.kP=function(a,b,c){a.iN(this.pX(b));a.wk(this.pX(c));a.kY().C(c==xg||c==Wi);a.EI().C(c==Oo||c==qp||c==df);b=a.getValue();a.mJ().C(b.qT)};q.S=function(){return"upload-file"};var yZ=function(a,b,c){gD.call(this,a,b||xZ||(xZ=new wZ),c);this.jG=new L;this.qr(!0)};B(yZ,gD);yZ.prototype.dispatchEvent=function(a){try{return yZ.c.dispatchEvent.call(this,a)}catch(b){pv(this.F,zc,b)}};var zZ={C$:xg,X$:Wi,Saa:Oo,Xaa:qp,KJa:"pause",tFa:df,Uaa:Vo,qaa:rl,ERROR:gh,Mo:qf};q=yZ.prototype;q.F=ov("apps.uploader.ui.FileItem");q.jx=xg;q.Or=null;q.M3=null;q.uT=null;q.u4=null;q.D1=null;q.Gn="";q.kY=function(){return this.M3||(this.M3=new QD(null,zG.H(),this.j()))};
q.EI=function(){return this.uT||(this.uT=new QD(null,zG.H(),this.j()))};q.mJ=function(){return this.u4||(this.u4=new QD(null,zG.H(),this.j()))};q.zja=function(){return this.D1||(this.D1=new gD("",void 0,this.j()))};q.setValue=function(a){this.Dc(a);this.LE()};q.getValue=function(){return this.$};q.LE=function(){this.M.LE(this)};q.kP=function(a){if(a!=this.jx){if(Ss(zZ,a)){var b=this.jx;this.jx=a;this.M.kP(this,b,a);return!0}throw Error("Unsupported upload state: "+a);}return!1};q.z7=function(a){this.GO(a)};
q.getMessage=function(){return this.Gn};q.GO=function(a){a!=this.Gn&&(this.Gn=a,this.LE())};q.Tc=function(a){a.target!=this.b()&&this.Cla(a);return yZ.c.Tc.call(this,a)};q.Cla=function(a){var b=a.target.id;this.jG.Xb(b)&&this.jG.get(b)(a)};q.gN=function(a,b){this.jG.set(a.getId(),b)};q.B=function(){yZ.c.B.call(this);this.b().id=this.Ig(rh);this.M.kP(this,this.jx,this.jx);this.gN(this.kY(),y(this.rna,this));this.gN(this.EI(),y(this.xla,this));this.gN(this.mJ(),y(this.Cna,this))};q.rna=function(){this.dispatchEvent("removeclicked")};
q.xla=function(){this.dispatchEvent("cancelclicked")};q.Cna=function(){this.dispatchEvent("retryclicked")};ZC("upload-file",function(){return new yZ(null)});var AZ=function(){};q=AZ.prototype;q.Fpa=function(){this.Zsa=new BZ(webspace.domain,webspace.name,webspace.siteNoticeMessage,webspace.siteNoticeRevision)};q.ssa=function(){var a=this.Zsa;if(!a.getMessage()||this.$sa(a))return!1;this.Hwa(a);return!0};q.$sa=function(a){var b=Ir.get(wj);return b?is(b.split("|"),String(a.w4)):!1};q.Wla=function(a){this.mwa();var b=Ir.get(wj);a=String(a.w4);b&&(a=b+"|"+a);this.Wya(a)};q.Wya=function(a){Ir.set(wj,a,7776E3,this.uia())};q.uia=function(){return webspace.baseUri};
q.Hwa=function(a){var b=a.getMessage();if(b){b=UE(LI,{message:b});b.setAttribute(Qm,Bg);this.a2=b;var c=iG("Ok, got it");I(c,k,y(this.Wla,this,a));c.render(b);if(webspace.siteNoticeUrlEnabled){var e=Pw(webspace.siteNoticeUrlAddress);Mw(e)!=$d&&(a=iG("More details"),I(a,k,function(){window.open(Mw(e))}),a.render(b),a.b().setAttribute(Qm,"link"))}wy(document.body,b,0);b.focus()}};q.mwa=function(){this.a2&&xy(this.a2)};var BZ=function(a,b,c,e){this.sd=a;this.$i=b;this.Gn=c;this.w4=e};
BZ.prototype.getMessage=function(){return this.Gn};var CZ=function(){this.b2=new AZ;JOT_addListener("usercontentrendered",y(this.oza,this))};w("JOT_setupPostRenderingManager",function(){return new CZ},void 0);CZ.prototype.oza=function(){this.b2.Fpa();if(!this.b2.ssa()){var a=document.getElementById("sites-page-title");a&&a.focus()}};var DZ=GK.H();webspace.commonSharingUrl=webspace.baseUri+"/system/app/pages/admin/commonsharing";webspace.manageUrl=webspace.user.hasAdminAccess?webspace.baseUri+"/system/app/pages/admin/settings":webspace.baseUri+"/system/app/pages/admin/recentsiteactivity";webspace.monetizeUrl=webspace.baseUri+eb;
var EZ=new Ty(new String(window.location)),FZ=EZ.mb("pageDeleted"),GZ=EZ.mb("pageReverted"),HZ=EZ.mb("pageRevertErr"),IZ=EZ.mb("pageUrlChanged"),JZ=EZ.mb("pageMoved"),KZ=EZ.mb("unsubPage"),LZ=EZ.mb("unsubSite"),MZ=EZ.mb(xm),NZ=EZ.mb("templateSaved"),OZ=EZ.mb("webspaceRestored");
if(FZ)S("Page deleted.");else if(GZ){var PZ="Page reverted to revision "+qr(GZ);S(PZ)}else if(HZ)S("Unable to revert to previous revision.");else if(IZ){var QZ="Page URL changed to "+qr(IZ);S(QZ)}else if(JZ){var RZ='"'+(qr(webspace.page.title)+('" has been moved under "'+(qr(decodeURIComponent(JZ))+'"')));S(RZ)}else KZ?S(Ud):LZ?S(Td):MZ?S("Viewer preview"):NZ?(S("The page template has been saved."),SA(1E4)):OZ&&(S("Webspace restored successfully."),SA(1E4));
JOT_addListener(Pc,function(){function a(a,c,e,f,g){if(40==g.keyCode||38==g.keyCode||13==g.keyCode)b(a,c,e,f),g.preventDefault(),g.stopPropagation()}function b(a,b,c,e){P("page-btns").style.display!=Ek&&a.q7(b,c,e)}function c(){sH(Kd,od,XH(webspace.baseUri,webspace.page.path,Gb))}function e(){window.jstiming.load.t={};window.jstiming.load.tick("_start_edit");qH(Kd,tc);JOT_postEvent(ol)}function f(a){sH(Kd,hc,XH(webspace.baseUri+"/system/app/pages/createPage"+(a?"?pt=":"?source=")+webspace.page.path))}
function g(){sH(Kd,"Share",XH(webspace.commonSharingUrl+"#"+webspace.page.path))}var h=webspace.page.isRtlLocale,l=0==webspace.page.path.indexOf(Wa),p=P(Eo);if(p){var r=new hG;r.R(p);I(r,k,c);r.U(!0);p.setAttribute(Te,od)}if(p=P(Xg))r=new hG,r.R(p),r.Yg(2),I(r,k,e),r.U(!0),p.setAttribute(Te,l?uc:tc);if(r=P(kg)){var z=new hG;z.R(r);p&&(z.Yg(1),aB(p,"collaborator-btn-collapse-right"));I(z,k,Wq(f,l));z.U(!0);r.setAttribute(Te,l?gc:"Create page")}if(r=P("sites-share-visibility-btn"))l=webspace.user.hasAdminAccess,
p=new OQ,p.R(r),p.Cj().U(l),r=EO(webspace.page.pageInheritsPermissions),r==Si?p.n5("This page has custom permissions. New users added to this site will also be added to this page.","sites-share-button-permission-inherits-icon"):r==Ri&&p.n5("This page has custom permissions. New users added to this site will not be added to this page.","sites-share-button-permission-ignores-icon"),l&&I(p,k,g);if(l=P(mk))p=new hG,p.R(l),p.U(!0),l.setAttribute(Te,"More actions");l=dy("sites-collaborator-bar-back-arrow");
dy("sites-site-name-link")&&l&&new TG(l,"Back to My Sites");dy("sites-site-template-name")&&l&&new TG(l,"Back to template listing");r=P("more-actions-menu");l=P(mk);if(r&&l){p=new SZ;p.R(r);r=h?1:5;h=h?0:4;p.pd(l,r,h);fy(l,{"aria-haspopup":sp});(z=Ry(l,void 0,fj))&&I(z,zj,Wq(a,p,l,r,h));h=new OK(Wq(b,p,l,r,h),!0);DZ.gh(h,h.Mp);if(r=P(Fn))r=!dB(r,Dn),p.Sk(Fn).U(r);h.To(l);(new rI).x_(p)}});JOT_postEvent(Pc);var SZ=function(a,b){wD.call(this,a,b)};B(SZ,wD);
SZ.prototype.wc=function(a){if(13==a.keyCode&&this.Ff())for(var b=this.Ff().b();null!=b;b=By(b))if(b.getAttribute(Rk))return b.onclick(null),this.C(!1),!0;return vD.c.wc.call(this,a)};var TZ=function(a,b,c,e){F.call(this);webspace.user&&(this.pra=a,this.Fua=b||null,this.V_=!!c,this.qz=String(webspace.user.sessionIndex),this.lh=(e||"/_/sharing")+"/share",this.so=null,this.G=new jC(this),this.dB=[],this.Hea(this.V_),this.dB.push(JOT_addListener("showShareDialog",y(this.SBa,this))))};B(TZ,F);w("sites.core.sharing.Client",TZ,void 0);q=TZ.prototype;q.hb=null;q.yh=function(){return this.G};
q.Hea=function(a){var b=a?webspace.pageSharingId:webspace.sharingId;this.hb=this.dsa();this.so=new XQ(this.qz,webspace.sharingId,"jotspot",void 0,webspace.page.locale,!0,b,this.hb);this.so.vya(this.lh);this.Iza(a,this.pra,this.Fua);this.G.listen(this.so,Oj,this.boa);this.V_=a};q.Iza=function(a,b,c){this.so.Jza(a?c:b)};q.dsa=function(){return new cR};q.YO=function(a){this.hb&&this.hb.YO(a)};q.SBa=function(){this.so.mi(vn)};q.boa=function(){dI("IncrementShareErrors",{})};
q.o=function(){TZ.c.o.call(this);for(var a=0;a<this.dB.length;a++)JOT_removeListenerByKey(this.dB[a]);this.dB=null;G(this.so);this.so=null;G(this.G);this.G=null;G(this.hb);this.hb=null};var WZ=function(a,b,c){this.TB=a;this.title=b;this.dom=N(document);this.RB=this.dom.b(Pb+a);var e=this.Qja();e&&this.aX(this.RB,function(a){this.S5(a,!is(e,a.getAttribute("wuid")))});a=this.dom.ri(d,"current-bg",this.RB);if(0<a.length)for(this.xG=!0,a=a[0].parentNode;a;)a=this.Vz(a),Dy(a)&&this.S5(a,!1);I(this.RB,Bf,y(this.Tsa,this));UZ.push(this);c||VZ.push(this)};WZ.prototype.xG=!1;var UZ=[],VZ=[];q=WZ.prototype;q.jR="SitesNav";q.y$=5184E3;q.caa=40;q.qR="+";q.mR="x";
q.aX=function(a,b,c){b=y(b,this);a=this.dom.ri("LI",m,a);for(var e=0;e<a.length;e++)b(a[e],c)};q.S5=function(a,b){fC(a,Df,b)};q.Vz=function(a){return this.dom.Sha(a.parentNode,"LI",m)};q.oX=function(a){return null==a?null:(a=by("ul",null,a))&&a[0]?a[0]:null};q.Qja=function(){var a=Ir.get(this.jR+this.TB);return null==a?null:""==a||a==this.mR?[]:a.split(this.qR)};
q.fEa=function(){var a=[];this.aX(this.RB,function(b){var c=b.getAttribute("wuid");c&&!bC(b,Df)&&a.push(c)});var b=a.slice(0,this.caa).join(this.qR);b=b||this.mR;Ir.set(this.jR+this.TB,b,this.y$,webspace.baseUri)};q.Tsa=function(a){if(a.target instanceof Element&&bC(a.target,mh)){var b=this.Vz(a.target),c=!bC(b,Df);fC(b,Df,c);this.oca(b,!c);this.fEa();a.preventDefault()}};
q.oca=function(a,b){var c=this.oX(a);if(null!=a&&null!=c){var e=c.scrollHeight,f=this.Vz(a);b?(U(c,pe),c.style.height=e+n,this.sN(f)):(c.style.height=e+n,M(function(){U(c,pe);c.style.height="0px";this.sN(f)},0,this))}};q.sN=function(a){var b=this.oX(a);null!=a&&null!=b&&(b.style.height="",dC(b,pe),this.sN(this.Vz(a)))};w("JOT_setupNav",function(a,b,c){return new WZ(a,b,c)},void 0);
w("JOT_NAVIGATION_titleChange",function(a){var b=YH(byId(a.listenerCompId))[a.payload.wuid];x(b)||(b=[b]);for(var c in b){var e=b[c];if(e){var f=e.firstChild;f&&f.className==mh&&(e=f.nextSibling);3==e.nodeType?e.parentNode.replaceChild(document.createTextNode(a.payload.title),e):Gy(e,a.payload.title)}}},void 0);var XZ=function(a){JOT_addListener("copyTemplate",y(this.Yda,this));JOT_addListener(Fn,y(this.s7,this));JOT_addListener(Gn,y(this.B7,this));JOT_addListener(Hn,y(this.$D,this));JOT_addListener(Jn,y(this.kCa,this));JOT_addListener("showSaveAsPageTemplate",y(this.H7,this));JOT_addListener("showSelectDefaultTemplateLocation",y(this.fCa,this));JOT_addListener(lp,y(this.uE,this));JOT_addListener(mp,y(this.Q8,this));var b={};b.smartPreview=new YK("smartPreview"in a);var c=P(Eo);c&&b.smartPreview.To(c);b.editPage=
new LK("editPage"in a);(c=P(Xg))&&b.editPage.To(c);b.openCreatePage=new RK(Uk in a);(c=P(kg))&&b.openCreatePage.To(c);b.editSiteLayout=new MK(Yg in a);b.openRevisionHistory=new SK(Wk in a);b.togglePageSubscription=new ZK(y(this.uE,this),lp in a);b.showPageSettings=new WK(y(this.$D,this),Hn in a);b.printPage=new UK("printPage"in a);b.openCopyPage=new QK("openCopyPage"in a);b.showMovePage=new PK(y(this.B7,this),Gn in a);if(c=P(Fn)){var e=!dB(c,Dn);b.showDeletePage=new KK(y(this.s7,this),e);e||b.showDeletePage.To(c)}b.previewAsViewer=
new TK(xm in a);b.saveAsPageTemplate=new VK(y(this.H7,this),Um in a);b.openChangePageTemplate=new IK(y(this.Uz,this),Tk in a);b.toggleSiteSubscription=new $K(y(this.Q8,this),mp in a);b.openManageSite=new NK(Vk in a);b.showShareClient=new XK(In in a);webspace.user.keyboardShortcuts&&!webspace.user.renderMobile&&(this.Wva(b),this.Zba(b));this.oda();this.Wl=b;this.nQ=0;this.vE=!1};B(XZ,F);w("gsites.pages.PageActions",XZ,void 0);q=XZ.prototype;
q.Wva=function(a){var b=GK.H(),c;for(c in a){var e=a[c];e.isEnabled()&&e.bb()&&b.gh(e,e.Mp)}};q.ODa=function(a){var b=GK.H(),c;for(c in a)b.ao(a[c])};q.oda=function(){var a={action:"checkCriteria"};webspace.user.hasAdminAccess&&webspace.isAdsenseEnabled&&!webspace.adsensePromoClickedOrSiteIneligible&&dI(Hb,a,y(this.doa,this),null)};q.doa=function(a){a=a.target.Ba();a.showPromo&&1==a.showPromo&&this.nba()};
q.nba=function(){var a=new GD,b=UE(KI);document.body.appendChild(b);a.ur(b);a.setPosition(new TC(P(mk),1));a.i6(new Bz(25,-80,0,0));a.PO(4);a.ow(!1);I(window,Om,function(){a&&a.N()&&a.ha()});this.b3=a;this.mba();a.C(!0)};q.mba=function(){var a=dy("goog-adsense-promo-monetize-btn"),b=new QD("Sign up for AdSense",uE.H());I(b,k,this.mla,!1,this);b.render(a);a=dy("goog-adsense-promo-dismiss");I(new nB(a),k,this.kla,!1,this)};q.mla=function(){dI(Hb,{action:"monetizeClicked"},y(this.lla,this),null)};
q.kla=function(){dI(Hb,{action:"dismissClicked"},y(this.jla,this),null)};q.lla=function(){this.b3.C(!1);Sx(window.location,XH(webspace.baseUri,eb))};q.jla=function(){this.b3.C(!1)};q.Zba=function(a){for(var b in a){var c=a[b],e=P(b);if(e&&c.isEnabled()){if(c=c.PX())c=AJ(c),c=qy(document,xE("<span>"+c+ob)),aB(c,"more-actions-menu-item-helptext"),uy(c,e.firstChild);aB(e,"more-actions-shortcuts-enabled")}}};q.ml=function(a){a=P(a);return!a||a&&a.style.display==Ek?"":yf};
q.Uz=function(){return XH(webspace.baseUri,"/system/app/pages/changePageTemplate?wuid="+webspace.page.wuid+"&pt="+webspace.page.currentTemplate.path)};
q.$D=function(a){qH(Uc,"Page settings");var b=this.Uz();b={Ev:webspace.page.name,Vsa:"draft"!=webspace.page.state,R2:!0,Q2:this.ml(ro),u8:webspace.page.type!=qe,t8:this.ml(Rb),OS:webspace.page.type!=sh,PS:this.ml(Un),$T:!0,aU:this.ml(Qb),canChangePath:webspace.page.canChangePath,ll:wA,vv:VZ,NM:webspace.page.parentPath||"",YNa:webspace.page.path,Hua:webspace.page.currentTemplate.title,Gua:b,eqa:webspace.user.hasAdminAccess,Eua:this.Wja(),Lga:webspace.page.type==sh,Kda:!!P("JOT_FILECAB_cf"),Kga:!!P("JOT_FILECAT_header")};
a.payload.opt_msg&&(b.Zy=a.payload.opt_msg);a=""+(b.Zy?xb+W(b.Zy)+mb:"")+"<p>"+xI(b,null,void 0)+(b.Lga?'<br/><label><input jotId="collapseFolderEl" type="checkbox"'+(b.Kda?da:"")+'/>Collapse folders by default</label><br/><label><input jotId="fileCabinetHeaderEl" type="checkbox"'+(b.Kga?da:"")+"/>Show column headers</label>":"");var c=yF;var e=b.Eua;wF(e,zE)?(C(e.constructor===JE),e=KF(e.zb())):e=qr(String(e));c=c('<div><label for="page-description-field"><strong>Page description</strong></label></div><div><textarea cols="45" rows="2" jotId="pageDescriptionEl" id="page-description-field">'+
e+"</textarea></div>");a=a+c+"</p>";if(b.Vsa&&0<b.vv.length&&b.eqa){a+='<p class="sites-page-settings-divider" jotId="showInNavigationEl">';if(1<b.vv.length){a+="<b>Show this page in the sidebar:</b>";c=b.vv;e=c.length;for(var f=0;f<e;f++){var g=c[f];a+='<br/><label><input type="checkbox" value="'+X(g.TB)+'"'+(g.xG?ca:"")+"/>"+W(g.title)+"</label>"}}else a+='<label><input type="checkbox" value="'+X(b.vv[0].TB)+'"'+(b.vv[0].xG?ca:"")+"/>Show this page in the sidebar</label>";a+="</p>"}a+=(b.canChangePath?
'<p class="sites-page-settings-divider"><strong>Page URL</strong><br/><span style="color: gray">Page URLs can only use the following characters: -,A-Z,a-z,0-9</span><input jotId="pageURL" type="text"'+(b.ll?ja:"")+' value="'+X(b.Ev)+ta+W(b.NM)+Va+W(b.Ev)+pb:"")+'<p class="sites-page-settings-divider">Currently using page template&nbsp;<strong>'+W(b.Hua)+'</strong> (<a href="'+X(UF(b.Gua))+'">Change</a>)<br/></p>';b=yF(a);b=aQ("Page Settings",b.toString(),null,hd,y(this.Gna,this));b.C(!0);this.C7(b.ei.pageURL,
b.ei.pageURLScrubbed)};q.Wja=function(){var a=P("meta-tag-description");return a&&a.content?a.content:""};q.C7=function(a,b){var c=function(){var c=ZP(a.value,!1,!1,!0);c=IO(c,webspace.page.parentPath,!1);Gy(b,c||"")};a&&(I(a,Bj,c),I(a,hf,c))};
q.Gna=function(a){var b=YH(a.eventSrc);if(b.pageURL&&!cr(b.pageURL.value))return S("The Page URL field cannot be left blank."),b.pageURL.focus(),!1;a={wuid:webspace.page.wuid,path:webspace.page.path,navIds:[],properties:{"config/showPageTitle":b.showPageTitleEl?b.showPageTitleEl.checked:!1,"config/showComments":b.allowCommentsEl?b.allowCommentsEl.checked:!1,"config/showAttachments":b.allowAttachmentsEl?b.allowAttachmentsEl.checked:!1,"config/showSubpages":b.allowSubpagesEl?b.allowSubpagesEl.checked:
!1,"config/pageDescription":b.pageDescriptionEl?b.pageDescriptionEl.value:""}};webspace.page.type==sh&&(a.properties["config/collapseFolders"]=b.collapseFolderEl.checked,a.properties["config/fileCabinetHeader"]=b.fileCabinetHeaderEl.checked);var c=b.showInNavigationEl;if(c){c=c.getElementsByTagName(Vi);for(var e=0;e<c.length;e++)c[e].checked&&a.navIds.push(c[e].value)}webspace.uxa(a,y(function(){S(kd);var a=b.pageURL&&ZP(Oy(b.pageURLScrubbed),!1,!1,!0);a&&webspace.page.name!=a?this.RY(a,Hn):Sx(window.location,
XH(webspace.baseUri,webspace.page.path))},this),function(){S("ERROR: Page settings not saved.")})};
q.RY=function(a,b){S("Changing page URL, please wait...");webspace.gM({path:webspace.page.path,newPath:webspace.page.parentPath?XH(webspace.page.parentPath,a):"/"+a,unique:!1},function(c){c=c.target.Ba();c.error?/already\ exists/.exec(c.error)?(c=webspace.page.parentPath?webspace.page.parentPath:Ld,c='Error: There is already a page named "'+(qr(a)+('" under '+qr(c))),JOT_postEvent(b,this,{opt_msg:c}),SA()):/lock\ page/.exec(c.error)&&(JOT_postEvent(Hn,this,{opt_msg:"Error: The page you are trying to move is currently locked."}),
SA()):Sx(window.location,c.newPath+"?pageUrlChanged="+encodeURIComponent(a))},function(a){S("ERROR: "+a)})};
q.H7=function(){qH(Uc,"Save page as template");var a={ll:wA,defaultLocationPath:Ld};a=yF('<p>Saving a page as a template will create a copy of this page that you and others can use to create new custom pages. Any content on your page will be included in the new template.</p><p class="sites-page-settings-divider">'+yI({S1:!0,ll:a.ll,description:""},null,void 0)+zI(a,null,void 0)+"</p>");var b=qr(webspace.page.title);a=aQ("Save as page template",a.toString(),{pageURL:b},hd,y(this.Fna,this));a.C(!0);
this.ph=a.ei};
q.Fna=function(a){var b=YH(a.eventSrc);if(b.pageTemplateName&&!cr(b.pageTemplateName.value))return S("The page template name field cannot be left blank."),b.pageTemplateName.focus(),!1;dI(id,{wuid:webspace.page.wuid,path:webspace.page.path,revision:webspace.page.revision,name:b.pageTemplateName.value,desc:b.pageTemplateDesc.value,defaultLocationWuid:b.defaultLocationWuid.value,force:!1},y(function(a){a=a.target.Ba();a.error?"Outdated"==a.error?S(nc):S(qc):a.warning?"Locked"==a.warning&&this.Ena(b,
a):this.lS(a.templatePath)},this),function(){S(qc)})};
q.Ena=function(a,b){var c=qr(b.thatUser,!1)+" is editing this page. Would you like to break their lock and save the current version as a template?";aQ("Edit Conflict","<p>"+c+"</p>",null,"Yes",y(function(){dI(id,{wuid:webspace.page.wuid,path:webspace.page.path,revision:webspace.page.revision,name:a.pageTemplateName.value,desc:a.pageTemplateDesc.value,force:!0},function(){b.error?"Outdated"==b.error?S(nc):S(qc):this.lS(b.templatePath)},function(){S(qc)})},this),"No",function(){SA()}).setVisible(!0)};
q.lS=function(a){Sx(window.location,XH(webspace.baseUri,a))};
q.kCa=function(a){qH(Uc,Ad);var b={Ev:webspace.page.name,NM:webspace.page.parentPath||"",R2:!0,Q2:this.ml(ro),u8:webspace.page.type!=qe,t8:this.ml(Rb),OS:webspace.page.type!=sh,PS:this.ml(Un),$T:!0,aU:this.ml(Qb),canChangePath:webspace.page.canChangePath,ll:wA,description:webspace.template.desc||"",defaultLocationWuid:webspace.template.defaultLocationWuid,defaultLocationPath:webspace.template.defaultLocationPath};a.payload.opt_msg&&(b.errorMsg=a.payload.opt_msg);a=yF(""+(b.Zy?xb+W(b.Zy)+mb:"")+yI({S1:!1,
ll:b.ll,description:b.description},null,void 0)+zI(b,null,void 0)+'<div class="sites-page-settings-divider"><div style="margin-bottom: 5px;"><b>Default page settings</b></div><div style="margin-bottom: 5px;">Set the default settings for this page template. These settings can be overridden by the page creator</div>'+xI(b,null,void 0)+mb+(b.canChangePath?'<p class="sites-page-settings-divider"><strong>Page URL</strong><br/><span style="color: gray">Page URLs can only use the following characters: -,A-Z,a-z,0-9</span><input jotId="pageURL" type="text" value="'+
X(b.Ev)+ta+W(b.NM)+Va+W(b.Ev)+pb:"")+"");a=aQ(Ad,a.toString(),null,hd,y(this.Jna,this));a.C(!0);this.ph=a.ei;this.C7(this.ph.pageURL,this.ph.pageURLScrubbed)};
q.Jna=function(a){var b=YH(a.eventSrc);S(kd);dI("SaveTemplateSettings",{path:webspace.page.path,desc:b.pageTemplateDesc.value,defaultLocationWuid:b.defaultLocationWuid.value,"config/showPageTitle":b.showPageTitleEl?b.showPageTitleEl.checked:!1,"config/showComments":b.allowCommentsEl?b.allowCommentsEl.checked:!1,"config/showAttachments":b.allowAttachmentsEl?b.allowAttachmentsEl.checked:!1,"config/showSubpages":b.allowSubpagesEl?b.allowSubpagesEl.checked:!1},y(function(a){a=a.target.Ba();var c=b.pageURL&&
ZP(Oy(b.pageURLScrubbed),!1,!1,!0);a.error?S(mc):c&&webspace.page.name!=c?this.RY(c,Jn):Sx(window.location,XH(webspace.baseUri,webspace.page.path))},this),function(){S(mc)})};q.Yda=function(){qH(Uc,"Copy template");S("Copying this template...");dI("CopyTemplate",{path:webspace.page.path,title:webspace.page.title},function(a){a=a.target.Ba();a.error?S(oc):Sx(window.location,XH(webspace.baseUri,a.path))},function(){S(oc)})};
q.s7=function(){qH(Uc,"Delete page");var a=AI({O2:webspace.page.wuid,P2:webspace.page.title,baseUri:webspace.baseUri});this.Bm=aQ("Delete "+webspace.page.title,a.toString(),null,"Delete",y(this.Rla,this));this.Bm.C(!0);this.ph=YH(P("COMP_dialog"));var b=[];webspace.search({forDescendants:webspace.page.path},y(function(a){if((a=a.target.Ba())&&a.length){b=a;a={};for(var c=0;c<b.length;c++){var f=b[c];f[Wj]&&(f[Wj]=qr(f[Wj]));f["CommentForm/isComment"]?(f.path=XH(a[f.parentWuid],"Comments"),f[Wj]="Comments"):
a[f.wuid]=f.path}}R(this.ph["pageList-"+webspace.page.wuid],!0);rP(b,qr(webspace.page.title),this.ph["treeDiv-"+webspace.page.wuid]).hga(!1);this.Bm.ha()},this))};q.Rla=function(){var a={path:webspace.page.path,removeChildren:!0};this.Bm.m5(!1,!0);webspace.wV(a,y(this.pla,this),function(){this.Bm.C(!1);this.Bm.dispose();S("ERROR: Page not deleted.")});return!1};q.bo=function(a,b){var c=this.ph.errorPageText;SE(c,a,b);c.style.display="block"};
q.pla=function(a){var b=a.target.Ba();b.removeChildren?this.T0(this.hka(a)):(this.ph.confirmText.style.display=Ek,b.onLandingPage?this.bo(CI,{vra:b.onLandingPage}):b.pageNotFound?this.bo(DI):b.parentPermissionError?this.bo(GI):b.childPermissionError?this.bo(HI):1==b.length&&b[0].wuid==webspace.page.wuid&&b[0].lockUser?this.bo(FI,{Qra:b[0].lockUser}):b[0]&&b[0].lockUser?(this.bo(EI),SE(this.ph["treeDiv-"+webspace.page.wuid],JI,{results:b,upa:webspace.page.wuid})):this.bo(II))};
q.hka=function(){return(webspace.template?webspace.baseUri+fb:webspace.page.parentPath?XH(webspace.baseUri,webspace.page.parentPath):XH(webspace.baseUri,webspace.homePath))+"?pageDeleted=true"};q.T0=function(a){dI("VerifyPageUpdated",{wuid:webspace.page.wuid},y(this.zoa,this,a),y(this.DZ,this,a))};q.zoa=function(a,b){var c=b.target.Ba();c.error?this.DZ(a,b):c.completed?(this.Bm.dispose(),this.y3(a)):window.setTimeout(y(this.T0,this,a),1500)};
q.DZ=function(a,b){b=b.target.Ba();S(b.error);this.Bm.dispose();this.y3(a)};q.y3=function(a){Sx(window.location,a)};
q.B7=function(){qH(Uc,"Move page");var a=yF(zb),b=gI(webspace.page.title,fI(webspace.page.title)),c=aQ("Move Page: "+b,a.toString(),null,"Move",y(this.oZ,this));c.C(!0);var e=this;this.ek=new qP(c.ei.treeDiv,function(){e.oZ()&&c.close()},!0,!0,!0);this.parentPath=webspace.page.path.split("/");this.parentPath.pop();this.parentPath=this.parentPath.join("/");""==this.parentPath&&(this.parentPath="/");this.ek.nr(this.parentPath,!0);c.ha()};
q.oZ=function(){if(this.ek.S4())return!1;var a=this.ek.Li;if(this.parentPath==a)return a=qr(webspace.page.name)+" is already at this location, nothing moved.",S(a),!0;webspace.gM({path:webspace.page.path,newPath:XH(a,webspace.page.name)},y(function(a){a=a.target.Ba();if(a.error)/already\ exists/.exec(a.error)?S("The page you are trying to move already exists at that location."):/lock\ page/.exec(a.error)?S("The page you are trying to move is currently locked."):"bad newPath parameter"==a.error&&S("The place you are trying to move to is not a valid path");
else{var b=this.ek.qY();this.ek.dispose();Sx(window.location,a.newPath+"?pageMoved="+encodeURIComponent(b))}},this),function(){S("An error occurred while trying to move the selected page.")});return!0};
q.fCa=function(){qH(Uc,"Select default template location");var a=aQ("Select a default page location",zb,null,"Select",y(this.tZ,this),Yb,null,"defaultLocation");I(a,he,function(){P("templateDefaultLocationAnchor").focus()});a.C(!0);var b=this;this.ek=new qP(a.ei.treeDiv,function(){var c=b.tZ();(void 0==c||c)&&a.close()},!0,!0);a.ha()};
q.tZ=function(){if(this.ek.S4())return!1;var a=this.ek.Li,b=this.ek.gw,c=this.ph.defaultLocationWuid,e=this.ph.defaultLocationLabel;a&&"/"!=a||(a=Ld,b="");Gy(e,a);NA(e,[255,255,136],2E3);c.value=b};
q.Q8=function(){this.rT()&&(this.nQ++,this.vE=!0,dI("ToggleSiteSubscription",{},y(function(a){if(a.target.Ba().subscribed){qH(Uc,ud);a="Unsubscribe from site changes";var b="You will be notified when changes are made to this site."}else qH(Uc,"Unsubscribe to site changes"),a=ud,b=Td;S(b);b=by(null,"toggle-site-subscription",null);for(var c=0;c<b.length;c++)Gy(b[c],a);window.setTimeout(y(this.U6,this),1E3)},this)))};
q.uE=function(a){qH("sites-file-cabinet-subscription-label"==a.payload.opt_id?"File Cabinet":Uc,"Toggle subscribe to page changes");if(this.rT()){var b=a.payload.opt_page||webspace.page.path;a=a.payload.opt_id||"";this.nQ++;this.vE=!0;dI("TogglePageSubscription",{page:b},y(Wq(this.qEa,a),this),y(this.JJ,this))}else this.JJ()};q.U6=function(){this.vE=!1};q.JJ=function(){S("An error occurred while changing the page subscription.")};q.rT=function(){return!this.vE&&6>this.nQ};
q.qEa=function(a,b){var c=b.target.getResponseJson();if(c.commentErrorOccurred)this.JJ();else{b=c.subscribed?"Unsubscribe from page changes":"Subscribe to page changes";S(c.subscribed?"You will be notified when this page is changed.":Ud);c=by(null,"toggle-page-subscription",null);for(var e=0;e<c.length;e++)Gy(c[e],b);a&&Gy(P(a),b);window.setTimeout(y(this.U6,this),1E3)}};q.o=function(){this.ODa(this.Wl)};w("JOT_ATTACH_delete",function(a){YZ(a);var b=byId("attachment-"+a);b&&(new HA(b,1,.4,500)).play();webspace.wV({path:a},ZZ,function(a){alert(a)})},void 0);function YZ(a){var b=byId("attachment-delete-"+a);b&&R(b,!1);(a=byId("attachment-download-"+a))&&R(a,!1)}function ZZ(a){a=a.target.Ba().path;YZ(a);var b=byId(Ye+a);b&&(R(b,!0),cA(b,1));(new jz(Wq($Z,a),5E3)).start()}
function $Z(a){var b=byId(Ye+a);if(b&&dA(b)){R(b,!1);var c=byId("attachment-"+a);c&&(a=new HA(c,.4,0,500),I(a,eh,function(){c.parentNode.removeChild(c)},!1),a.play())}}w("JOT_ATTACH_undoDelete",function(a){var b=byId(Ye+a);b&&R(b,!1);JOT_postEvent(wp,a)},void 0);w("JOT_RECENTCHANGES_titleChange",function(a){var b=YH(byId(a.listenerCompId))[a.payload.wuid];if(b){b=b instanceof Array?b:[b];for(var c=0;c<b.length;c++)Gy(b[c],a.payload.title)}},void 0);var a_=function(a,b,c,e){CG.call(this,null);this.R(P(a));this.C_=c||null;this.Fd=e||null;this.zAa(!0);dI(Dc,{limit:1E3,suppressedTemplates:b},y(this.oma,this),y(this.cZ,this))};B(a_,CG);w("sites.pages.PageTemplateMenu",a_,void 0);a_.prototype.oma=function(a){a=a.target.Ba();if(a.error)this.cZ();else{if(a=a.templates)for(var b=0;b<a.length;b++){var c=new b_(a[b]);this.sc(c)}this.Fd&&I(this.O,en,this.Fd);this.C_&&this.setValue(this.C_);this.getValue()||this.kf(0)}};
a_.prototype.yu=function(a){a_.c.yu.call(this,a);(a=this.xa())&&this.Wc(a.$.description)};a_.prototype.cZ=function(){var a=my(d,{style:"color: #DD4B39;"},document.createTextNode("Error retrieving page template list."));yy(a,this.b())};var b_=function(a){qD.call(this,a.title,a)};B(b_,qD);b_.prototype.getValue=function(){return this.$.path};var c_=function(a,b,c,e,f){J.call(this);this.qC=P(a);this.EDa=b||null;this.B_=c||null;this.eCa=!f;webspace.shallowSearch({forAll:!0,includeReadOnly:!e,includePermissionsMetaData:!0,filterName:pl},y(this.Mwa,this),y(this.W3,this))};B(c_,J);w("sites.components.Sitemap",c_,void 0);q=c_.prototype;q.Vf=null;
q.Mwa=function(a){a=a.target.Ba();if(a.error)this.W3();else{var b=new GO;b.rB(a);this.Vf=new HO(b,!0,webspace,void 0,this.EDa,void 0,!0);this.Vf.xw(this.hja());this.Vf.ED(!0);this.Vf.render(this.qC);this.B_&&this.Vf.XO(this.B_);this.Vf.aa.$O(this.eCa);this.dispatchEvent(ge)}};q.W3=function(){this.dispatchEvent(Oj)};q.hja=function(){return function(a){var b=a[Wj],c=-1==Bw(b,void 0)?Tm:Tj;b=qr(b);return'<span title="'+qr(a.path)+oa+c+ua+b+ob}};q.o=function(){c_.c.o.call(this);G(this.Vf);this.Vf=null};var d_=function(a){F.call(this);this.JF=null;this.title="";this.vp=null;this.dK=[249,237,190];this.Rs=a;JOT_addListener(En,y(this.xP,this))};B(d_,F);w("gsites.pages.CreatePage",d_,void 0);d_.prototype.Wg=null;d_.prototype.eE=null;
d_.prototype.Ee=function(a,b){var c=P(lg),e=P(zo),f=P("sites-create-page-change-url"),g=P("sites-create-page-select-template-menu"),h=P("sites-create-page-choose-location-header"),l=P("sites-create-page-choose-location-content"),p=new hG;p.R(c);I(p,k,y(this.QP,this));a=new mI(a,fc,"Cancel new page");a.R(e);I(a,k,a.Jl);I(new nB(f),k,function(){JOT_postEvent(En)});e=Zv(window.location.toString(),"pt");this.Rs||(this.Wg=new a_(g,void 0,e,y(this.Rna,this)));g=new jQ(h,l);I(g,jp,y(this.Kpa,this,g,l,b));
I(P(pj),Uo,y(this.QP,this));(b=P("pageLocTopLevelPath"))&&I(b,Bf,y(Wq(this.GQ,op),this));(b=P(ql))&&I(b,Bf,y(Wq(this.GQ,"under"),this));(b=P(rj))&&P(lg)&&(b.focus(),b=new iE(b),I(b,Vi,y(function(){var a=trim(P(rj).value),b=P("mirrorInput");if(b){var c=a||"Your new page";Gy(b,c);b.setAttribute("dir",fI(c))}this.JF&&window.clearTimeout(this.JF);this.JF=window.setTimeout(y(function(){a&&!sw.test(rw(a,void 0))?this.Ds(a):this.HQ(!1,null)},this),500)},this)))};d_.prototype.initListeners=d_.prototype.Ee;
q=d_.prototype;q.Kpa=function(a,b,c,e){if(e.Ega&&!this.eE){var f=P("sites-create-page-sitemap"),g=P("sites-create-page-choose-location-spinner"),h=P("sites-create-page-sitemap-error");this.vp||(this.vp=Zv(window.location.toString(),"source"));this.eE=new c_(f,Wq(this.Qna,this),this.vp||void 0,!0,!c);Ou(this.eE,ge,function(){R(g,!1);Q(b,"border-style","solid");R(f,!0)});Ou(this.eE,Oj,function(){R(g,!1);R(h,!0)});R(b,!0)}};q.Rna=function(){var a=this.Wg.xa();a&&(this.vp=a.$.defaultLocation)&&this.yY(this.vp)};
q.GQ=function(a,b){var c=P(sj);"under"==a&&b.target.value?(a=this.e9(b.target.value),Gy(c,a+"/"),NA(c,this.dK,1E3)):a==op&&Gy(c,"");this.Ds()};q.HQ=function(a,b){var c=P(tj),e="";b&&(b=b.target.Ba(),e=ZP(b.string,!0));e=IO(e,this.pY(),!1);P(oj).value=e;Gy(c,e||"");a&&NA(c,this.dK,1E3)};
q.createNode=function(a){if(a){a=a.target.Ba();var b=ZP(a.string,!0)}if(!b)return S("Please specify a page URL."),R(P(Ko),!1),window.setTimeout(y(function(){this.xP()},this),500),!1;a=IO(b,this.pY(),!0);if(null===a)return S("The location for the new page is too long."),!1;Gy(P(lg),ad);R(P(Ko),!0);S("Creating page ...");Vu(P(lg),Bf,this.QP);a={path:a,properties:{"main/title":this.title}};webspace.features.pageDrafts&&(a.properties.isPageDraft=!0);this.Rs?(a.pagetemplate=this.Rs,a.ispagecopy=!0):(a.pagetemplate=
this.Wg.xa().getValue(),a.ispagecopy=!1);dI("CreateNode",a,y(this.Txa,this))};
q.Txa=function(a){a=a.target.Ba();a.error?(R(P(Ko),!1),Gy(P(lg),this.Rs?"Copy":"Create"),/not\ authorized/.exec(a.error)?(S("You are not authorized to create pages."),qH(fc,ic,"Not Authorized")):/reserved\ path/.exec(a.error)?(S("The page name you entered is reserved."),qH(fc,ic,"Reserved Path")):/invalid\ path/.exec(a.error)?(S("The page URL is invalid, please specify a new one."),qH(fc,ic,"Invalid URL"),this.xP()):(qH(fc,ic,"Unknown Error"),S(a.error))):sH(fc,this.Rs?"Copy success":"Success",a.url)};
q.QP=function(){var a=P(rj),b=P(oj);b=b.value?b.value:a.value;var c=trim(a.value);""==c?(a.focus(),S("Please enter a page name."),qH(fc,ic,"Missing Name")):(this.title=c,sw.test(rw(b,void 0))?this.createNode(null):webspace.FS({string:b,hasDelimiter:!0},y(this.createNode,this)))};
q.xP=function(){var a=Oy(P(tj));a='<div id="changePageLocationDialog"><p>Some characters are not allowed in URLs and may be removed.</p><p><strong>Page web address:</strong></p><input jotid="pageWebAddressField" value="'+W(a)+'"/></div>';var b=aQ("Change page web address",a,null,hd,y(this.Ala,this)),c=b.ei.pageWebAddressField;I(c,hf,function(){var a=cr(c.value),b=ZP(a,!1,void 0,!0);a!=b&&(c.value=b)});b.C(!0);window.setTimeout(function(){b.ei.pageWebAddressField.focus()},0);return!1};
q.Ala=function(a){a=YH(a.eventSrc);if(a.pageWebAddressField&&!cr(a.pageWebAddressField.value))return S("The Page web address field cannot be left blank."),a.pageWebAddressField.focus(),!1;S("Updating URL...");sw.test(rw(a.pageWebAddressField.value,void 0))?this.HQ(!1,null):this.Ds(a.pageWebAddressField.value);SA();return!0};q.Qna=function(a){var b=this.xa(!0).$.path;"/"==b?(P(pj).pageLoc[0].checked=!0,a.GQ(op,null)):(a.yY(b),a.Ds())};
q.yY=function(a){dI("GetTitlePath",{path:a},P("pageLocTarget")?y(this.pEa,this,a):null,function(){S("Oops, something went wrong, and it's our fault. Please try again after a moment.")})};
q.pEa=function(a,b){b=b.target.Ba();b.error&&S(b.error);var c=qr(trim(P(rj).value));c=""!=c?c:"Your new page";var e=gI(" &#187; ",webspace.page.isRtlLocale?Tm:Tj);for(var f=0;f<b.length;f++)b[f]=gI(b[f],fI(b[f]));f=b.join(e);f+=e+'<span id="mirrorInput">'+gI(c,fI(c))+ob;c=P("pageLocTarget");c.innerHTML=f;c.style.display="";b=b[b.length-1];P(ql).value=a;Gy(P(qj),b);P(qj).setAttribute("dir",fI(b));a=this.e9(a);b=P(sj);Gy(b,a+"/");NA(b,this.dK,1E3);a=P(pj);1<a.pageLoc.length&&(a.pageLoc[1].checked=!0);
this.Ds()};q.pY=function(){var a;a:{if(a=P(pj).elements.pageLoc){if(a.type){a=gB(a);break a}for(var b=0;b<a.length;b++){var c=gB(a[b]);if(c){a=c;break a}}}a=null}return a||""};q.e9=function(a){a=a.replace(/^\//,"");return cr(a)};q.Ds=function(a){var b=a;b||(b=gB(P(oj)),b=ar(b)?trim(gB(P(rj))):b);webspace.FS({string:b,hasDelimiter:!0},y(this.HQ,this,!!a))};q.o=function(){d_.c.o.call(this);this.Wg&&G(this.Wg);this.Wg=null};var e_=function(){this.NU=!1};w("sites.pages.CreatePageTemplate",e_,void 0);e_.prototype.Wg=null;e_.prototype.Ee=function(){var a=P(mg),b=P(zo),c=P("sites-create-page-template-select-template-menu"),e=P("sites-create-page-template-form"),f=y(this.zea,this),g=new hG;g.R(a);I(g,k,f);a=new mI(XH(webspace.baseUri,fb));a.R(b);I(a,k,a.Jl);this.Wg=new a_(c,["startpage"]);I(e,Uo,f)};e_.prototype.initListeners=e_.prototype.Ee;
e_.prototype.zea=function(){if(!this.NU){this.NU=!0;Gy(P(mg),ad);P(Ko).style.display=Ui;S("Creating template ...");var a=this.Wg.xa().getValue(),b=trim(P(rj).value);dI("CopyTemplate",{path:a,title:b},function(a){a=a.target.Ba();a.error?S(pc):Sx(window.location,XH(webspace.baseUri,a.path))},function(){S(pc)})}};var f_=function(){this.zN=!1};w("gsites.pages.ChangePageTemplate",f_,void 0);f_.prototype.Wg=null;f_.prototype.Ee=function(a){var b=P(vf),c=P(zo),e=P("sites-change-page-template-select-template-menu"),f=new hG;f.R(b);I(f,k,y(this.vxa,this));a=new mI(a);a.R(c);I(a,k,a.Jl);this.Wg=new a_(e)};f_.prototype.initListeners=f_.prototype.Ee;q=f_.prototype;
q.vxa=function(){if(!this.zN){this.ECa();var a=P("sourceWuid").value,b=this.Wg.xa().getValue();dI("ChangePageTemplate",{source:b,target:a,applyDefaultContent:P("applyDefaultContent").checked},y(this.Dna,this),function(){S(Jb)})}};q.ECa=function(){this.zN=!0;P(Ko).style.display=Ui;Gy(P(vf),ad);S("Changing template ...")};q.qga=function(){this.zN=!1;P(Ko).style.display=Ek;Gy(P(vf),$b);SA()};
q.Dna=function(a){a=a.target.Ba();a.error?(this.qga(),/not\ authorized/.exec(a.error)?S("You are not authorized to make changes to the page."):/lock\ page/.exec(a.error)?S("Error: The page you are trying to modify is currently locked."):S(Jb)):this.Qva(a.url)};q.Qva=function(a){Sx(window.location,a)};var g_=function(){};w("sites.pages.MatureConfirm",g_,void 0);g_.prototype.ya=null;g_.prototype.uK=function(a){var b=P("sites-mature-confirm-btn");b&&(this.ya=er(a),a=new hG,a.R(b),a.U(!0),I(a,k,y(this.Lla,this)))};g_.prototype.initControls=g_.prototype.uK;g_.prototype.Lla=function(){(new kQ).hva({MatureConfirm:sp},this.ya||void 0)};var h_=function(){};w("sites.pages.SiteDisabledAppeal",h_,void 0);h_.prototype.uK=function(){var a=P("sites-disabled-appeal-btn"),b=P("sites-disabled-appeal-form");if(a&&b){var c=new hG;c.R(a);I(c,k,y(b.submit,b));c.U(!0)}};h_.prototype.initControls=h_.prototype.uK;var j_=function(a){V.call(this);this.Vf=a;this.rh=new i_(this.Vf);this.qt=new i_(this.Vf);this.rh.zF(this.qt);this.rh.zF(this.rh);this.qt.init();this.rh.init();this.A().listen(this.rh,"drop",this.k2);this.A().listen(this.qt,"drop",this.k2);this.A().listen(this.rh,Sg,this.uta);this.A().listen(this.rh,"dragend",this.rta);this.A().listen(this.rh,Rg,this.tta);this.A().listen(this.rh,Qg,this.sta);this.A().listen(this.Vf,aj,this.fua)};B(j_,V);q=j_.prototype;
q.fua=function(a){var b=a.G8;a=b.Od();var c="/"===b.$.path?this.qt:this.rh;b=new k_(a,b);c.tF(b);aB(a.parentNode,"sites-tree-draggable")};q.Z_=function(a,b){if(!a||!b)return!1;var c=a.getData().$;b=b.getData().$;a=(a=a.getData().getParent())&&a.$.path==b.path;return 0!=b.path.indexOf(c.path)&&!a};q.k2=function(a){this.yW(a.sh,a.Jk);this.xW(a.sh);this.Z_(a.sh,a.Jk)&&this.Vf.Jsa(a.sh.getData(),a.Jk.getData())};q.uta=function(a){this.sga(a.sh)};q.rta=function(a){this.xW(a.sh)};
q.tta=function(a){this.tga(a.sh,a.Jk)};q.sta=function(a){this.yW(a.sh,a.Jk)};q.sga=function(a){a&&aB(a.getData().Od(),Ao)};q.xW=function(a){a&&cB(a.getData().Od(),Ao)};q.tga=function(a,b){this.Z_(a,b)&&aB(b.getData().Od(),Bo)};q.yW=function(a,b){b&&cB(b.getData().Od(),Bo)};q.o=function(){G(this.rh);G(this.qt)};var i_=function(a){JN.call(this);this.aa=a};B(i_,NN);
i_.prototype.yU=function(a){var b="Move "+aE[a.parentNode.id].$[Wj];a=my(d,null);aB(a,"sites-tree-drag-info");Gy(a,b);b=my(d,null);aB(b,"sites-tree-drag-info-container");b.appendChild(a);return b};i_.prototype.CX=function(a,b,c){a=Zx(a);a=N(a).Df();return new Tx(c.clientX+a.x-5,c.clientY+a.y-5)};var k_=function(a,b){MN.call(this,a,b)};B(k_,MN);k_.prototype.OI=function(){return this.element};var l_=function(a,b){this.L=a||N();this.T7=b};w("sites.pages.Hierarchy",l_,void 0);l_.prototype.Ee=function(a,b){this.u_(a,b);this.T7&&byId(Qn)&&(a=new GO,a.rB(this.T7),a=new HO(a,!0,webspace,void 0,function(){},void 0,!0),a.xw(function(a){var b=fI(a[Wj]);return ub+webspace.baseUri+qr(a.path)+oa+b+ua+qr(a[Wj])+"</a>"}),a.ED(!0),new j_(a),a.render(byId(Qn)))};l_.prototype.initListeners=l_.prototype.Ee;
l_.prototype.u_=function(a,b){var c=0<String(window.location.href).indexOf(a),e=new hG;e.tb(16,!0);e.Wc("Tree");e.Yg(2);e.R(this.L.b("sites-admin-tree-link"));e.U(!0);e.b().setAttribute(Te,"tree view");var f=new hG;f.tb(16,!0);f.Wc("List");f.Yg(1);f.R(this.L.b("sites-admin-list-link"));f.U(!0);f.b().setAttribute(Te,"list view");c?e.setState(16,!0):f.setState(16,!0);I(f,k,Wq(this.M8,f,e,b));I(e,k,Wq(this.M8,e,f,a))};l_.prototype.initButtons=l_.prototype.u_;
l_.prototype.M8=function(a,b,c){a.getState()&16?(b.setState(16,!1),Sx(window.location,c)):a.setState(16,!0)};w("JOT_INITJS_siteMapHierarchy",function(a){if(a&&byId(Qn)){var b=new GO;b.rB(a);a=new HO(b,!0,webspace,void 0,function(){});a.xw(function(a){var b=fI(a[Wj]);return ub+webspace.baseUri+qr(a.path)+oa+b+ua+qr(a[Wj])+"</a>"});a.ED(!0);a.render(byId(Qn));JOT_addListener("collapseSiteMapTree",y(a.Ks,a))}},void 0);var m_=function(a,b,c,e){this.Cka=b;c&&(b=/promo=([^&]+)/.exec(window.location.search))&&(a=b[1]);this.tEa=e;this.ja=my(Fc,{id:"new-sites-promo",style:"display:none;position:fixed;width:1px;height:1px;top:0;left:0",src:a});document.body.appendChild(this.ja);this.Qta=I(window,gk,y(this.onMessage,this));this.mf=M(this.WEa,1E4,this)};w("gsites.pages.NewSitesPromo",m_,void 0);
m_.prototype.onMessage=function(a){a=a.bd;if(a.data.type&&"sites-onboarding"==a.data.type){var b=a.data.subtype;b==Cn?(Rv(this.mf),this.mf=null,this.ja.style.display="",this.ja.style.width=kb,this.ja.style.height=kb,this.ja.style.zIndex=100):"noshow"==b?this.ht(!0):b==Eg?this.ht(!0):"get-started"==b?this.Dka():this.ht(!1)}console.info("Received message",a)};m_.prototype.WEa=function(){this.ht(!1)};
m_.prototype.ht=function(a){this.mf&&(Rv(this.mf),this.mf=null);a&&this.tEa&&dI(jd,{warmWelcomeVersion:1});Wu(this.Qta);R(this.ja,!1);M(function(){xy(this.ja)},1E3,this)};m_.prototype.Dka=function(){this.ht(!0);window.open(this.Cka)};w("goog.events.listen",I,void 0);bw.prototype.getResponseJson=bw.prototype.Ba;bw.prototype.getResponseText=bw.prototype.ae;wC.prototype.setVisible=wC.prototype.C;wC.prototype.getElement=wC.prototype.b;wC.prototype.dispose=wC.prototype.dispose;F.prototype.getDisposed=F.prototype.NI;iJ.prototype.setVisible=iJ.prototype.C;
w("gsites.date.TimeZone.getFingerprint",function(a){var b=[],c="u";Ct?c="w":Bt?c="m":Dt&&(c="l");b.push(c);for(c=0;c<a.length;++c)b.push((new Date(a[c])).getTimezoneOffset()|0);a=b.length;if(2>a)b="";else{c=[b[0]];for(var e=b[1],f=e,g=1,h=2;h<a;)f=b[h++],f!==e?(c.push("g"+ZA(e)+"r"+ZA(g)),e=f,g=1):g++;c.push("g"+ZA(f)+"r"+ZA(g));b=c.join("")}return b},void 0);w("gsites.Xhr.send",UA,void 0);$D.prototype.getClientData=$D.prototype.$d;$D.prototype.getLabelElement=$D.prototype.fu;
w("goog.ui.tree.TreeControl",dE,void 0);dE.prototype.getSelectedItem=dE.prototype.xa;w("goog.dom.$",P,void 0);w("goog.dom.getDomHelper",N,void 0);w("goog.string.trim",cr,void 0);w("_IFPC",_IFPC,void 0);w("_IFPC.registerService",_IFPC.Hi,void 0);w("_IFPC.unregisterService",_IFPC.GE,void 0);w("_IFPC.handleRequest",_IFPC.nA,void 0);w("JOT_INITJS_services_unsubscribeNotification",function(){bQ("xtok_input");I(byId("goog-ws-unsub-form"),Uo,function(){byId("goog-ws-unsub-button").disabled=!0})},void 0); })()
