'.concat($("
").text(n).html(),"
")),i.txtError.html(o),this.changeOperationStatus("error")},t.prototype.showErrorNoteByWording=function(t){var e=this.languageMgr.getWord(t);this.showErrorNote(e)},t.prototype.showErrorNote=function(t){var e=this;this.errorTimeout&&clearTimeout(this.errorTimeout);var r=(0,u.get$Dom)();r.instructionText.text(t),r.instruction.addClass("error"),"embed"===this.showType&&r.embedStatus.addClass("hide"),this.errorTimeout=window.setTimeout(function(){r.instructionText.text(e.instruction),r.instruction.removeClass("error"),"embed"===e.showType&&r.embedStatus.removeClass("hide")},1500)},t.prototype.shakeEls=function(t){(0,d.shakeEl)(this.operationDom,t)},t.prototype.addEmbedTip=function(){this.addHoverDom($("#e_showFB"),"aria-feedback"),this.addHoverDom($("#e_reload"),"aria-refresh"),this.addHoverDom($(".tcaptcha-embed .aged-icon"),"frame-simple"),this.addHoverDom($(".tcaptcha-embed .normal-verify-icon"),"frame-standard")},t.prototype.addHoverDom=function(t,e){var r=this;(0,d.isTouchEventSupported)()||t.on("mouseenter",function(){t.css("border-color","#007AFF"),t.children(".status-normal").removeClass("show"),t.children(".status-hover").addClass("show");var n=document.createElement("div");$(n).text(r.languageMgr.getWord(e)).addClass("hover-tip").appendTo($("body")),t.on("mousemove",function(t){$(n).css({left:"".concat(t.clientX-10,"px"),top:"".concat(t.clientY+20,"px")})}),t.on("mouseleave",function(){t.css("border-color","#999"),t.children(".status-hover").removeClass("show"),t.children(".status-normal").addClass("show"),$(n).remove(),$(n).off("mousemove mouseleave")})})},t}();e.DomManager=g},function(t,e,r){"use strict";e.__esModule=!0,e.CaptchaEls=void 0;var n=r(93),i=r(95),o=r(96);e.CaptchaEls=[{dataCheck:function(t){return!!t.bg_elem_cfg},el:i.BgEl},{dataCheck:function(t){return!!t.fg_elem_list},el:n.DragEl},{dataCheck:function(t){var e;return!!(null===(e=t.bg_elem_cfg)||void 0===e?void 0:e.click_cfg)},el:o.ClickEl}]},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i
0)try{for(var T=a(h),C=T.next();!C.done;C=T.next()){var k=C.value,O=this.els["".concat(k.master)],A=this.els["".concat(k.slave)];O&&A&&O.bindSlave(A)}}catch(D){r={error:D}}finally{try{C&&!C.done&&(n=T["return"])&&n.call(T)}finally{if(r)throw r.error}}$.when.apply($,s([],o(y),!1)).then(function(){e()},function(t){e(t)})}else e()}},t.prototype.reInit=function(){for(var t in this.els){if(Object.prototype.hasOwnProperty.call(this.els,t))this.els[t].reInit()}},t.prototype.resize=function(){for(var t in this.els)Object.prototype.hasOwnProperty.call(this.els,t)&&this.els[t].resize(this.getRate())},t.prototype.destroy=function(){for(var t in this.els)Object.prototype.hasOwnProperty.call(this.els,t)&&this.els[t].destroy();this.els={}},t}();e.DragEl=h;var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.slaves=[],e.startPos=null,e.acting=!1,e.movePoints=[],e.boundEventStartFn=null,e.boundEventMoveFn=null,e.boundEventEndFn=null,e}return i(e,t),e.prototype.init=function(e){var r=this;t.prototype.init.call(this,function(t){t?e(t):(r.option.fgItemData.move_cfg&&(r.addDragCss(),r.initStatusWithRate(r.option.rate),r.bindEvt()),e(null))})},e.prototype.addDragCss=function(){(0,u.setCss)(this.el,{cursor:"pointer"})},e.prototype.initStatusWithRate=function(t){var e=this.option,r=e.fgItemData,n=e.operationSize,i=r.init_pos[0]*t,a=r.init_pos[1]*t;this.initCSSPosition=[i,a],this.curCSSPositoon=[i,a],this.startCSSPosition=[i,a];var s=o(r.size_2d,2),c=s[0],u=s[1],d=[n[0]-c,n[1]-u],l=[d[0]*t,d[1]*t];this.boundary=l},e.prototype.bindEvt=function(){var t=this;this.boundEventStartFn=function(e){var r;null===(r=e.preventDefault)||void 0===r||r.call(e),t.onEventStart(e)},this.boundEventMoveFn=function(e){var r;null===(r=e.preventDefault)||void 0===r||r.call(e),t.onEventMove(e)},this.boundEventEndFn=function(e){t.onEventEnd(e)},this.captcha.userEvent.on(this.el,"mousedown touchstart",this.boundEventStartFn),this.captcha.userEvent.on(this.option.wrapper,"mousemove touchmove",this.boundEventMoveFn),this.captcha.userEvent.on(this.option.wrapper,"mouseup touchend",this.boundEventEndFn)},e.prototype.onEventStart=function(t){var e=(0,d.getPosition)(t);e&&void 0!==(null===e||void 0===e?void 0:e.x)&&void 0!==(null===e||void 0===e?void 0:e.y)?this.startPos||this.acting||(this.startPos=[e.x,e.y],this.startCSSPosition=this.curCSSPositoon):this.captcha.errorHandler.send({errorType:p.ErrorTypes.DY_JS_ERROR,reason:"errorMsg:unable to get touch/drag start pos;errorPos:drag-el/DragItem/onEventStart"})},e.prototype.onEventMove=function(t){if(this.startPos){var e=(0,d.getPosition)(t);if(e&&void 0!==(null===e||void 0===e?void 0:e.x)&&void 0!==(null===e||void 0===e?void 0:e.y)){var r=o(this.startPos,2),n=r[0],i=r[1],a=e.x-n,s=e.y-i;this.onMove([a,s])}}},e.prototype.onEventEnd=function(t){var e,r;if(this.startPos){this.startPos=null,this.endAct();try{for(var n=a(this.slaves),i=n.next();!i.done;i=n.next()){i.value.endAct()}}catch(o){e={error:o}}finally{try{i&&!i.done&&(r=n["return"])&&r.call(n)}finally{if(e)throw e.error}}}},e.prototype.reInit=function(){if(this.initCSSPosition&&this.curCSSPositoon){this.curCSSPositoon=this.initCSSPosition,this.startCSSPosition=this.initCSSPosition;var t=o(this.curCSSPositoon,2),e=t[0],r=t[1];(0,u.setCss)(this.el,{left:"".concat(e,"px"),top:"".concat(r,"px")})}},e.prototype.resize=function(e){t.prototype.resize.call(this,e),this.initStatusWithRate(e)},e.prototype.onMove=function(t){var e,r,n,i,c=this.checkBoundary(s([],o(t),!1));this.act(c);try{for(var u=a(this.slaves),d=u.next();!d.done;d=u.next())for(var l=d.value.checkBoundary(c),p=0;pa)&&(u[0]=undefined),(n<0||n>c)&&(u[1]=undefined),u},e}(l.BaseEl)},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return a};e.__esModule=!0,e.BaseEl=void 0;var o=r(38),a=r(0),s=r(56),c=r(2),u=function(){function t(t,e){this.el=null,this.spriteSize=[0,0],this.imgSize=[0,0],this.rate=1,this.index=1,this.captcha=t,this.option=e,this.id=e.fgItemData.id,this.rate=e.rate,e.index&&(this.index=e.index)}return t.prototype.init=function(t){this.createEl(t)},t.prototype.createEl=function(t){var e=this,r=this.option,i=r.wrapper,u=r.fgItemData,d=r.rate,l=r.spriteUrl,p=u.type,f=u.size_2d,h=u.init_pos,m=u.sprite_pos,g=u.img_url;if("slider"===p)this.captcha.asyncAction.action(function(r){if(!r()){var n=e.option.colorScheme,o=document.createElement("div");$(o).addClass("tc-fg-item"),(0,a.setCss)(o,{left:"".concat(h[0]*d,"px"),top:"".concat(h[1]*d,"px"),zIndex:String(e.index)});var u=document.createElement("img");if(u.alt="slider",u.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAcAgMAAABuexVFAAAACVBMVEUAAADCwsL9/f1P0DqbAAAAAXRSTlMAQObYZgAAAB1JREFUGNNjCGVgYGANABKhyMwoEHMBkIgaZWIwAdyJJQnaJRg5AAAAAElFTkSuQmCC",(0,c.isLowIE)()){$(o).addClass("tc-slider-ie"),u.className="tc-slider-bg unselectable";var l=document.createElement("div");l.className="tc-iconfont-btn",l.innerHTML="",(0,a.setCss)(l,{color:n}),o.appendChild(l)}else{$(o).addClass("tc-slider-normal"),(0,a.setCss)(o,{width:"".concat(f[0]*d,"px"),height:"".concat(f[1]*d,"px"),lineHeight:"".concat(f[1]*d,"px"),backgroundColor:n,boxShadow:"0 0 ".concat(10*d,"px ").concat(d,"px rgb(").concat((0,s.hexToRgb)(n)," / 0.5)")}),u.className="tc-slider-bg unselectable",(0,a.setCss)(u,{width:"".concat(f[0]/3.5*d,"px"),height:"".concat(f[0]/3.5*d/10*7,"px")});var p=document.createElement("i");p.className="tc-blank-text",p.innerText=" ",o.appendChild(p)}o.appendChild(u),i.appendChild(o),e.el=o,t(null)}});else if(l&&m)this.captcha.asyncAction.action(function(r){(0,o.loadImg)({id:e.id,src:l,onError:function(){r()||t("reason:load img ".concat(l," fail,pos:base-el/BaseEl/createEl/this.captcha.asyncAction.action/loadImg"))},onSuccess:function(o){if(!r()){var a=[o.width,o.height];e.spriteSize=a;var c=(0,s.getSpriteEl)({data:n(n({spriteSize:a},u),{sprite_pos:m}),rate:d,spriteUrl:l,zIndex:e.index});$(c).addClass("tc-fg-item"),e.el=c,i.appendChild(c),t(null)}}})});else if(g&&h){var v=document.createElement("img");this.el=v,this.captcha.asyncAction.action(function(r){(0,o.loadImg)({id:e.id,src:g+"",el:v,onError:function(){r()||t("reason:load img ".concat(g," fail,pos:base-el/BaseEl/createEl/this.captcha.asyncAction.action/loadImg"))},onSuccess:function(n){if(!r()){var o=n.width,s=n.height;e.imgSize=[o,s],(0,a.setCss)(v,{position:"absolute",width:"".concat(o*d,"px"),height:"".concat(s*d,"px"),left:"".concat(h[0]*d,"px"),top:"".concat(h[1]*d,"px"),zIndex:String(e.index)}),$(v).addClass("tc-fg-item"),i.appendChild(v),t(null)}}})})}else t("\u540e\u53f0\u53c2\u6570\u9519\u8bef")},t.prototype.resize=function(t){this.rate=t,"slider"===this.option.fgItemData.type?this.setSliderStyle(t):(this.setElBgStyle(t),this.setImgStyle(t))},t.prototype.setImgStyle=function(t){var e=this.option.fgItemData,r=e.img_url,n=e.init_pos;if(r&&n&&this.el){var o=i(this.imgSize,2),s=o[0],c=o[1];(0,a.setCss)(this.el,{width:"".concat(s*t,"px"),height:"".concat(c*t,"px"),left:"".concat(n[0]*t,"px"),top:"".concat(n[1]*t,"px")})}},t.prototype.setElBgStyle=function(t){var e=this.option,r=e.fgItemData,i=e.spriteUrl,o=r.sprite_pos;i&&o&&(0,s.setSpriteUrl)({el:this.el,data:n(n({spriteSize:this.spriteSize},r),{sprite_pos:o}),rate:t,spriteUrl:i})},t.prototype.setSliderStyle=function(t){var e=this.option.fgItemData,r=e.type,n=e.size_2d,i=e.init_pos;if("slider"===r&&this.el&&((0,a.setCss)(this.el,{left:"".concat(i[0]*t,"px"),top:"".concat(i[1]*t,"px")}),!(0,c.isLowIE)())){var o=this.option.colorScheme;(0,a.setCss)(this.el,{width:"".concat(n[0]*t,"px"),height:"".concat(n[1]*t,"px"),lineHeight:"".concat(n[1]*t,"px"),boxShadow:"0 0 ".concat(10*t,"px ").concat(t,"px rgb(").concat((0,s.hexToRgb)(o)," / 0.5)")}),(0,a.setCss)($(this.el).children("img")[0],{width:"".concat(n[0]/3.5*t,"px"),height:"".concat(n[0]/3.5*t/10*7,"px")})}},t}();e.BaseEl=u},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};e.__esModule=!0,e.ClickEl=void 0;var i=r(0),o=r(42),a=function(){function t(){this.marks=[],this.markClassName="tc-click-mark",this.markSize=24,this.standardWidth=360,this.getRate=function(){return 1}}return t.prototype.init=function(t,e){var r=this;try{this.clickCfg=t.showInfo.bg_elem_cfg.click_cfg,this.captcha=t.captcha,this.bgSize=t.bgSize,this.targetNode=$(t.operationDom),this.targetNode.addClass("pointer"),this.getRate=function(){return Number(r.targetNode.css("width").slice(0,-2))/r.standardWidth},this.captcha.userEvent.on("click",function(t){var e,i,a=t.target,s=r.getMarkIndex(a);if(-1!==s){try{for(var c=n(r.marks.splice(s,r.marks.length-s)),u=c.next();!u.done;u=c.next()){var d=u.value;$(d).remove()}}catch(p){e={error:p}}finally{try{u&&!u.done&&(i=c["return"])&&i.call(c)}finally{if(e)throw e.error}}r.addData()}else if(a===(0,o.get$Dom)().slideBg[0]||a.parentNode===(0,o.get$Dom)().slideBg[0]){var l=void 0;"inc_number"===r.clickCfg.mark_style?l=String(r.marks.length+1):"icon"===r.clickCfg.mark_style||(l=undefined),r.addNewMark(l,t.offsetX,t.offsetY),r.addData()}}),e()}catch(i){e("reason:".concat(i.message,";pos:click-el/ClickEl/init"))}},t.prototype.getMarkIndex=function(t){for(var e=t;e!==this.targetNode[0];){var r=$.inArray(e,this.marks);if(-1!==r)return r;e=e.parentNode}return-1},t.prototype.addNewMark=function(t,e,r){var n,o,a=$("")),s=this.getRate(),c=this.markSize*s;if((0,i.setCss)(a[0],{width:" ".concat(c,"px"),height:" ".concat(c,"px"),border:"".concat(c/10,"px solid #fff"),top:"".concat((r-c/2)/Number(null===(n=this.targetNode.css("height"))||void 0===n?void 0:n.slice(0,-2))*100,"%"),left:"".concat((e-c/2)/Number(null===(o=this.targetNode.css("width"))||void 0===o?void 0:o.slice(0,-2))*100,"%")}),"string"==typeof t){var u=$("").concat(t,"
"));u.attr("unselectable","on"),(0,i.setCss)(u[0],{fontSize:"".concat(c/1.5,"px"),lineHeight:"".concat(c,"px")}),a.append(u)}this.targetNode.append(a),this.marks.push(a[0])},t.prototype.addData=function(){var t,e,r=this.clickCfg.data_type;if(r)try{for(var i=n(r),o=i.next();!o.done;o=i.next()){if("DynAnswerType_POS"===o.value){for(var a=[],s=this.markSize,c=0;c0)&&!(n=o.next()).done;)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i=this.samplingRate)){var t=this.data,e=t.isVisible,r=t.isPreload,n=t.speedList,i={is_visible:e?1:0,is_preload:r?1:0,speed_list:n};(new Image).src="".concat(this.baseURL,"&data=").concat(JSON.stringify(i)),this.data.speedList=[]}},t}();e.Monitor=s},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r