"function"!=typeof Object.create&&(Object.create=function(){function a(){}return function(b){if(1!==arguments.length)throw new Error("This Object.create implementation only accepts one parameter.");return a.prototype=b,new a}}());var apex={};apex.jQuery=jQuery,function(a,b){"use strict";apex.gPageContext$=a(document),apex.gParentPageContext$=apex.gPageContext$,a(document).on("pagebeforecreate pageshow",function(b){var c=a(b.target);"dialog"===c.data("role")?1===c.has("[role='listbox']").length?apex.gPageContext$=apex.gParentPageContext$:apex.gPageContext$=a(b.target):(apex.gPageContext$=a(b.target),apex.gParentPageContext$=apex.gPageContext$)}),a(document).on("pageshow",function(b){var c=a(b.target).data();c.apexPageTransition&&(a.mobile.defaultPageTransition=c.apexPageTransition),c.apexPopupTransition&&(a.mobile.defaultDialogTransition=c.apexPopupTransition)});var c,d=0,e=0;a(window).resize(function(){a(window).height()==d&&a(window).width()==e||(d=a(window).height(),e=a(window).width(),c&&clearTimeout(c),c=setTimeout(function(){a(window).trigger("apexwindowresized"),c=null},200))});var f=/MSIE \d/.test(navigator.userAgent),g=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),h=f||g,i=h&&(f?document.documentMode||7:g[1]);7===i?a("html").addClass("ie7 lt-ie8 lt-ie9 lte-ie9 lte-ie10"):8===i?a("html").addClass("ie8 lt-ie9 lte-ie9 lte-ie10"):9===i?a("html").addClass("ie9 lte-ie9 lte-ie10"):10===i&&a("html").addClass("ie10 lte-ie10"),a(document).ready(function(){var b;a("body").append("
"),b=a("#hcmtest").css("background-color").toLowerCase(),a("#hcmtest").remove(),"#878787"!==b&&"rgb(135, 135, 135)"!==b&&a("body").addClass("u-HCM")})}(apex.jQuery);
apex.debug={},apex.debug=function(){"use strict";apex.debug.log.apply(this,arguments)},function(a,b,c){"use strict";function d(){}function e(a,b,d){d!==c?console.log(a,b,d):b!==c?console.log(a,b):console.log(a)}var f=-1,g=d,h=d,i=d,j=d;window.console&&console.log&&("undefined"==typeof console.log.apply?(g=e,h=e,i=e,j=e):(g=console.log,h=console.error?console.error:console.log,i=console.warn?console.warn:console.log,j=console.info?console.info:console.log)),a.LOG_LEVEL={OFF:0,ERROR:1,WARN:2,INFO:4,APP_TRACE:6,ENGINE_TRACE:9},a.getLevel=function(){var c;return f<0&&(c=b("#pdebug",apex.gPageContext$).val(),f="YES"===c?a.LOG_LEVEL.INFO:/^LEVEL[0-9]$/.test(c)?parseInt(c.substr(5),10):a.LOG_LEVEL.OFF),f},a.setLevel=function(c){var d,e,g=f;f="number"==typeof c?c:a.LOG_LEVEL.OFF,(f<0||f>9)&&(f=a.LOG_LEVEL.OFF),f!==g&&(d="LEVEL"+f,e=b("#pdebug",apex.gPageContext$),0===e.length&&(e=b("").prependTo(b("#wwvFlowForm",apex.gPageContext$))),e.val(d))},a.message=function(b){var c=g;a.getLevel()>=b&&b>0&&(b===a.LOG_LEVEL.ERROR?c=h:b<=a.LOG_LEVEL.WARN?c=i:b<=a.LOG_LEVEL.INFO&&(c=j),c.apply(console,Array.prototype.slice.call(arguments,1)))},a.error=function(){h.apply(console,arguments),console.trace&&console.trace()},a.warn=function(){a.getLevel()>=a.LOG_LEVEL.WARN&&i.apply(console,arguments)},a.info=function(){a.getLevel()>=a.LOG_LEVEL.INFO&&j.apply(console,arguments)},a.trace=function(){a.getLevel()>=a.LOG_LEVEL.APP_TRACE&&g.apply(console,arguments)},a.log=function(){a.getLevel()>a.LOG_LEVEL.OFF&&g.apply(console,arguments)},a.deprecated=function(b){a.warn("DEPRECATED: "+b)}}(apex.debug,apex.jQuery);
apex.util={},function(a,b,c){"use strict";a.toArray=function(a,d){var e,f=[];return"string"==typeof a?(e=d===c?":":d,f=a.split(e)):f=b.makeArray(a),f},a.escapeHTML=function(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},a.escapeRegExp=function(a){var b="";return a?a.replace(/([\.\$\*\+\-\?\(\)\{\}\|\^\[\]\\])/g,"\\$1"):b};var d=new RegExp("(["+a.escapeRegExp(" !#$%&'()*+,./:;<=>?@[\\]^`{|}~\"")+"])","g");a.escapeCSS=function(a){var b="";return a?a.replace(d,"\\$1"):b},a.escapeHTMLContent=a.escapeHTMLAttr=function(b){return b=""+b,a.escapeHTML(b)};var e={markup:function(a){return this.html+=a,this},attr:function(b,c){return 1===arguments.length&&(c=b,b=null),b&&(this.html+=" ",this.html+=b,this.html+="='"),this.html+=a.escapeHTMLAttr(c),b&&(this.html+="'"),this},optionalAttr:function(b,c){return c&&"object"!=typeof c&&(this.html+=" ",this.html+=b,this.html+="='",this.html+=a.escapeHTMLAttr(c),this.html+="'"),this},optionalBoolAttr:function(a,b){return b===!0&&(this.html+=" ",this.html+=a),this},content:function(b){return this.html+=a.escapeHTMLContent(b),this},clear:function(){this.html=""},toString:function(){return this.html}};a.htmlBuilder=function(){var a=Object.create(e);return a.clear(),a},a.makeApplicationUrl=function(a){var b,c="f?p=";if(c+=a.appId||$v("pFlowId"),c+=":",c+=a.pageId||$v("pFlowStepId"),c+=":",c+=a.session||$v("pInstance"),c+=":",c+=a.request||$v("pRequest"),c+=":",c+=a.debug||$v("pdebug")||"",c+=":",c+=a.clearCache||"",c+=":",a.itemNames&&(c+=a.itemNames.join(",")),c+=":",a.itemValues)for(b=0;b0&&(c+=","),c+=encodeURIComponent(a.itemValues[b]);return c+=":",c+=a.printerFriendly||""},a.showSpinner=function(c,d){var e,f,g,h,i,j=a.htmlBuilder(),k=b(c?c:"body"),l=b(window),m=k.offset(),n=b.extend({alert:apex.lang.getMessage("APEX.PROCESSING"),spinnerClass:""},d),o={top:l.scrollTop(),left:l.scrollLeft()};return o.bottom=o.top+l.height(),o.right=o.left+l.width(),m.bottom=m.top+k.outerHeight(),m.right=m.left+k.outerWidth(),f=m.top>o.top?m.top:o.top,g=m.bottom0&&(h+=i),j.markup("").markup("").markup("").markup("").content(n.alert).markup("").markup(""),e=b(j.toString()),e.appendTo(k),e.position({my:"center",at:"left+50% top+"+h+"px",of:k,collision:"fit"}),e},a.delayLinger=function(){function a(a){var b=c[a];return b||(b={count:0,timer:null},c[a]=b),b}function b(a){delete c[a]}var c={},d=200,e=1e3;return{start:function(b,c){var e=a(b);e.count+=1,1===e.count&&null===e.timer&&(e.start=(new Date).getTime(),e.timer=setTimeout(function(){e.timer=null,c()},d))},finish:function(c,d){var f,g=a(c);if(0===g.count)throw"delayLinger.finish called before start for scope "+c;f=(new Date).getTime()-g.start,g.count-=1,0===g.count&&(null===g.timer?f").css({width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}).appendTo("body"),g={width:a[0].offsetWidth-a[0].clientWidth,height:a[0].offsetHeight-a[0].clientHeight},a.remove()),g},a.invokeAfterPaint=(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(a){return window.setTimeout(a,0)}).bind(window),a.cancelInvokeAfterPaint=(window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||function(a){return window.clearTimeout(a)}).bind(window),a.stripHTML=function(a){for(var b=/<[^<>]+>/;b.exec(a);)a=a.replace(b,"");return a};var h=null;a.applyTemplate=function(c,d){function e(b){return b.replace(n,function(b,c,e,f,g,i){var j,k,m,n,o,p,q,r,s,t,u=null,v=d.defaultEscapeFilter,w=null;if(f&&(e=f),e){if(d.includePageItems&&(k=apex.item(e),k.node&&(w=k.getValue(),w=k.displayValueFor(w))),null===w&&d.model&&d.record){for(m=d.model,n=d.record,q=[];null===w&&n&&m;)w=m.getValue(n,e)||null,n=null,null===w?(s=l.exec(e),s&&(t=s[1],r=m.getOption("fields"),r.hasOwnProperty(t)&&(w=r[t].label||r[t].heading||null)),null===w&&(o=m.getOption("parentModel"),p=m.getOption("parentRecordId"),o&&p&&(m=apex.model.get(o),m&&(q.push(o),n=m.getRecord(p))))):(r=m.getOption("fields"),r[e].hasOwnProperty("escape")&&(v=r[e].escape?"HTML":"RAW"),r[e].hasOwnProperty("elementId")&&(u=r[e].elementId));for(j=0;j)<[^<]*)*<\/script\s*>/gi;if(d=b.extend({placeholders:null,defaultEscapeFilter:"HTML",includePageItems:!0,model:null,record:null,extraSubstitutions:null,includeBuiltinSubstitutions:!0},d||{}),!h&&d.includeBuiltinSubstitutions&&(h={APP_ID:$v("pFlowId"),APP_PAGE_ID:$v("pFlowStepId"),APP_SESSION:$v("pInstance"),REQUEST:$v("pRequest"),DEBUG:$v("pdebug"),IMAGE_PREFIX:window.apex_img_dir||""}),d.placeholders){for(f="",g=c,i=g.search(m);i>=0;)j=g.match(m)[1],k=d.placeholders[j],k?(f+=e(g.substring(0,i))+k,g=g.substring(i+j.length+2)):(f+=e(g.substring(0,i+j.length+1)),g=g.substring(i+j.length+1)),i=g.search(m);f+=e(g)}else f=e(c);for(;o.test(f);)f=f.replace(o,"");return f}}(apex.util,apex.jQuery);
apex.locale={},function(a){"use strict";var b={language:"en",separators:{group:",",decimal:"."},calendar:{abbrMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}};a.init=function(a){b=a},a.getGroupSeparator=function(){return b.separators.group},a.getDecimalSeparator=function(){return b.separators.decimal},a.getAbbrevMonthNames=function(){return b.calendar.abbrMonthNames},a.getAbbrevDayNames=function(){return b.calendar.abbrDayNames},a.getLanguage=function(){return b.language}}(apex.locale);
apex.lang={},function(a,b,c,d,e){"use strict";function f(a,e){var f,g=/%([0-9,%])/g;f=d.isArray(arguments[2])?arguments[2]:Array.prototype.slice.call(arguments,2);var h=0,i=e.replace(g,function(c,d){var g;if("%"===d)return"%";if(g=parseInt(d,10),h++,g>=f.length)throw new Error("format("+e+"): too few arguments");return a?b.escapeHTML(f[g]+""):f[g]});return h"+c.escapeHTML(a).replace(/\r\n|\n/g,"
")+"
"):a,b&&i.unshift({text:d.getMessage("APEX.DIALOG.CANCEL"),click:function(){h=!1,g(this).dialog("close")}}),g("body").append(f),f.dialog({closeText:d.getMessage("APEX.DIALOG.CLOSE"),autoOpen:!0,modal:!0,dialogClass:e.dialogClass,draggable:!0,resizable:!1,title:"",closeOnEscape:!0,create:function(){g(this).closest(".ui-dialog").css("position","fixed").attr("role","alertdialog"),g("#apexConfirmBtn").addClass("ui-button--hot")},open:function(){apex.navigation.beginFreezeScroll(),g("#apexConfirmBtn").focus()},close:function(){apex.navigation.endFreezeScroll(),f.remove(),null===h&&(h=!1),e.callback&&(b?e.callback(h):e.callback())},buttons:i})}function g(a,c){var d=c.closest("fieldset").parent();return d.length||(d=c.parent()),b("").appendTo(d)}function h(a){var d,e=apex.item(a);return d=e.callbacks&&e.callbacks.setFocusTo?b.isFunction(e.callbacks.setFocusTo)?e.callbacks.setFocusTo.call(e):b(e.callbacks.setFocusTo):b("#"+c.escapeCSS(a))}function i(a){var d={},e=c.escapeCSS(a.pageItem)+"_error",f=h(a.pageItem),i=b("#"+c.escapeCSS(a.pageItem)+"_error_placeholder"),j=c.htmlBuilder();i.length||(i=g(a.pageItem,f),v[o]||(v[o]="#ERROR_MESSAGE#
")),j.markup("").content(a.message).markup("
"),d.placeholders={ERROR_MESSAGE:j.toString()},i.html(v[i.data(n)]),i.html(c.applyTemplate(i.html(),d)).removeClass(q).addClass(p),f.addClass(r).attr({"aria-invalid":!0,"aria-describedby":e})}function j(f){var g,h,i,j,k,l,m,o=c.htmlBuilder(),r={},s=!0,t=b("#APEX_ERROR_MESSAGE");for(t.html(v[t.data(n)]),o.markup(""),o.markup("
"),i=1===f.length?d.getMessage("FLOW.SINGLE_VALIDATION_ERROR"):d.formatMessage("FLOW.VALIDATION_ERROR",f.length),o.content(i).markup("
"),o.markup("
"),g=0;g"),m=j.pageItem||j.regionStaticId,m&&o.markup(""),j.unsafe?o.content(j.message):o.markup(j.message),m&&o.markup(""),j.techInfo){for(l=d.getMessage("APEX.ERROR.TECHNICAL_INFO"),o.markup(""),o.markup("").content(l).markup("
"),h=0;h").content(k.name+": ").markup(""),k.usePre&&o.markup("
"),o.markup("").content(k.value).markup("");o.markup("
")}o.markup("")}o.markup("
"),o.markup("
"),r.placeholders={MESSAGE:o.toString(),CLOSE_NOTIFICATION:d.getMessage("APEX.CLOSE_NOTIFICATION"),ERROR_MESSAGE_HEADING:d.getMessage("APEX.ERROR_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""},t.html(c.applyTemplate(t.html(),r)),y.beforeShow&&(s=y.beforeShow(a.TYPE.ERROR,t)),(s===e||s)&&t.removeClass(q).addClass(p)}function k(){b("#APEX_ERROR_MESSAGE").removeClass(p).addClass(q)}var l="page",m="inline",n="template-id",o="FALLBACK_ET",p="u-visible",q="u-hidden",r="apex-page-item-error",s="a-Form-error",t="aria-describedby",u="aria-invalid",v={},w=[],x=[],y={beforeShow:null,beforeHide:null,closeNotificationSelector:"button.t-Button--closeAlert"};a.TYPE={SUCCESS:"success",ERROR:"error"},a.registerTemplates=function(c){var d,e,f,g;if(b.isPlainObject(c))v=b.extend(v,c);else for(d=0;d-1&&e.pageItem&&i(e),b.inArray(l,f)>-1&&h.push(e);h.length>0&&j(h),k.removeClass(p).addClass(q)},a.clearErrors=function(c){function d(a){h(a).removeAttr(u+" "+t).removeClass(r)}var f,g,i,j,k=!0,l=b("#APEX_ERROR_MESSAGE");if(c)d(c),i=b("#"+c+"_error_placeholder."+s);else{for(f=0;f-1&&g.pageItem&&d(g.pageItem);i=b("span."+s),y.beforeHide&&(k=y.beforeHide(a.TYPE.ERROR,l)),(k===e||k)&&l.removeClass(p).addClass(q).html("")}i.html("").removeClass(p).addClass(q),w=[]},a.showPageSuccess=function(f){var g=!0,h=b("#APEX_SUCCESS_MESSAGE"),i={placeholders:{SUCCESS_MESSAGE:f,CLOSE_NOTIFICATION:d.getMessage("APEX.CLOSE_NOTIFICATION"),SUCCESS_MESSAGE_HEADING:d.getMessage("APEX.SUCCESS_MESSAGE_HEADING"),IMAGE_PREFIX:window.apex_img_dir||""}};a.clearErrors(),h.html(c.applyTemplate(v[h.data(n)],i)),y.beforeShow&&(g=y.beforeShow(a.TYPE.SUCCESS,h)),(g===e||g)&&h.removeClass(q).addClass(p)},a.hidePageSuccess=function(){var c=!0,d=b("#APEX_SUCCESS_MESSAGE");y.beforeHide&&(c=y.beforeHide(a.TYPE.SUCCESS,d)),(c===e||c)&&d.removeClass(p).addClass(q)},a.confirm=function(a,c){var d;b.ui.dialog&&"CSS1Compat"===document.compatMode?f(a,!0,{callback:c}):(d=confirm(a),c(d))},a.alert=function(a,c){b.ui.dialog&&"CSS1Compat"===document.compatMode?f(a,!1,{callback:c}):(alert(a),c&&c())},a.addVisibilityCheck=function(a){x.push(a)},b(document).ready(function(){b("#APEX_SUCCESS_MESSAGE").on("click",y.closeNotificationSelector,function(b){a.hidePageSuccess(),b.preventDefault()}),b("#APEX_ERROR_MESSAGE").on("click",y.closeNotificationSelector,function(a){k(),a.preventDefault()}).on("click","a.a-Notification-link",function(a){function c(a){var b;for(b=0;b2?c[2]:null,f=d>3?c[3]:null,g=d>4?c[4]:null,h=d>5;document.cookie=a+"="+escape(b)+(null===e?"":"; expires="+e.toGMTString())+(null===f?"":"; path="+f)+(null===g?"":"; domain="+g)+(h===!0||"https:"===window.location.protocol?"; secure":"")},a.hasLocalStorageSupport=function(){var a=null,b="$test$";return function(){if(null!==a)return a;if(window.Modernizr&&window.Modernizr.hasOwnProperty("localstorage"))a=Modernizr.localstorage;else try{localStorage.setItem(b,b),localStorage.removeItem(b),a=!0}catch(c){a=!1}return a}}(),a.hasSessionStorageSupport=function(){var a=null,b="$test$";return function(){if(null!==a)return a;if(window.Modernizr&&window.Modernizr.hasOwnProperty("sessionstorage"))a=Modernizr.localstorage;else try{sessionStorage.setItem(b,b),sessionStorage.removeItem(b),a=!0}catch(c){a=!1}return a}}();var g={prefix:"",length:0,key:function(a){var b,c,d=0;if(a'),k.on("dialogcreate",function(){c(this).closest(".ui-dialog").css("position","fixed")}).on("dialogopen",function(){r.modal&&b.getTopApex().navigation.beginFreezeScroll(),k.children("iframe").on("load",function(){c(this.contentDocument.body).on("keydown",function(a){if(a.which===c.ui.keyCode.ESCAPE&&r.closeOnEscape)k.dialog("close");else if(a.which===c.ui.keyCode.TAB){var b=c(this).find(":tabbable").last(),d=k.closest(".ui-dialog").find(":tabbable").first();a.target!==b[0]||a.shiftKey||(d.focus(1),a.preventDefault())}})})}).on("dialogclose",function(){r.modal&&b.getTopApex().navigation.endFreezeScroll()}).on("dialogresize",function(){var a=k.height(),b=k.width();k.closest(".ui-dialog").css("position","fixed"),k.children("iframe").width(b).height(a)}),k.dialog(r),k.closest(".ui-dialog").on("keydown",function(a){if(a.keyCode===c.ui.keyCode.TAB){var b=c(k.children("iframe")[0].contentDocument.body).find(":tabbable"),d=b.filter(":first"),e=b.filter(":last"),f=c(this).find(":tabbable"),g=f.filter(":first"),h=f.filter(":last");a.target!==h[0]&&a.target!==k[0]||a.shiftKey?a.target!==g[0]&&a.target!==k[0]||!a.shiftKey||(e.focus(1),a.preventDefault()):(d.focus(1),a.preventDefault())}}),a.dialog.registerCloseHandler({handler$:k,dialog:k,triggeringElement$:j,closeFunction:function(){k.dialog("close")}})):r.dialog.dialog("option","title",r.title).children("iframe").attr("src",f):null===r.dialog?(n=j.id!==d&&j[0].id!==d&&""!==j[0].id&&j?j[0].id:"winDialog",m=a.popup({url:f,name:n,width:r.width,height:r.height}),a.dialog.registerCloseHandler({handler$:j,dialog:m,triggeringElement$:j,closeFunction:function(){m.close()}})):(r.dialog.location.href=f,r.dialog.resizeTo(r.width,r.height)))},a.dialog.close=function(e,f){function g(){try{if(window.opener.apex&&window.opener.apex.jQuery)return!0}catch(a){return!1}return!1}function h(a){var b,c,d,e={};for(b=0;b0&&(i=i.substring(0,i.lastIndexOf("_"))),i===d?window.close():"winDialog"===i?c.isFunction(f)?f.call(this,window):window.close():a.dialog.fireCloseHandler(window.opener.apex.jQuery("#"+i),f)):c.isFunction(f)?f.call(this,window):window.close()},a.dialog.cancel=function(b){a.dialog.close(b,!1)},a.dialog.registerCloseHandler=function(b){b.handler$.off(f).on(f,function(d,e){var f;c.isFunction(e)?e.call(this,b.dialog):"string"===c.type(e)?(f=location.href,a.redirect(e),location.href!==f&&b.closeFunction()):e===!1?b.closeFunction():(b.closeFunction(),b.triggeringElement$.trigger("apexafterclosedialog",[e]))})},a.dialog.fireCloseHandler=function(a,b){a.trigger(f,b)};var g,h=0,i=function(){c(document.body).css("width",g),c(window).off("apexwindowresized",i)};a.beginFreezeScroll=function(){0===h&&(c(window).on("apexwindowresized",i),g=document.body.style.width,c(document.body).width(c(document.body).width()).addClass("apex-no-scroll")),h+=1},a.endFreezeScroll=function(){h-=1,h<=0&&(i(),c(document.body).removeClass("apex-no-scroll"),h=0)}}(apex.navigation,apex.util,apex.jQuery);
apex.event={},function(a,b){"use strict";a.gCancelFlag=!1,a.trigger=function(c,d,e){return a.gCancelFlag=!1,b(c,apex.gPageContext$).trigger(d,e),a.gCancelFlag}}(apex.event,apex.jQuery);
apex.server={},apex.jQuery.ajaxSettings.traditional=!0,apex.jQuery.ajaxPrefilter("script",function(a){a.cache=!0}),function(a,b,c){"use strict";function d(a){var b,c,d=8e3;if(a.length>d){for(c=[],b=0;b=c.regions.length&&c.regions.push(f.region)}else c.regions=[f.region];return f}function g(a,d,f){function g(a){var c=[];return b("[name='"+a+"']").filter(function(){var a=this.type;return!this.disabled&&r.test(this.nodeName)&&!q.test(a)&&(this.checked||!s.test(a))}).each(function(){c.push(b(this).val())}),0===c.length?c="":1===c.length&&(c=c[0]),c}var h,i=[],j=1;return f&&b("form#wwvFlowForm").triggerHandler("submit"),d.salt=$v("pSalt"),a&&(h=[],d.pageItems={itemsToSubmit:h,"protected":$v("pPageItemsProtected"),rowVersion:$v("pPageItemsRowVersion")},b.isArray(a)&&(a=a.map(function(a){return"#"+c.escapeCSS(a)}).join(",")),b(a,apex.gPageContext$).each(function(){var a,d,k,l,m,n=this.id,o=b(this);if(e(n)){if(k=apex.item(n),m=k.node&&k.isDisabled()&&f?"":o.attr("name")===n||apex.page.itemCallbacks[n]||k.item_type!==!1&&!f?k.getValue(n):g(n),b.isArray(m))for(a=0;a0&&(i.push(this),l.fileIndex=j,l.fileCount=this.files.length,j+=this.files.length),d=b('input[data-for="'+c.escapeCSS(n)+'"]').val(),d&&(l.ck=d),h.push(l)}})),i}function h(a,b,c,d,e,f,g){function h(a){var b=x[a];return b||(b=x[a]=[]),b}function i(a){var b,c,d=h(a);d.length>=1&&(b=d[0],c=b.deferred.promise(),b.jqXHR=b.call(b.request,b.data,b.options,b.deferred),c.then(function(b,c){d.shift(),setTimeout(function(){i(a)},0)},function(a,b){setTimeout(function(){var a,b;for(a=1;a0;)a=w.shift(),a.call(a.request,a.data,a.options,a.deferred)},l)}else{if(k=h(a),"replace"===b&&k.length>=1)for(n=k.shift(),n.jqXHR?n.jqXHR.abort():n.deferred.reject({status:0},"superseded",null);k.length>0;)n=k.shift(),n.deferred.reject({status:0},"superseded",null);k.push({request:c,data:d,options:e,call:f,deferred:g}),1===k.length&&i(a)}}function i(a,c,d){var e,f,g,i,k=b.Deferred();return d&&d.queue?(e=d.queue.name,f=d.queue.action,delete d.queue,h(e,f,a,c,d,j,k)):g=j(a,c,d,k),i=k.promise(),i.abort=function(){g&&g.abort()},i}function j(a,e,h,i){function j(a){return"string"==typeof a?a.replace(p,"\r\n"):a}function k(a,b,c){var d,e=b[c];if("string"!=typeof e&&null!==e.length&&void 0!==e.length)for(d=0;d0){q=new FormData,F.enctype="multipart/form-data",F.processData=!1,F.contentType=!1,k(q,G,"p_json");for(r in G)G.hasOwnProperty(r)&&"p_json"!==r&&k(q,G,r);F.data=q}else F.data=G;return apex.event.trigger(h.refreshObject,"apexbeforerefresh",h.refreshObjectData)?(i.reject({status:0},"cancel",null),null):(b.isFunction(h.clear)&&h.clear(),(h.loadingIndicator||"page"===C)&&(A=b(''),y+=1,E="_call"+y,c.delayLinger.start(E,function(){"page"===C?(B=c.showSpinner(),H=H.add(B)):b.isFunction(h.loadingIndicator)?H=h.loadingIndicator(A):b(h.loadingIndicator).each(function(){var a=null,d=b(this,apex.gPageContext$),e=apex.item(this);B=A.clone(),w&&w.alternateLoadingIndicator&&(a=w.alternateLoadingIndicator(this,B)),a?B=a:void 0!==e.callbacks.loadingIndicator?B=e.loadingIndicator(B):"before"===C?B=B.insertBefore(d.filter(":not(:hidden)")):"after"===C?B=B.insertAfter(d.filter(":not(:hidden)")):"prepend"===C?B=B.prependTo(d):"append"===C?B=B.appendTo(d):"centered"===C&&(B=c.showSpinner(d)),H=H.add(B)})})),F.error=function(a,b,c){m(a,b,c,{deferred:i,callback:t,loadingIndicator:H,progressScopeName:E})},F.success=function(a,b,c){l(a,b,c,{deferred:i,callback:s,errorCallback:F.error,loadingIndicator:H,progressScopeName:E,refreshObject:h.refreshObject,refreshObjectData:h.refreshObjectData})},x&&x.beforeAsync&&x.afterAsync&&(x.beforeAsync(),i.always(function(){x.afterAsync()})),b.ajax(F))}function k(a,d){function e(){b.isFunction(a)?a():b(a,apex.gPageContext$).remove()}d?c.delayLinger.finish(d,function(){e()}):e()}function l(a,c,d,e){var f=!0,g=d.getResponseHeader("X-APEX-ERROR");if(a){if(a.error)return e.errorCallback(d,"APEX",a.error);if(g)return e.errorCallback(d,"APEX",decodeURIComponent(g))}return k(e.loadingIndicator,e.progressScopeName),b.isFunction(e.callback)&&(f=e.callback(a,c,d)),(f||void 0==f)&&apex.event.trigger(e.refreshObject,"apexafterrefresh",e.refreshObjectData)&&(f=!1),e.deferred.resolve(a,c,d),f}function m(a,c,d,e){var f,g=!1;return k(e.loadingIndicator,e.progressScopeName),b.isFunction(e.callback)?g=e.callback(a,c,d):0!==a.status&&(f="APEX"===c?d:"Error: "+d,b.isFunction(window.onerror)?window.onerror(f,null,null):(apex.message.clearErrors(),apex.message.showErrors({message:f,location:"page"}))),e.deferred.reject(a,c,d),g}a.plugin=function(a,b,c){var d=null;return"string"==typeof a?d="PLUGIN="+a:(c=b,b=a),i(d,b,c)},a.pluginUrl=function(c,d){return a.url(b.extend({},d,{p_request:"PLUGIN="+c}))},a.ajaxUrl=function(a,c){function h(a){return"string"==typeof a?a.replace(p,"\r\n"):a}function i(a,c){var d;if(b.isArray(c))for(d=0;d=0;d--)a.prepend("");for(l=c,a.trigger("submit"),m=!1,d=0;d5?(l&&l.remove(),apex.message.alert(apex.lang.getMessage("APEX.WAIT_UNTIL_PAGE_LOADED"))):(l===f&&1===n&&(l=apex.widget.waitPopup()),setTimeout(p,300))):(r.validate&&(a.validate(o)||(q=!1,apex.message.alert(apex.lang.getMessage("APEX.CORRECT_ERRORS"),function(){}))),q&&(c.trigger(apex.gPageContext$,"apexpagesubmit",r.request),"S"===h?j(o,l,r.ignoreChange):"A"===h?i(o,r.ignoreChange):(m=!0,o.trigger("submit"),m=!1)))},p()}return r.submitIfEnter===f&&void 0},a.confirm=function(b,c){var d,e=g(c,"CONFIRM");d=b?b:"Would you like to perform this delete action?",apex.message.confirm(d,function(b){b&&a.submit(e)})},a.validatePageItemsOnBlur=function(){b(b("#wwvFlowForm")[0].elements).each(function(){var a=this,c=a.name,f=a.type;"BUTTON"!==a.nodeName&&"button"!==f&&"submit"!==f&&"reset"!==f&&c&&e.isValidPageItemName(c)&&0===b(a).closest(k).length&&b(a).on("blur.apexValidate",function(b){var c,e,f=[];a.disabled||(c=apex.item(a),e=c.getValidity(),e.valid?d.clearErrors(c.id):(f.push({message:c.getValidationMessage(),location:"inline",pageItem:c.id}),d.showErrors(f)))})})},a.validate=function(a){var c=!0,e=[];return a||(a=b("#wwvFlowForm")),d.clearErrors(),h(a,function(a,b){var d,f;d=apex.item(b),d.isDisabled()||(f=d.getValidity(),f.valid||(c=!1,e.push({message:d.getValidationMessage(),location:"inline",pageItem:d.id})))}),c&&apex.model&&(c=!apex.model.anyErrors()),c||d.showErrors(e),c},a.isChanged=function(){var a=!1;return apex.model&&(a=apex.model.anyChanges()),a||h(b("#wwvFlowForm"),function(c,d){if(!c.disabled)return 0===b(c).closest(k).length&&apex.item(d).isChanged()?(a=!0,!1):void 0}),!a&&n&&(a=n()),a},a.warnOnUnsavedChanges=function(c,d){d&&(n=d),b(window).off(".apexpageunload"),c||(c=apex.lang.getMessage("APEX.WARN_ON_UNSAVED_CHANGES")),o=c,b("button"+k).each(function(){var c=b(this),d=c.prop("onclick");d&&c.removeAttr("onclick").on("click",function(){a.cancelWarnOnUnsavedChanges(),d()})}),b("a"+k).on("click.apexpageunload",function(){a.cancelWarnOnUnsavedChanges()}),b(window).on("beforeunload.apexpageunload",function(b){if(!l&&a.isChanged())return o})},a.cancelWarnOnUnsavedChanges=function(){o=null,b(window).off("beforeunload.apexpageunload")},apex.submit=a.submit,apex.confirm=a.confirm}(apex.page,apex.jQuery,apex.event,apex.message,apex.server);
!function(a,b){"use strict";function c(a){return b("#"+apex.util.escapeCSS(a),apex.gPageContext$)}var d="apexregion",e="js-apex-region",f={type:"generic",refresh:function(){this.element.trigger("apexrefresh")},focus:function(){this.element.find(":tabbable").first().focus()},widget:function(){return null},gotoError:function(a){},getSessionState:function(a){return null}};apex.region=function(a){var e=null,g=c(a);return g.length&&(e=c(a).data(d),e||(e=b.extend({},f),e.element=g)),e},apex.region.create=function(a,g){var h,i=c(a);if(!i.length)throw new Error("Region element not found "+a);h=b.extend({},f,g),h.element=i,i.addClass(e),i.data(d,h)},apex.region.destroy=function(a){var b=c(a);if(!b.length)throw new Error("Region element not found "+a);b.removeData(d)},apex.region.isRegion=function(a){var b=c(a);return!!b.length&&!!b.data(d)},apex.region.findClosest=function(a){var c=b(a).parent().closest("."+e).prop("id");return c?apex.region(c):null}}(apex.debug,apex.jQuery);
!function(a,b,c){"use strict";function d(e,f){function g(a,c){var d,e,f;try{switch(typeof a){case"string":B.node=b("#"+apex.util.escapeCSS(a),apex.gPageContext$)[0];break;case"object":B.node=a;break;default:B.node=!1}B.node&&1===B.node.nodeType||(B.node=!1)}catch(g){B.node=!1}if(B.node)if(B.id=B.node.id,c?apex.page.itemCallbacks[B.id]=B.callbacks:apex.page.itemCallbacks[B.id]&&(B.callbacks=apex.page.itemCallbacks[B.id]),d=B.node.nodeName.toUpperCase(),"FIELDSET"===d)f=b(B.node),B.item_type=!1,f.hasClass("checkbox_group")?B.item_type="CHECKBOX_GROUP":f.hasClass("radio_group")?B.item_type="RADIO_GROUP":f.hasClass("shuttle")&&(B.item_type="SHUTTLE");else if("INPUT"===d)switch(B.item_type=B.node.type.toUpperCase(),B.item_type){case"CHECKBOX":case"RADIO":break;case"TEXT":e=B.node.parentNode.className.toUpperCase(),"LOV"===e&&(b("#"+B.id+"_HIDDENVALUE",apex.gPageContext$).length>0?B.item_type="POPUP_KEY_LOV":B.item_type="POPUP_LOV");break;case"HIDDEN":B.display_span=$x(B.id+"_DISPLAY"),B.display_span&&(B.item_type="DISPLAY_SAVES_STATE");break;default:B.item_type="TEXT"}else switch(B.item_type=d,B.item_type){case"TEXTAREA":if("html_editor"===B.node.parentNode.className&&"FIELDSET"===B.node.parentNode.tagName)B.item_type="FCKEDITOR";else try{window.CKEDITOR&&window.CKEDITOR.instances[B.id]&&(B.item_type="CKEDITOR3")}catch(g){}break;case"SELECT":break;case"SPAN":b(B.node).hasClass("display_only")&&(B.item_type="DISPLAY_ONLY");break;default:B.item_type=!1}}function h(a,c){return b.isFunction(B.callbacks.reinit)?B.callbacks.reinit.call(B,a,c):void B.setValue(a,c,!0)}function i(){var a,d,e,f;if(!B.node)return"";if(b.isFunction(B.callbacks.getValue))return B.callbacks.getValue.call(B);switch(e=!0,f=[],B.item_type){case"RADIO_GROUP":d=b(":checked",B.node),f=0===d.length?"":d.val();break;case"CHECKBOX_GROUP":b(":checked",B.node).each(function(){f[f.length]=this.value});break;case"SELECT":f=b(B.node).val(),null!==f&&f!==c||(f=b(B.node).attr("multiple")?[]:"");break;default:e=!1}if(!e)switch(B.item_type){case"CHECKBOX":f=B.node.checked?B.node.value:"";break;case"RADIO":f=B.node.checked?B.node.value:"";break;case"POPUP_KEY_LOV":f=b("#"+B.node.id+"_HIDDENVALUE",apex.gPageContext$).val();break;case"TEXT":case"POPUP_LOV":case"HIDDEN":case"DISPLAY_SAVES_STATE":case"TEXTAREA":f=B.node.value;break;case"DISPLAY_ONLY":f=B.node.innerHTML;break;case"FCKEDITOR":a=FCKeditorAPI.GetInstance(B.node.id),f=a.GetHTML();break;default:f=""}return f}function j(a,c,d){var e,f,g,h,i,j;if(b.isFunction(B.callbacks.setValue))B.callbacks.setValue.call(B,a,c,d);else{if(h=!1,i=b(B.node,apex.gPageContext$),!B.node)return;switch(B.item_type){case"RADIO_GROUP":h=$x_FormItems(B.node,"RADIO");break;case"CHECKBOX_GROUP":h=$x_FormItems(B.node,"CHECKBOX");break;case"POPUP_KEY_LOV":b("#"+B.node.id+"_HIDDENVALUE",apex.gPageContext$).val(a),i.val(c);break;case"SELECT":h=B.node.options;break;default:h=!1}if(h)for(e=0,f=h.length;e=0)&&b(B.node).textinput("enable")),B.afterModify()}function l(){b.isFunction(B.callbacks.disable)?B.callbacks.disable.call(B):(b(B.node).addClass("apex_disabled").prop("disabled",!0),b.mobile&&("TEXTAREA"===B.item_type||b.inArray(B.node.type,["text","email","url","tel","search","number","password","time","date","month","week","datetime","datetime-local","color"])>=0)&&b(B.node).textinput("disable")),B.afterModify()}function m(){return b.isFunction(B.callbacks.isDisabled)?B.callbacks.isDisabled.call(B):!!b(B.node).prop("disabled")}function n(a){var c=apex.util.escapeCSS(B.node.id),d=b("#"+c+"_CONTAINER",apex.gPageContext$);d.length>0?d.show():a?$x_ItemRow(B.node,"SHOW"):(b.isFunction(B.callbacks.show)?B.callbacks.show.call(B):(d=b("#"+c+"_DISPLAY",apex.gPageContext$),d.length>0?d.show():b(B.node).show().trigger("apexaftershow")),c&&b("label[for="+c+"]",apex.gPageContext$).show())}function o(a){var c=apex.util.escapeCSS(B.node.id),d=b("#"+c+"_CONTAINER",apex.gPageContext$);d.length>0?d.hide():a?$x_ItemRow(B.node,"HIDE"):(b.isFunction(B.callbacks.hide)?B.callbacks.hide.call(B):(d=b("#"+c+"_DISPLAY",apex.gPageContext$),d.length>0?d.hide():b(B.node).hide().trigger("apexafterhide")),c&&b("label[for="+c+"]",apex.gPageContext$).hide())}function p(){var a,c,d,e,f="";return a=B.getValue(),a=b.isArray(a)?a.join(":"):""+a,c=/^\s{1,}$/g,d=$x(B.node),"nullValue"in B.callbacks?b.isFunction(B.callbacks.nullValue)?B.callbacks.nullValue.call(B):0===a.length||null===a||a===B.callbacks.nullValue||a.search(c)>-1:("SELECT"===B.item_type?(apex.widget&&apex.widget.report&&apex.widget.report.tabular&&apex.widget.report.tabular.gNullValueList&&b.each(apex.widget.report.tabular.gNullValueList,function(a,b){if(this.name===d.name)return f=b.value,!1}),e=d.multiple?0===a.length||a===f:!(!f&&""!==f)&&a===f):e=0===a.length||null===a||a.search(c)>-1,e)}function q(){function a(){var a=f.length!==g.length;if(!a)for(d=0;d

';$x(a).innerHTML=i;var j=$dom_AddTag("shuttle1","select"),k=$dom_AddTag("shuttle2","select");j.multiple=!0,k.multiple=!0;for(var l=0,m=h.row.length;l=0;b--)this.node.removeChild(this.node.childNodes[b]);this.node.appendChild(a)}this.obj=$x(a),this.proc=f?f:"wwv_flow.show",this.flow=b?b:$v("pFlowId"),this.request=c?c:"",this.page=d?d:"0",this.queryString=g?g:null,this.params="",this.response="",this.base=null,this.syncMode=!1,this.addParam=htmldb_Get_addParam,this.add=htmldb_Get_addItem,this.getPartial=htmldb_Get_trimPartialPage,this.getFull=function(a){var b,c;return a&&(this.obj=$x(a)),this.obj&&("INPUT"==this.obj.nodeName?this.obj.value=this.response:document.all?(b=this.response,c=this.obj,setTimeout(function(){htmldb_get_WriteResult(c,b)},100)):$s(this.obj,this.response)),this.response},this.get=function(a,b,c){var d;try{d=new XMLHttpRequest}catch(e){d=new ActiveXObject("Msxml2.XMLHTTP")}try{new Date;return d.open("POST",this.base,this.syncMode),d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(null==this.queryString?this.params:this.queryString),this.response=d.responseText,this.node&&this.replaceNode(d.responseXML),null==a||"PPR"==a?this.getPartial(b,c):"XML"==a?d.responseXML:this.getFull()}catch(e){return}},this.url=htmldb_Get_getUrl,this.escape=htmldb_Get_escape,this.clear=htmldb_Get_clear,this.sync=htmldb_Get_sync,this.setNode=h,this.replaceNode=i;var j=window.location.href.indexOf("?")>0?window.location.href.substring(0,window.location.href.indexOf("?")):window.location.href;this.base=j.substring(0,j.lastIndexOf("/")),this.proc||(this.proc=j.substring(j.lastIndexOf("/")+1)),this.base=this.base+"/"+this.proc,null==e||""==e?this.instance=$v("pInstance"):this.instance=e,g||(this.addParam("p_request",this.request),this.addParam("p_instance",this.instance),this.addParam("p_flow_id",this.flow),this.addParam("p_flow_step_id",this.page))}function htmldb_Get_sync(a){this.syncMode=a}function htmldb_Get_clear(a){this.addParam("p_clear_cache",a)}function htmldb_Get_getUrl(){return null==this.queryString?this.base+"?"+this.params:this.queryString}function htmldb_Get_escape(a){return a+="",a=a.replace(/\%/g,"%25"),a=a.replace(/\+/g,"%2B"),a=a.replace(/\ /g,"%20"),a=a.replace(/\./g,"%2E"),a=a.replace(/\*/g,"%2A"),a=a.replace(/\?/g,"%3F"),a=a.replace(/\\/g,"%5C"),a=a.replace(/\//g,"%2F"),a=a.replace(/\>/g,"%3E"),a=a.replace(/\"),b||(b="");var d,e,f=this.response.indexOf(a);if(f>0){this.response=this.response.substring(f+a.length);var g=this.response.indexOf(b);this.response=this.response.substring(0,g)}return this.obj&&(document.all?(d=this.response,e=this.obj,setTimeout(function(){htmldb_get_WriteResult(e,d)},100)):$s(this.obj,this.response)),this.response}function htmldb_get_WriteResult(a,b){$s(a,b)}function htmldb_ExternalPost(a,b,c){var d="f?p="+$x("pFlowId").value+":"+$x("pFlowStepId").value+":"+$x("pInstance").value+":FLOW_FOP_OUTPUT_R"+b;document.body.innerHTML=document.body.innerHTML+'';var e=$x("vXML"),f=new htmldb_Get(e,null,null,null,null,"f",d.substring(2));f.get(),f=null,setTimeout(function(){$x("xmlFormPost").submit()},10)}function $xml_Control(a){function b(a,b,c){var d=$x(b);if(document.all){this.xsl_processor.addParameter("xpath",a),this.xsl_processor.input=this.xml,this.xsl_processor.transform;var e=this.xsl_processor.output}else{this.xsl_processor.setParameter(null,"xpath",a);var e=this.xsl_processor.transformToFragment(this.xml,this.ownerDocument)}if(d)return ie?$s(d,e):($s(d,""),d.appendChild(e)),e}this.xsl_string='',document.all?(this.xsl_object=new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0"),this.xsl_object.async=!1,this.xsl_object.loadXML(this.xsl_string),tmp=new ActiveXObject("Msxml2.XSLTemplate.3.0"),tmp.stylesheet=this.xsl_object,this.xsl_processor=tmp.createProcessor()):(this.xsl_object=(new DOMParser).parseFromString(this.xsl_string,"text/xml"),this.xsl_processor=new XSLTProcessor,this.xsl_processor.importStylesheet(this.xsl_object),this.ownerDocument=document.implementation.createDocument("","test",null)),this.xml=a,this.CloneAndPlace=b}function $a_PostClob(a,b,c,d){var e=new htmldb_Get(null,$v("pFlowId"),b,c,null,"wwv_flow.accept");e.AddArrayClob($x(a).value,1),e.GetAsync(d),e=null}function $a_GetClob(a,b,c){var d=new htmldb_Get(null,$v("pFlowId"),a,b,null,"wwv_flow.accept");d.GetAsync(c),d=null,x=null}function $s_Split(a,b){var c=[];if(a.length<=b)c[c.length]=a;else{for(;a.length>4e3;)c[c.length]=a.substr(0,4e3),a=a.substr(4e3,a.length-4e3);c[c.length]=a.substr(0,4e3)}return c}function json_SetItems(a){a=apex.jQuery.parseJSON(a);for(var b=0,c=a.item.length;bd&&(b=d),c>d&&(c=d),a.focus(),a.setSelectionRange(b,c);else if(a.createTextRange){var e=a.createTextRange();e.collapse(!0),e.moveEnd("character",c),e.moveStart("character",b),e.select()}}function setCaretToPos(a,b){setSelectionRange(a,b,b)}function html_ReturnToTextSelection(a,b,c){var d=$x(b),e=apex.item(d).isEmpty()||c?"":" ";if(document.selection){d.focus();var f=document.selection,g=f.createRange();g.text=g.text+e+a}else start=d.selectionStart,end=d.selectionEnd,d.value=d.value.slice(0,start)+e+a+d.value.slice(end,d.value.length),d.focus(),setCaretToPos(d,end+(a.length+2))}function setCaretToEnd(a){setSelectionRange(a,a.value.length,a.value.length)}function setCaretToBegin(a){setSelectionRange(a,0,0)}function selectString(a,b){var c=new RegExp(b,"i").exec(a.value);c&&setSelectionRange(a,c.index,c.index+c[0].length)}function ob_PPR_TAB(a){top.gLastTab=a;var b=document.body,c=new htmldb_Get(b,null,null,null,null,"f",a.substring(2));c.get(null,'',"")}function flowSelectAll(){var a,b,c;if("undefined"==typeof flowSelectArray)return!0;for(var d=0,e=flowSelectArray.length;d0&&(dhtml_CloseAllSubMenusL(e[0]),e.focus().data("setParent",!1));break;case 39:(c.parent().hasClass("dhtmlSubMenuN")||c.parent().hasClass("dhtmlSubMenuS"))&&(c.trigger("mouseover"),$gCurrentAnchorList[0].focus(),c.data("setParent",!0));break;case 13:return}a.preventDefault()}function dhtml_MenuOpen(a,b,c,d,e){var f;if($x(b)){if(f="menu_keys_"+b,document.onclick=dhtml_DocMenuCheck,apex.jQuery(document).unbind("keydown."+f+"_esc").bind("keydown."+f+"_esc",function(a){27===a.which&&(app_AppMenuMultiClose(),dhtml_CloseAllSubMenus(),document.onclick=null,e&&apex.jQuery(e).focus())}),c){var g=parseInt($x(b).getAttribute("htmldb:listlevel"),10),h=gSubMenuArray[g];h&&$x_Hide(h),gSubMenuArray[g]=$x(b)}else dhtml_CloseAllSubMenus(),gCurrentAppMenu=b;$gCurrentAnchorList=apex.jQuery("#"+b).children().children().filter("a[class!=eLink]"),apex.jQuery(document).unbind("keydown."+f).bind("keydown."+f,function(a){var c=[40,38,37,39,13];apex.jQuery("#"+b+":visible").filter("ul")[0]&&apex.jQuery.inArray(a.which,c)!==-1&&dhtml_KeyAction(a,f)});var i=$x(b);document.body.appendChild(i),d&&"Right"!=d?"Bottom"==d?(i.style.position="absolute",i.style.top=parseInt(findPosY(a),10)+parseInt(a.offsetHeight,10)+"px",i.style.left=parseInt(findPosX(a),10)+"px"):"BottomRight"==d?(i.style.position="absolute",i.style.top=parseInt(findPosY(a),10)+parseInt(a.offsetHeight,10)+"px",i.style.left=parseInt(findPosX(a),10)-parseInt(a.offsetWidth,10)+"px"):(i.style.position="absolute",i.style.top=parseInt(findPosY(a),10)+"px",i.style.left=parseInt(findPosX(a),10)+parseInt(a.offsetWidth,10)+"px"):(i.style.position="absolute",i.style.top=parseInt(findPosY(a),10)+"px",i.style.left=parseInt(findPosX(a),10)+"px"),$x_Show(i),dhtml_FixLeft(a,i,d),htmldb_IE_Select_Item_Fix(i)}}function dhtml_DocMenuSingleCheck(a,b){if(g_Single_Menu_Count>0){var c=!0;if(a)for(var d=html_GetTarget(a);"BODY"!=d.nodeName&&!b;)d=d.parentNode,d==g_Single_Menu&&(c=!c);(c||b)&&($x_Hide(g_Single_Menu),document.onclick=null)}else g_Single_Menu_Count=1}function dhtml_SingeMenuOpen(a,b,c,d,e){var f=$x(b),g=$x(a);f.style.zIndex=2001,document.body.appendChild(f),c&&"Right"!=c?"Bottom"==c?(f.style.position="absolute",f.style.top=parseInt(findPosY(g),10)+parseInt(g.offsetHeight,10)+"px",f.style.left=parseInt(findPosX(g),10)+"px"):"BottomRight"==c?(f.style.position="absolute",f.style.top=parseInt(findPosY(g),10)+parseInt(g.offsetHeight,10)+"px",f.style.left=parseInt(findPosX(g),10)-parseInt(g.offsetWidth,10)+"px"):"Set"==c?(f.style.position="absolute",f.style.top=parseInt(e,10)+"px",f.style.left=parseInt(d,10)+"px"):(f.style.position="absolute",f.style.top=parseInt(findPosY(g),10)+"px",f.style.left=parseInt(findPosX(g),10)+parseInt(g.offsetWidth,10)+"px"):(f.style.position="absolute",f.style.top=parseInt(findPosY(g),10)+"px",f.style.left=parseInt(findPosX(g),10)+"px"),$x_Show(f),dhtml_FixLeft(g,f,c),htmldb_IE_Select_Item_Fix(!0),g_Single_Menu_Count=0,g_Single_Menu=f,document.onclick=dhtml_DocMenuSingleCheck}function dhtml_FixLeft(a,b,c){var d;d=document.all?document.body.clientWidth:window.innerWidth,"Bottom"==c?parseInt(d,10)=1;document.all&&a&&b&&a.firstChild&&"IFRAME"!=a.firstChild.nodeName&&(a.innerHTML=''+a.innerHTML)}function app_AppMenuMultiOpenBottom(a,b,c){$x(b);if(a!=gCurrentAppMenuImage){app_AppMenuMultiClose();var d=a.previousSibling.firstChild;a.className=g_dhtmlMenuOn,dhtml_MenuOpen(d,b,!1,"Bottom",a),gCurrentAppMenuImage=a}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function app_AppMenuMultiOpenBottom2(a,b,c){$x(b);if(a!=gCurrentAppMenuImage){app_AppMenuMultiClose();var d=a.parentNode;a.className=g_dhtmlMenuOn,dhtml_MenuOpen(d,b,!1,"Bottom",a),gCurrentAppMenuImage=a}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function app_AppMenuMultiOpenBottom3(a,b,c,d){$x(b);if(a!=gCurrentAppMenuImage){app_AppMenuMultiClose();var e=$x(c);a.className=g_dhtmlMenuOn,dhtml_MenuOpen(e,b,!1,"Bottom",a),gCurrentAppMenuImage=a}else dhtml_CloseAllSubMenus(),app_AppMenuMultiClose()}function $u_js_temp_drop(){var a=apex.jQuery("#apex_js_temp_drop");return a.length>0?a.empty():a=apex.jQuery('').prependTo(document.body).hide(),a[0]}function $u_js_temp_clear(){var a=$x("apex_js_temp_drop");return a&&(a.innerHTML=""),a}function ie_RowFixStart(a){if(document.all){var b=$x_FormItems(a,"checkbox");g_CheckedArray_IE=[];for(var c=0,d=b.length;c=0;c--)a.options[c].selected&&"D"==b&&c!=d-1&&a.insertBefore(a.options[c],a.options[c+2]);else{var e=[];for(c=0;c=0;c--)a.insertBefore(e[c],a.firstChild)}},this.sort1=function(a){this.sort(this.Select1,a)},this.sort2=function(a){this.sort(this.Select2,a)}}function hideShow(a,b,c,d){var e=$x(b),f=$x(a);"none"==f.style.display||""==f.style.display||null==f.style?(e.src=d,$x(a).style.display="block"):(e.src=c,$x(a).style.display="none")}null!==apex.spreadsheet&&"object"==typeof apex.spreadsheet||(apex.spreadsheet={}),null!==apex.items&&"object"==typeof apex.items||(apex.items={}),null!==apex.ajax&&"object"==typeof apex.ajax||(apex.ajax={}),null!==apex.dhtml&&"object"==typeof apex.dhtml||(apex.dhtml={}),null!==apex.worksheet&&"object"==typeof apex.worksheet||(apex.worksheet={}),apex.ajax={clob:function(a){function b(a){e.ajax.addParam("x05","GET"),e.ajax.GetAsync(e._return)}function c(a){e.ajax.addParam("x05","SET"),e.ajax.AddArrayClob(a,1),e.ajax.GetAsync(e._return)}function d(){if(1==p.readyState);else if(2==p.readyState);else if(3!=p.readyState)return 4==p.readyState&&p}var e=this;this.ajax=new htmldb_Get(null,$x("pFlowId").value,"APXWGT",0),this.ajax.addParam("p_widget_name","apex_utility"),this.ajax.addParam("x04","CLOB_CONTENT"),this._get=b,this._set=c,this._return=a?a:d},test:function(a){function b(a){e.ajax.GetAsync(e._return)}function c(a){}function d(a){}var e=this;this.ajax=new htmldb_Get(null,$x("pFlowId").value,"APXWGT",0),this.ajax.addParam("p_widget_name","apex_utility"),this._get=b,this._set=c,this._return=a?a:d},widget:function(a,b){function c(a){f.ajax.GetAsync(f._return)}function d(a){}function e(a){}var f=this;this.ajax=new htmldb_Get(null,$x("pFlowId").value,"APXWGT",0),this.ajax.addParam("p_widget_name",a),this._get=c,this._set=d,this._return=b?b:e},ondemand:function(a,b){function c(a){f.ajax.GetAsync(f._return)}function d(a){}function e(a){}var f=this;this.ajax=new htmldb_Get(null,$x("pFlowId").value,"APPLICATION_PROCESS="+a,0),this._get=c,this._set=d,this._return=b?b:e},url:function(a,b){function c(a){f.ajax.GetAsync(f._return)}function d(a){}function e(a){}var f=this;this.ajax=new htmldb_Get(null,null,null,null,null,"f",a),this._get=c,this._set=d,this._return=b?b:e}};var gResult=null,gNode=null;htmldb_Get.prototype.GetAsync=function(a){var b;try{b=new XMLHttpRequest}catch(c){b=new ActiveXObject("Msxml2.XMLHTTP")}try{new Date;if(b.open("POST",this.base,!0),b)return b.onreadystatechange=function(){p=b,a(b)},b.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),b.send(null==this.queryString?this.params:this.queryString),b}catch(c){return!1}},htmldb_Get.prototype.AddArray=function(a,b){var c="f";b=$nvl(b,1),c+=b<10?"0"+b:b;for(var d=0,e=a.length;d