![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/cwd/wp-content/plugins/bdthemes-element-pack/assets/js/modules/ |
!function(t,e){"use strict";t(window).on("elementor/frontend/init",(function(){var e,s=elementorModules.frontend.handlers.Base;e=s.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{type:"underline",multiline:!0}},onElementChange:debounce((function(t){-1!==t.indexOf("ep_notation_")&&this.run()}),400),settings:function(t){return this.getElementSettings("ep_notation_"+t)},run:function(){if("yes"==this.settings("active")){var e=this.$element,s="ep-"+this.getID(),n=this.getID(),i=this,o=this.settings("list"),r=!!t("body").hasClass("rtl");o.forEach(o=>{var h="",a="",c=this.getDefaultSettings();if("widget"==o.ep_notation_select_type&&(t(i.findElement(".elementor-widget-container > :not(style)").get(0)).attr("data-notation",s),h='[data-notation="'+s+'"]'),"custom"==o.ep_notation_select_type){var u=o.ep_notation_custom_selector;h=o.ep_notation_custom_selector&&u.length>1?'[data-id="'+n+'"] '+u:".-bdt-empty"}if("bracket"==o.ep_notation_type&&(a=(a=o.ep_notation_bracket_on).split(","),c.brackets=a),h.length>0){var l=document.querySelector(h);c.type=o.ep_notation_type,c.color=o.ep_notation_color||"#f23427",c.animationDuration=o.ep_notation_anim_duration.size||800,c.strokeWidth=o.ep_notation_stroke_width.size||1,c.rtl=r,t(h).length>0&&elementorFrontend.waypoint(t(e),(function(){const t="http://www.w3.org/2000/svg";class e{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function s(t,e,s,n,i){return{type:"path",ops:u(t,e,s,n,i)}}function n(t,e,n){const i=(t||[]).length;if(i>2){const s=[];for(let e=0;e<i-1;e++)s.push(...u(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&s.push(...u(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:s}}return 2===i?s(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function i(t,e,s,i,o){return function(t,e){return n(t,!0,e)}([[t,e],[t+s,e],[t+s,e+i],[t,e+i]],o)}function o(t,e,s,n,i){return function(t,e,s,n){const[i,o]=g(n.increment,t,e,n.rx,n.ry,1,n.increment*h(.1,h(.4,1,s),s),s);let r=d(i,null,s);if(!s.disableMultiStroke){const[i]=g(n.increment,t,e,n.rx,n.ry,1.5,0,s),o=d(i,null,s);r=r.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:r}}}(t,e,i,function(t,e,s){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.max(s.curveStepCount,s.curveStepCount/Math.sqrt(200)*n),o=2*Math.PI/i;let r=Math.abs(t/2),h=Math.abs(e/2);const c=1-s.curveFitting;return r+=a(r*c,s),h+=a(h*c,s),{increment:o,rx:r,ry:h}}(s,n,i)).opset}function r(t){return t.randomizer||(t.randomizer=new e(t.seed||0)),t.randomizer.next()}function h(t,e,s,n=1){return s.roughness*n*(r(s)*(e-t)+t)}function a(t,e,s=1){return h(-t,t,e,s)}function u(t,e,s,n,i,o=!1){const r=o?i.disableMultiStrokeFill:i.disableMultiStroke,h=f(t,e,s,n,i,!0,!1);if(r)return h;const a=f(t,e,s,n,i,!0,!0);return h.concat(a)}function f(t,e,s,n,i,o,h){const c=Math.pow(t-s,2)+Math.pow(e-n,2),u=Math.sqrt(c);let l=1;l=u<200?1:u>500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>c&&(f=u/10);const d=f/2,g=.2+.2*r(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,_=i.bowing*i.maxRandomnessOffset*(t-s)/200;p=a(p,i,l),_=a(_,i,l);const m=[],w=()=>a(d,i,l),v=()=>a(f,i,l);return o&&(h?m.push({op:"move",data:[t+w(),e+w()]}):m.push({op:"move",data:[t+a(f,i,l),e+a(f,i,l)]})),h?m.push({op:"bcurveTo",data:[p+t+(s-t)*g+w(),_+e+(n-e)*g+w(),p+t+2*(s-t)*g+w(),_+e+2*(n-e)*g+w(),s+w(),n+w()]}):m.push({op:"bcurveTo",data:[p+t+(s-t)*g+v(),_+e+(n-e)*g+v(),p+t+2*(s-t)*g+v(),_+e+2*(n-e)*g+v(),s+v(),n+v()]}),m}function d(t,e,s){const n=t.length,i=[];if(n>3){const o=[],r=1-s.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){const s=t[e];o[0]=[s[0],s[1]],o[1]=[s[0]+(r*t[e+1][0]-r*t[e-1][0])/6,s[1]+(r*t[e+1][1]-r*t[e-1][1])/6],o[2]=[t[e+1][0]+(r*t[e][0]-r*t[e+2][0])/6,t[e+1][1]+(r*t[e][1]-r*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=s.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+a(t,s),e[1]+a(t,s)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...u(t[0][0],t[0][1],t[1][0],t[1][1],s));return i}function g(t,e,s,n,i,o,r,h){const c=[],u=[],l=a(.5,h)-Math.PI/2;u.push([a(o,h)+e+.9*n*Math.cos(l-t),a(o,h)+s+.9*i*Math.sin(l-t)]);for(let r=l;r<2*Math.PI+l-.01;r+=t){const t=[a(o,h)+e+n*Math.cos(r),a(o,h)+s+i*Math.sin(r)];c.push(t),u.push(t)}return u.push([a(o,h)+e+n*Math.cos(l+2*Math.PI+.5*r),a(o,h)+s+i*Math.sin(l+2*Math.PI+.5*r)]),u.push([a(o,h)+e+.98*n*Math.cos(l+r),a(o,h)+s+.98*i*Math.sin(l+r)]),u.push([a(o,h)+e+.9*n*Math.cos(l+.5*r),a(o,h)+s+.9*i*Math.sin(l+.5*r)]),[u,c]}function p(t,e){return{maxRandomnessOffset:2,roughness:"highlight"===t?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==t,disableMultiStrokeFill:!1,seed:e}}function _(e,r,h,a,c,u){const l=[];let f=h.strokeWidth||2;const d=function(t){const e=t.padding;if(e||0===e){if("number"==typeof e)return[e,e,e,e];if(Array.isArray(e)){const t=e;if(t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}}return[5,5,5,5]}(h),g=void 0===h.animate||!!h.animate,_=h.iterations||2,m=h.rtl?1:0,w=p("single",u);switch(h.type){case"underline":{const t=r.y+r.h+d[2];for(let e=m;e<_+m;e++)e%2?l.push(s(r.x+r.w,t,r.x,t,w)):l.push(s(r.x,t,r.x+r.w,t,w));break}case"strike-through":{const t=r.y+r.h/2;for(let e=m;e<_+m;e++)e%2?l.push(s(r.x+r.w,t,r.x,t,w)):l.push(s(r.x,t,r.x+r.w,t,w));break}case"box":{const t=r.x-d[3],e=r.y-d[0],s=r.w+(d[1]+d[3]),n=r.h+(d[0]+d[2]);for(let o=0;o<_;o++)l.push(i(t,e,s,n,w));break}case"bracket":{const t=Array.isArray(h.brackets)?h.brackets:h.brackets?[h.brackets]:["right"],e=r.x-2*d[3],s=r.x+r.w+2*d[1],i=r.y-2*d[0],o=r.y+r.h+2*d[2];for(const h of t){let t;switch(h){case"bottom":t=[[e,r.y+r.h],[e,o],[s,o],[s,r.y+r.h]];break;case"top":t=[[e,r.y],[e,i],[s,i],[s,r.y]];break;case"left":t=[[r.x,i],[e,i],[e,o],[r.x,o]];break;case"right":t=[[r.x+r.w,i],[s,i],[s,o],[r.x+r.w,o]]}t&&l.push(n(t,!1,w))}break}case"crossed-off":{const t=r.x,e=r.y,n=t+r.w,i=e+r.h;for(let o=m;o<_+m;o++)o%2?l.push(s(n,i,t,e,w)):l.push(s(t,e,n,i,w));for(let o=m;o<_+m;o++)o%2?l.push(s(t,i,n,e,w)):l.push(s(n,e,t,i,w));break}case"circle":{const t=p("double",u),e=r.w+(d[1]+d[3]),s=r.h+(d[0]+d[2]),n=r.x-d[3]+e/2,i=r.y-d[0]+s/2,h=Math.floor(_/2),a=_-2*h;for(let r=0;r<h;r++)l.push(o(n,i,e,s,t));for(let t=0;t<a;t++)l.push(o(n,i,e,s,w));break}case"highlight":{const t=p("highlight",u);f=.95*r.h;const e=r.y+r.h/2;for(let n=m;n<_+m;n++)n%2?l.push(s(r.x+r.w,e,r.x,e,t)):l.push(s(r.x,e,r.x+r.w,e,t));break}}if(l.length){const s=function(t){const e=[];for(const s of t){let t="";for(const n of s.ops){const s=n.data;switch(n.op){case"move":t.trim()&&e.push(t.trim()),t=`M${s[0]} ${s[1]} `;break;case"bcurveTo":t+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":t+=`L${s[0]} ${s[1]} `}}t.trim()&&e.push(t.trim())}return e}(l),n=[],i=[];let o=0;const r=(t,e,s)=>t.setAttribute(e,s);for(const a of s){const s=document.createElementNS(t,"path");if(r(s,"d",a),r(s,"fill","none"),r(s,"stroke",h.color||"currentColor"),r(s,"stroke-width",""+f),g){const t=s.getTotalLength();n.push(t),o+=t}e.appendChild(s),i.push(s)}if(g){let t=0;for(let e=0;e<i.length;e++){const s=i[e],r=n[e],h=o?c*(r/o):0,u=a+t,l=s.style;l.strokeDashoffset=""+r,l.strokeDasharray=""+r,l.animation=`rough-notation-dash ${h}ms ease-out ${u}ms forwards`,t+=h}}}}class m{constructor(t,e){this._state="unattached",this._resizing=!1,this._seed=Math.floor(Math.random()*2**31),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=t,this._config=JSON.parse(JSON.stringify(e)),this.attach()}get animate(){return this._config.animate}set animate(t){this._config.animate=t}get animationDuration(){return this._config.animationDuration}set animationDuration(t){this._config.animationDuration=t}get iterations(){return this._config.iterations}set iterations(t){this._config.iterations=t}get color(){return this._config.color}set color(t){this._config.color!==t&&(this._config.color=t,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(t){this._config.strokeWidth!==t&&(this._config.strokeWidth=t,this.refresh())}get padding(){return this._config.padding}set padding(t){this._config.padding!==t&&(this._config.padding=t,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){!function(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}();const e=this._svg=document.createElementNS(t,"svg");e.setAttribute("class","rough-annotation");const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n="highlight"===this._config.type;if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const t=window.getComputedStyle(this._e).position;(!t||"static"===t)&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(t=>{for(const e of t)e.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const t=this.rects();if(t.length!==this._lastSizes.length)return!0;for(let e=0;e<t.length;e++)if(!this.isSameRect(t[e],this._lastSizes[e]))return!0}return!1}isSameRect(t,e){const s=(t,e)=>Math.round(t)===Math.round(e);return s(t.x,e.x)&&s(t.y,e.y)&&s(t.w,e.w)&&s(t.h,e.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(t,e){let s=this._config;e&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const n=this.rects();let i=0;n.forEach(t=>i+=t.w);const o=s.animationDuration||800;let r=0;for(let e=0;e<n.length;e++){const h=o*(n[e].w/i);_(t,n[e],s,r+this._animationDelay,h,this._seed),r+=h}this._lastSizes=n,this._state="showing"}rects(){const t=[];if(this._svg)if(this._config.multiline){const e=this._e.getClientRects();for(let s=0;s<e.length;s++)t.push(this.svgRect(this._svg,e[s]))}else t.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return t}svgRect(t,e){const s=t.getBoundingClientRect(),n=e;return{x:(n.x||n.left)-(s.x||s.left),y:(n.y||n.top)-(s.y||s.top),w:n.width,h:n.height}}}(function(t,e){return new m(t,e)})(l,c).show()}),{offset:o.ep_notation_waypoint_offset||"bottom-in-view"})}})}}}),elementorFrontend.hooks.addAction("frontend/element_ready/widget",(function(t){elementorFrontend.elementsHandler.addHandler(e,{$element:t})}))}))}(jQuery,window.elementorFrontend);