PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/islandpc.ca/wp-content/plugins/complianz-gdpr/shepherd/tether/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/islandpc.ca/wp-content/plugins/complianz-gdpr/shepherd/tether/tether.min.js |
/*! tether 1.4.4 */ (function(a,b){if(typeof define==="function"&&define.amd){define([],b)}else{if(typeof exports==="object"){module.exports=b()}else{a.Tether=b()}}}(this,function(){var h=(function(){function W(aa,Y){for(var X=0;X<Y.length;X++){var Z=Y[X];Z.enumerable=Z.enumerable||false;Z.configurable=true;if("value" in Z){Z.writable=true}Object.defineProperty(aa,Z.key,Z)}}return function(Z,X,Y){if(X){W(Z.prototype,X)}if(Y){W(Z,Y)}return Z}})();function K(W,X){if(!(W instanceof X)){throw new TypeError("Cannot call a class as a function")}}var V=undefined;if(typeof V==="undefined"){V={modules:[]}}var G=null;function b(aa){var X=aa.getBoundingClientRect();var Z={};for(var W in X){Z[W]=X[W]}if(aa.ownerDocument!==document){var ab=aa.ownerDocument.defaultView.frameElement;if(ab){var Y=b(ab);Z.top+=Y.top;Z.bottom+=Y.top;Z.left+=Y.left;Z.right+=Y.left}}return Z}function Q(X){var ae=getComputedStyle(X)||{};var ad=ae.position;var af=[];if(ad==="fixed"){return[X]}var ag=X;while((ag=ag.parentNode)&&ag&&ag.nodeType===1){var W=undefined;try{W=getComputedStyle(ag)}catch(aa){}if(typeof W==="undefined"||W===null){af.push(ag);return af}var Y=W;var Z=Y.overflow;var ac=Y.overflowX;var ab=Y.overflowY;if(/(auto|scroll|overlay)/.test(Z+ab+ac)){if(ad!=="absolute"||["relative","absolute","fixed"].indexOf(W.position)>=0){af.push(ag)}}}af.push(X.ownerDocument.body);if(X.ownerDocument!==document){af.push(X.ownerDocument.defaultView)}return af}var g=(function(){var W=0;return function(){return ++W}})();var H={};var u=function u(){var W=G;if(!W||!document.body.contains(W)){W=document.createElement("div");W.setAttribute("data-tether-id",g());o(W.style,{top:0,left:0,position:"absolute"});document.body.appendChild(W);G=W}var X=W.getAttribute("data-tether-id");if(typeof H[X]==="undefined"){H[X]=b(W);e(function(){delete H[X]})}return H[X]};function R(){if(G){document.body.removeChild(G)}G=null}function k(X){var Z=undefined;if(X===document){Z=document;X=document.documentElement}else{Z=X.ownerDocument}var aa=Z.documentElement;var Y=b(X);var W=u();Y.top-=W.top;Y.left-=W.left;if(typeof Y.width==="undefined"){Y.width=document.body.scrollWidth-Y.left-Y.right}if(typeof Y.height==="undefined"){Y.height=document.body.scrollHeight-Y.top-Y.bottom}Y.top=Y.top-aa.clientTop;Y.left=Y.left-aa.clientLeft;Y.right=Z.body.clientWidth-Y.width-Y.left;Y.bottom=Z.body.clientHeight-Y.height-Y.top;return Y}function j(W){return W.offsetParent||document.documentElement}var C=null;function m(){if(C){return C}var X=document.createElement("div");X.style.width="100%";X.style.height="200px";var Y=document.createElement("div");o(Y.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"});Y.appendChild(X);document.body.appendChild(Y);var aa=X.offsetWidth;Y.style.overflow="scroll";var W=X.offsetWidth;if(aa===W){W=Y.clientWidth}document.body.removeChild(Y);var Z=aa-W;C={width:Z,height:Z};return C}function o(){var X=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var W=[];Array.prototype.push.apply(W,arguments);W.slice(1).forEach(function(Z){if(Z){for(var Y in Z){if(({}).hasOwnProperty.call(Z,Y)){X[Y]=Z[Y]}}}});return X}function r(Y,W){if(typeof Y.classList!=="undefined"){W.split(" ").forEach(function(aa){if(aa.trim()){Y.classList.remove(aa)}})}else{var Z=new RegExp("(^| )"+W.split(" ").join("|")+"( |$)","gi");var X=S(Y).replace(Z," ");w(Y,X)}}function y(Y,X){if(typeof Y.classList!=="undefined"){X.split(" ").forEach(function(Z){if(Z.trim()){Y.classList.add(Z)}})}else{r(Y,X);var W=S(Y)+(" "+X);w(Y,W)}}function L(Y,W){if(typeof Y.classList!=="undefined"){return Y.classList.contains(W)}var X=S(Y);return new RegExp("(^| )"+W+"( |$)","gi").test(X)}function S(W){if(W.className instanceof W.ownerDocument.defaultView.SVGAnimatedString){return W.className.baseVal}return W.className}function w(X,W){X.setAttribute("class",W)}function A(X,Y,W){W.forEach(function(Z){if(Y.indexOf(Z)===-1&&L(X,Z)){r(X,Z)}});Y.forEach(function(Z){if(!L(X,Z)){y(X,Z)}})}var E=[];var e=function e(W){E.push(W)};var n=function n(){var W=undefined;while(W=E.pop()){W()}};var i=(function(){function Y(){K(this,Y)}h(Y,[{key:"on",value:function W(ae,ad,ab){var ac=arguments.length<=3||arguments[3]===undefined?false:arguments[3];if(typeof this.bindings==="undefined"){this.bindings={}}if(typeof this.bindings[ae]==="undefined"){this.bindings[ae]=[]}this.bindings[ae].push({handler:ad,ctx:ab,once:ac})}},{key:"once",value:function Z(ad,ac,ab){this.on(ad,ac,ab,true)}},{key:"off",value:function aa(ad,ac){if(typeof this.bindings==="undefined"||typeof this.bindings[ad]==="undefined"){return}if(typeof ac==="undefined"){delete this.bindings[ad]}else{var ab=0;while(ab<this.bindings[ad].length){if(this.bindings[ad][ab].handler===ac){this.bindings[ad].splice(ab,1)}else{++ab}}}}},{key:"trigger",value:function X(ab){if(typeof this.bindings!=="undefined"&&this.bindings[ab]){var af=0;for(var ai=arguments.length,ag=Array(ai>1?ai-1:0),ac=1;ac<ai;ac++){ag[ac-1]=arguments[ac]}while(af<this.bindings[ab].length){var ah=this.bindings[ab][af];var aj=ah.handler;var ak=ah.ctx;var ae=ah.once;var ad=ak;if(typeof ad==="undefined"){ad=this}aj.apply(ad,ag);if(ae){this.bindings[ab].splice(af,1)}else{++af}}}}}]);return Y})();V.Utils={getActualBoundingClientRect:b,getScrollParents:Q,getBounds:k,getOffsetParent:j,extend:o,addClass:y,removeClass:r,hasClass:L,updateClasses:A,defer:e,flush:n,uniqueId:g,Evented:i,getScrollBarSize:m,removeUtilElements:R};"use strict";var I=(function(){function W(ab,aa){var ae=[];var X=true;var ad=false;var ac=undefined;try{for(var Z=ab[Symbol.iterator](),af;!(X=(af=Z.next()).done);X=true){ae.push(af.value);if(aa&&ae.length===aa){break}}}catch(Y){ad=true;ac=Y}finally{try{if(!X&&Z["return"]){Z["return"]()}}finally{if(ad){throw ac}}}return ae}return function(X,Y){if(Array.isArray(X)){return X}else{if(Symbol.iterator in Object(X)){return W(X,Y)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}})();var h=(function(){function W(aa,Y){for(var X=0;X<Y.length;X++){var Z=Y[X];Z.enumerable=Z.enumerable||false;Z.configurable=true;if("value" in Z){Z.writable=true}Object.defineProperty(aa,Z.key,Z)}}return function(Z,X,Y){if(X){W(Z.prototype,X)}if(Y){W(Z,Y)}return Z}})();var P=function O(ab,Z,Y){var ac=true;_function:while(ac){var X=ab,af=Z,W=Y;ac=false;if(X===null){X=Function.prototype}var aa=Object.getOwnPropertyDescriptor(X,af);if(aa===undefined){var ae=Object.getPrototypeOf(X);if(ae===null){return undefined}else{ab=ae;Z=af;Y=W;ac=true;aa=ae=undefined;continue _function}}else{if("value" in aa){return aa.value}else{var ad=aa.get;if(ad===undefined){return undefined}return ad.call(W)}}}};function K(W,X){if(!(W instanceof X)){throw new TypeError("Cannot call a class as a function")}}function B(X,W){if(typeof W!=="function"&&W!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof W)}X.prototype=Object.create(W&&W.prototype,{constructor:{value:X,enumerable:false,writable:true,configurable:true}});if(W){Object.setPrototypeOf?Object.setPrototypeOf(X,W):X.__proto__=W}}if(typeof V==="undefined"){throw new Error("You must include the utils.js file before tether.js")}var F=V.Utils;var Q=F.getScrollParents;var k=F.getBounds;var j=F.getOffsetParent;var o=F.extend;var y=F.addClass;var r=F.removeClass;var A=F.updateClasses;var e=F.defer;var n=F.flush;var m=F.getScrollBarSize;var R=F.removeUtilElements;function N(X,W){var Y=arguments.length<=2||arguments[2]===undefined?1:arguments[2];return X+Y>=W&&W>=X-Y}var x=(function(){if(typeof document==="undefined"){return""}var Z=document.createElement("div");var Y=["transform","WebkitTransform","OTransform","MozTransform","msTransform"];for(var X=0;X<Y.length;++X){var W=Y[X];if(Z.style[W]!==undefined){return W}}})();var p=[];var J=function J(){p.forEach(function(W){W.position(false)});n()};function M(){if(typeof performance==="object"&&typeof performance.now==="function"){return performance.now()}return +new Date()}(function(){var Y=null;var Z=null;var W=null;var X=function X(){if(typeof Z!=="undefined"&&Z>16){Z=Math.min(Z-16,250);W=setTimeout(X,250);return}if(typeof Y!=="undefined"&&M()-Y<10){return}if(W!=null){clearTimeout(W);W=null}Y=M();J();Z=M()-Y};if(typeof window!=="undefined"&&typeof window.addEventListener!=="undefined"){["resize","scroll","touchmove"].forEach(function(aa){window.addEventListener(aa,X)})}})();var v={center:"center",left:"right",right:"left"};var T={middle:"middle",top:"bottom",bottom:"top"};var z={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"};var l=function l(Z,W){var Y=Z.left;var X=Z.top;if(Y==="auto"){Y=v[W.left]}if(X==="auto"){X=T[W.top]}return{left:Y,top:X}};var a=function a(Y){var X=Y.left;var W=Y.top;if(typeof z[Y.left]!=="undefined"){X=z[Y.left]}if(typeof z[Y.top]!=="undefined"){W=z[Y.top]}return{left:X,top:W}};function D(){var X={top:0,left:0};for(var W=arguments.length,Z=Array(W),Y=0;Y<W;Y++){Z[Y]=arguments[Y]}Z.forEach(function(aa){var ac=aa.top;var ab=aa.left;if(typeof ac==="string"){ac=parseFloat(ac,10)}if(typeof ab==="string"){ab=parseFloat(ab,10)}X.top+=ac;X.left+=ab});return X}function t(X,W){if(typeof X.left==="string"&&X.left.indexOf("%")!==-1){X.left=parseFloat(X.left,10)/100*W.width}if(typeof X.top==="string"&&X.top.indexOf("%")!==-1){X.top=parseFloat(X.top,10)/100*W.height}return X}var d=function d(W){var Z=W.split(" ");var aa=I(Z,2);var Y=aa[0];var X=aa[1];return{top:Y,left:X}};var c=d;var s=(function(ai){B(ah,ai);function ah(aj){var ak=this;K(this,ah);P(Object.getPrototypeOf(ah.prototype),"constructor",this).call(this);this.position=this.position.bind(this);p.push(this);this.history=[];this.setOptions(aj,false);V.modules.forEach(function(al){if(typeof al.initialize!=="undefined"){al.initialize.call(ak)}});this.position()}h(ah,[{key:"getClass",value:function ag(){var ak=arguments.length<=0||arguments[0]===undefined?"":arguments[0];var aj=this.options.classes;if(typeof aj!=="undefined"&&aj[ak]){return this.options.classes[ak]}else{if(this.options.classPrefix){return this.options.classPrefix+"-"+ak}else{return ak}}}},{key:"setOptions",value:function ae(ak){var an=this;var aq=arguments.length<=1||arguments[1]===undefined?true:arguments[1];var ap={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=o(ap,ak);var aj=this.options;var al=aj.element;var ao=aj.target;var am=aj.targetModifier;this.element=al;this.target=ao;this.targetModifier=am;if(this.target==="viewport"){this.target=document.body;this.targetModifier="visible"}else{if(this.target==="scroll-handle"){this.target=document.body;this.targetModifier="scroll-handle"}}["element","target"].forEach(function(ar){if(typeof an[ar]==="undefined"){throw new Error("Tether Error: Both element and target must be defined")}if(typeof an[ar].jquery!=="undefined"){an[ar]=an[ar][0]}else{if(typeof an[ar]==="string"){an[ar]=document.querySelector(an[ar])}}});y(this.element,this.getClass("element"));if(!(this.options.addTargetClasses===false)){y(this.target,this.getClass("target"))}if(!this.options.attachment){throw new Error("Tether Error: You must provide an attachment")}this.targetAttachment=c(this.options.targetAttachment);this.attachment=c(this.options.attachment);this.offset=d(this.options.offset);this.targetOffset=d(this.options.targetOffset);if(typeof this.scrollParents!=="undefined"){this.disable()}if(this.targetModifier==="scroll-handle"){this.scrollParents=[this.target]}else{this.scrollParents=Q(this.target)}if(!(this.options.enabled===false)){this.enable(aq)}}},{key:"getTargetBounds",value:function Y(){if(typeof this.targetModifier!=="undefined"){if(this.targetModifier==="visible"){if(this.target===document.body){return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}}else{var aj=k(this.target);var an={height:aj.height,width:aj.width,top:aj.top,left:aj.left};an.height=Math.min(an.height,aj.height-(pageYOffset-aj.top));an.height=Math.min(an.height,aj.height-(aj.top+aj.height-(pageYOffset+innerHeight)));an.height=Math.min(innerHeight,an.height);an.height-=2;an.width=Math.min(an.width,aj.width-(pageXOffset-aj.left));an.width=Math.min(an.width,aj.width-(aj.left+aj.width-(pageXOffset+innerWidth)));an.width=Math.min(innerWidth,an.width);an.width-=2;if(an.top<pageYOffset){an.top=pageYOffset}if(an.left<pageXOffset){an.left=pageXOffset}return an}}else{if(this.targetModifier==="scroll-handle"){var aj=undefined;var ao=this.target;if(ao===document.body){ao=document.documentElement;aj={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}}else{aj=k(ao)}var ak=getComputedStyle(ao);var am=ao.scrollWidth>ao.clientWidth||[ak.overflow,ak.overflowX].indexOf("scroll")>=0||this.target!==document.body;var al=0;if(am){al=15}var ar=aj.height-parseFloat(ak.borderTopWidth)-parseFloat(ak.borderBottomWidth)-al;var an={width:15,height:ar*0.975*(ar/ao.scrollHeight),left:aj.left+aj.width-parseFloat(ak.borderLeftWidth)-15};var aq=0;if(ar<408&&this.target===document.body){aq=-0.00011*Math.pow(ar,2)-0.00727*ar+22.58}if(this.target!==document.body){an.height=Math.max(an.height,24)}var ap=this.target.scrollTop/(ao.scrollHeight-ar);an.top=ap*(ar-an.height-aq)+aj.top+parseFloat(ak.borderTopWidth);if(this.target===document.body){an.height=Math.max(an.height,24)}return an}}}else{return k(this.target)}}},{key:"clearCache",value:function ad(){this._cache={}}},{key:"cache",value:function W(ak,aj){if(typeof this._cache==="undefined"){this._cache={}}if(typeof this._cache[ak]==="undefined"){this._cache[ak]=aj.call(this)}return this._cache[ak]}},{key:"enable",value:function ab(){var aj=this;var ak=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!(this.options.addTargetClasses===false)){y(this.target,this.getClass("enabled"))}y(this.element,this.getClass("enabled"));this.enabled=true;this.scrollParents.forEach(function(al){if(al!==aj.target.ownerDocument){al.addEventListener("scroll",aj.position)}});if(ak){this.position()}}},{key:"disable",value:function Z(){var aj=this;r(this.target,this.getClass("enabled"));r(this.element,this.getClass("enabled"));this.enabled=false;if(typeof this.scrollParents!=="undefined"){this.scrollParents.forEach(function(ak){ak.removeEventListener("scroll",aj.position)})}}},{key:"destroy",value:function af(){var aj=this;this.disable();p.forEach(function(ak,al){if(ak===aj){p.splice(al,1)}});if(p.length===0){R()}}},{key:"updateAttachClasses",value:function ac(an,ak){var aj=this;an=an||this.attachment;ak=ak||this.targetAttachment;var am=["left","top","bottom","right","middle","center"];if(typeof this._addAttachClasses!=="undefined"&&this._addAttachClasses.length){this._addAttachClasses.splice(0,this._addAttachClasses.length)}if(typeof this._addAttachClasses==="undefined"){this._addAttachClasses=[]}var ao=this._addAttachClasses;if(an.top){ao.push(this.getClass("element-attached")+"-"+an.top)}if(an.left){ao.push(this.getClass("element-attached")+"-"+an.left)}if(ak.top){ao.push(this.getClass("target-attached")+"-"+ak.top)}if(ak.left){ao.push(this.getClass("target-attached")+"-"+ak.left)}var al=[];am.forEach(function(ap){al.push(aj.getClass("element-attached")+"-"+ap);al.push(aj.getClass("target-attached")+"-"+ap)});e(function(){if(!(typeof aj._addAttachClasses!=="undefined")){return}A(aj.element,aj._addAttachClasses,al);if(!(aj.options.addTargetClasses===false)){A(aj.target,aj._addAttachClasses,al)}delete aj._addAttachClasses})}},{key:"position",value:function aa(){var ax=this;var aD=arguments.length<=0||arguments[0]===undefined?true:arguments[0];if(!this.enabled){return}this.clearCache();var av=l(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,av);var aA=this.cache("element-bounds",function(){return k(ax.element)});var aw=aA.width;var ar=aA.height;if(aw===0&&ar===0&&typeof this.lastSize!=="undefined"){var ao=this.lastSize;aw=ao.width;ar=ao.height}else{this.lastSize={width:aw,height:ar}}var ak=this.cache("target-bounds",function(){return ax.getTargetBounds()});var aj=ak;var an=t(a(this.attachment),{width:aw,height:ar});var aC=t(a(av),aj);var ap=t(this.offset,{width:aw,height:ar});var at=t(this.targetOffset,aj);an=D(an,ap);aC=D(aC,at);var al=ak.left+aC.left-an.left;var aq=ak.top+aC.top-an.top;for(var aB=0;aB<V.modules.length;++aB){var ay=V.modules[aB];var aE=ay.position.call(this,{left:al,top:aq,targetAttachment:av,targetPos:ak,elementPos:aA,offset:an,targetOffset:aC,manualOffset:ap,manualTargetOffset:at,scrollbarSize:az,attachment:this.attachment});if(aE===false){return false}else{if(typeof aE==="undefined"||typeof aE!=="object"){continue}else{aq=aE.top;al=aE.left}}}var au={page:{top:aq,left:al},viewport:{top:aq-pageYOffset,bottom:pageYOffset-aq-ar+innerHeight,left:al-pageXOffset,right:pageXOffset-al-aw+innerWidth}};var aF=this.target.ownerDocument;var am=aF.defaultView;var az=undefined;if(am.innerHeight>aF.documentElement.clientHeight){az=this.cache("scrollbar-size",m);au.viewport.bottom-=az.height}if(am.innerWidth>aF.documentElement.clientWidth){az=this.cache("scrollbar-size",m);au.viewport.right-=az.width}if(["","static"].indexOf(aF.body.style.position)===-1||["","static"].indexOf(aF.body.parentElement.style.position)===-1){au.page.bottom=aF.body.scrollHeight-aq-ar;au.page.right=aF.body.scrollWidth-al-aw}if(typeof this.options.optimizations!=="undefined"&&this.options.optimizations.moveElement!==false&&!(typeof this.targetModifier!=="undefined")){(function(){var aK=ax.cache("target-offsetparent",function(){return j(ax.target)});var aG=ax.cache("target-offsetparent-bounds",function(){return k(aK)});var aJ=getComputedStyle(aK);var aH=aG;var aI={};["Top","Left","Bottom","Right"].forEach(function(aN){aI[aN.toLowerCase()]=parseFloat(aJ["border"+aN+"Width"])});aG.right=aF.body.scrollWidth-aG.left-aH.width+aI.right;aG.bottom=aF.body.scrollHeight-aG.top-aH.height+aI.bottom;if(au.page.top>=aG.top+aI.top&&au.page.bottom>=aG.bottom){if(au.page.left>=aG.left+aI.left&&au.page.right>=aG.right){var aL=aK.scrollTop;var aM=aK.scrollLeft;au.offset={top:au.page.top-aG.top+aL-aI.top,left:au.page.left-aG.left+aM-aI.left}}}})()}this.move(au);this.history.unshift(au);if(this.history.length>3){this.history.pop()}if(aD){n()}return true}},{key:"move",value:function X(av){var an=this;if(!(typeof this.element.parentNode!=="undefined")){return}var aw={};for(var at in av){aw[at]={};for(var ay in av[at]){var aA=false;for(var ap=0;ap<this.history.length;++ap){var ax=this.history[ap];if(typeof ax[at]!=="undefined"&&!N(ax[at][ay],av[at][ay])){aA=true;break}}if(!aA){aw[at][ay]=true}}}var aq={top:"",left:"",right:"",bottom:""};var ar=function ar(aG,aB){var aF=typeof an.options.optimizations!=="undefined";var aD=aF?an.options.optimizations.gpu:null;if(aD!==false){var aE=undefined,aH=undefined;if(aG.top){aq.top=0;aE=aB.top}else{aq.bottom=0;aE=-aB.bottom}if(aG.left){aq.left=0;aH=aB.left}else{aq.right=0;aH=-aB.right}if(window.matchMedia){var aC=window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches;if(!aC){aH=Math.round(aH);aE=Math.round(aE)}}aq[x]="translateX("+aH+"px) translateY("+aE+"px)";if(x!=="msTransform"){aq[x]+=" translateZ(0)"}}else{if(aG.top){aq.top=aB.top+"px"}else{aq.bottom=aB.bottom+"px"}if(aG.left){aq.left=aB.left+"px"}else{aq.right=aB.right+"px"}}};var au=false;if((aw.page.top||aw.page.bottom)&&(aw.page.left||aw.page.right)){aq.position="absolute";ar(aw.page,av.page)}else{if((aw.viewport.top||aw.viewport.bottom)&&(aw.viewport.left||aw.viewport.right)){aq.position="fixed";ar(aw.viewport,av.viewport)}else{if(typeof aw.offset!=="undefined"&&aw.offset.top&&aw.offset.left){(function(){aq.position="absolute";var aB=an.cache("target-offsetparent",function(){return j(an.target)});if(j(an.element)!==aB){e(function(){an.element.parentNode.removeChild(an.element);aB.appendChild(an.element)})}ar(aw.offset,av.offset);au=true})()}else{aq.position="absolute";ar({top:true,left:true},av.page)}}}if(!au){if(this.options.bodyElement){if(this.element.parentNode!==this.options.bodyElement){this.options.bodyElement.appendChild(this.element)}}else{var ak=true;var aj=this.element.parentNode;while(aj&&aj.nodeType===1&&aj.tagName!=="BODY"){if(getComputedStyle(aj).position!=="static"){ak=false;break}aj=aj.parentNode}if(!ak){this.element.parentNode.removeChild(this.element);this.element.ownerDocument.body.appendChild(this.element)}}}var ao={};var az=false;for(var ay in aq){var al=aq[ay];var am=this.element.style[ay];if(am!==al){az=true;ao[ay]=al}}if(az){e(function(){o(an.element.style,ao);an.trigger("repositioned")})}}}]);return ah})(i);s.modules=[];V.position=J;var f=o(s,V);"use strict";var I=(function(){function W(ab,aa){var ae=[];var X=true;var ad=false;var ac=undefined;try{for(var Z=ab[Symbol.iterator](),af;!(X=(af=Z.next()).done);X=true){ae.push(af.value);if(aa&&ae.length===aa){break}}}catch(Y){ad=true;ac=Y}finally{try{if(!X&&Z["return"]){Z["return"]()}}finally{if(ad){throw ac}}}return ae}return function(X,Y){if(Array.isArray(X)){return X}else{if(Symbol.iterator in Object(X)){return W(X,Y)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}})();var F=V.Utils;var k=F.getBounds;var o=F.extend;var A=F.updateClasses;var e=F.defer;var U=["left","top","right","bottom"];function q(W,X){if(X==="scrollParent"){X=W.scrollParents[0]}else{if(X==="window"){X=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]}}if(X===document){X=X.documentElement}if(typeof X.nodeType!=="undefined"){(function(){var aa=X;var Y=k(X);var ac=Y;var Z=getComputedStyle(X);X=[ac.left,ac.top,Y.width+ac.left,Y.height+ac.top];if(aa.ownerDocument!==document){var ab=aa.ownerDocument.defaultView;X[0]+=ab.pageXOffset;X[1]+=ab.pageYOffset;X[2]+=ab.pageXOffset;X[3]+=ab.pageYOffset}U.forEach(function(ae,ad){ae=ae[0].toUpperCase()+ae.substr(1);if(ae==="Top"||ae==="Left"){X[ad]+=parseFloat(Z["border"+ae+"Width"])}else{X[ad]-=parseFloat(Z["border"+ae+"Width"])}})})()}return X}V.modules.push({position:function J(ac){var ae=this;var ai=ac.top;var aa=ac.left;var af=ac.targetAttachment;if(!this.options.constraints){return true}var Z=this.cache("element-bounds",function(){return k(ae.element)});var al=Z.height;var X=Z.width;if(X===0&&al===0&&typeof this.lastSize!=="undefined"){var ak=this.lastSize;X=ak.width;al=ak.height}var ab=this.cache("target-bounds",function(){return ae.getTargetBounds()});var ad=ab.height;var ah=ab.width;var Y=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(ao){var an=ao.outOfBoundsClass;var am=ao.pinnedClass;if(an){Y.push(an)}if(am){Y.push(am)}});Y.forEach(function(am){["left","top","right","bottom"].forEach(function(an){Y.push(am+"-"+an)})});var W=[];var ag=o({},af);var aj=o({},this.attachment);this.options.constraints.forEach(function(ao){var au=ao.to;var at=ao.attachment;var an=ao.pin;if(typeof at==="undefined"){at=""}var aq=undefined,ap=undefined;if(at.indexOf(" ")>=0){var av=at.split(" ");var ax=I(av,2);ap=ax[0];aq=ax[1]}else{aq=ap=at}var am=q(ae,au);if(ap==="target"||ap==="both"){if(ai<am[1]&&ag.top==="top"){ai+=ad;ag.top="bottom"}if(ai+al>am[3]&&ag.top==="bottom"){ai-=ad;ag.top="top"}}if(ap==="together"){if(ag.top==="top"){if(aj.top==="bottom"&&ai<am[1]){ai+=ad;ag.top="bottom";ai+=al;aj.top="top"}else{if(aj.top==="top"&&ai+al>am[3]&&ai-(al-ad)>=am[1]){ai-=al-ad;ag.top="bottom";aj.top="bottom"}}}if(ag.top==="bottom"){if(aj.top==="top"&&ai+al>am[3]){ai-=ad;ag.top="top";ai-=al;aj.top="bottom"}else{if(aj.top==="bottom"&&ai<am[1]&&ai+(al*2-ad)<=am[3]){ai+=al-ad;ag.top="top";aj.top="top"}}}if(ag.top==="middle"){if(ai+al>am[3]&&aj.top==="top"){ai-=al;aj.top="bottom"}else{if(ai<am[1]&&aj.top==="bottom"){ai+=al;aj.top="top"}}}}if(aq==="target"||aq==="both"){if(aa<am[0]&&ag.left==="left"){aa+=ah;ag.left="right"}if(aa+X>am[2]&&ag.left==="right"){aa-=ah;ag.left="left"}}if(aq==="together"){if(aa<am[0]&&ag.left==="left"){if(aj.left==="right"){aa+=ah;ag.left="right";aa+=X;aj.left="left"}else{if(aj.left==="left"){aa+=ah;ag.left="right";aa-=X;aj.left="right"}}}else{if(aa+X>am[2]&&ag.left==="right"){if(aj.left==="left"){aa-=ah;ag.left="left";aa-=X;aj.left="right"}else{if(aj.left==="right"){aa-=ah;ag.left="left";aa+=X;aj.left="left"}}}else{if(ag.left==="center"){if(aa+X>am[2]&&aj.left==="left"){aa-=X;aj.left="right"}else{if(aa<am[0]&&aj.left==="right"){aa+=X;aj.left="left"}}}}}}if(ap==="element"||ap==="both"){if(ai<am[1]&&aj.top==="bottom"){ai+=al;aj.top="top"}if(ai+al>am[3]&&aj.top==="top"){ai-=al;aj.top="bottom"}}if(aq==="element"||aq==="both"){if(aa<am[0]){if(aj.left==="right"){aa+=X;aj.left="left"}else{if(aj.left==="center"){aa+=X/2;aj.left="left"}}}if(aa+X>am[2]){if(aj.left==="left"){aa-=X;aj.left="right"}else{if(aj.left==="center"){aa-=X/2;aj.left="right"}}}}if(typeof an==="string"){an=an.split(",").map(function(ay){return ay.trim()})}else{if(an===true){an=["top","left","right","bottom"]}}an=an||[];var aw=[];var ar=[];if(ai<am[1]){if(an.indexOf("top")>=0){ai=am[1];aw.push("top")}else{ar.push("top")}}if(ai+al>am[3]){if(an.indexOf("bottom")>=0){ai=am[3]-al;aw.push("bottom")}else{ar.push("bottom")}}if(aa<am[0]){if(an.indexOf("left")>=0){aa=am[0];aw.push("left")}else{ar.push("left")}}if(aa+X>am[2]){if(an.indexOf("right")>=0){aa=am[2]-X;aw.push("right")}else{ar.push("right")}}if(aw.length){(function(){var ay=undefined;if(typeof ae.options.pinnedClass!=="undefined"){ay=ae.options.pinnedClass}else{ay=ae.getClass("pinned")}W.push(ay);aw.forEach(function(az){W.push(ay+"-"+az)})})()}if(ar.length){(function(){var ay=undefined;if(typeof ae.options.outOfBoundsClass!=="undefined"){ay=ae.options.outOfBoundsClass}else{ay=ae.getClass("out-of-bounds")}W.push(ay);ar.forEach(function(az){W.push(ay+"-"+az)})})()}if(aw.indexOf("left")>=0||aw.indexOf("right")>=0){aj.left=ag.left=false}if(aw.indexOf("top")>=0||aw.indexOf("bottom")>=0){aj.top=ag.top=false}if(ag.top!==af.top||ag.left!==af.left||aj.top!==ae.attachment.top||aj.left!==ae.attachment.left){ae.updateAttachClasses(aj,ag);ae.trigger("update",{attachment:aj,targetAttachment:ag})}});e(function(){if(!(ae.options.addTargetClasses===false)){A(ae.target,W,Y)}A(ae.element,W,Y)});return{top:ai,left:aa}}});"use strict";var F=V.Utils;var k=F.getBounds;var A=F.updateClasses;var e=F.defer;V.modules.push({position:function J(ad){var ae=this;var af=ad.top;var ac=ad.left;var ab=this.cache("element-bounds",function(){return k(ae.element)});var ai=ab.height;var Y=ab.width;var ah=this.getTargetBounds();var W=af+ai;var ag=ac+Y;var aj=[];if(af<=ah.bottom&&W>=ah.top){["left","right"].forEach(function(ak){var al=ah[ak];if(al===ac||al===ag){aj.push(ak)}})}if(ac<=ah.right&&ag>=ah.left){["top","bottom"].forEach(function(ak){var al=ah[ak];if(al===af||al===W){aj.push(ak)}})}var aa=[];var X=[];var Z=["left","top","right","bottom"];aa.push(this.getClass("abutted"));Z.forEach(function(ak){aa.push(ae.getClass("abutted")+"-"+ak)});if(aj.length){X.push(this.getClass("abutted"))}aj.forEach(function(ak){X.push(ae.getClass("abutted")+"-"+ak)});e(function(){if(!(ae.options.addTargetClasses===false)){A(ae.target,X,aa)}A(ae.element,X,aa)});return true}});"use strict";var I=(function(){function W(ab,aa){var ae=[];var X=true;var ad=false;var ac=undefined;try{for(var Z=ab[Symbol.iterator](),af;!(X=(af=Z.next()).done);X=true){ae.push(af.value);if(aa&&ae.length===aa){break}}}catch(Y){ad=true;ac=Y}finally{try{if(!X&&Z["return"]){Z["return"]()}}finally{if(ad){throw ac}}}return ae}return function(X,Y){if(Array.isArray(X)){return X}else{if(Symbol.iterator in Object(X)){return W(X,Y)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}})();V.modules.push({position:function J(Z){var ac=Z.top;var ab=Z.left;if(!this.options.shift){return}var W=this.options.shift;if(typeof this.options.shift==="function"){W=this.options.shift.call(this,{top:ac,left:ab})}var aa=undefined,ad=undefined;if(typeof W==="string"){W=W.split(" ");W[1]=W[1]||W[0];var Y=W;var X=I(Y,2);aa=X[0];ad=X[1];aa=parseFloat(aa,10);ad=parseFloat(ad,10)}else{aa=W.top;ad=W.left}ac+=aa;ab+=ad;return{top:ac,left:ab}}});return f}));