!function(){function t(t){QyObject.call(this);var e=this.currentSprite=(new PIXI.Iframe).setAnchorPoint(0,0).setSrc(t.webLink||"").setRadius(t.radius).setStroke(t.border),r=t.position;r&&e.setPosition(r.x,r.y);var i=t.size;i&&e.setSize(i.width,i.height);t.hiddenAtStart&&this.hide();this.zIndex=t.zIndex||0;e.qyobj=this}PIXI.Iframe=function(){PIXI.DisplayObjectContainer.call(this);this._width=400;this._height=250};PIXI.Iframe.prototype=Object.create(PIXI.DisplayObjectContainer.prototype);PIXI.Iframe.prototype.constructor=PIXI.Iframe;PIXI.Iframe.prototype.createDomElement=function(){var t="iframe",e=function(){this.domElement=this.rootElement=this.containerElement=document.createElement(t);this.dirty=!0};if(this.domElement){var r=this.domElement.tagName.toLowerCase();if(r!=t){var i=this.rootElement;e.call(this);i.parentNode&&i.parentNode.replaceChild(this.rootElement,i)}}else e.call(this)};PIXI.Iframe.prototype.removeFromParent=function(){var t=this.domElement&&this.domElement.parentNode;t&&t.removeChild(this.domElement)};PIXI.Iframe.prototype.setHidden=function(t){this.domElement&&(this.domElement.style.display=t?"none":"block");this.hidden_=t;this.visible=!t;this.dirty=!0;return this};PIXI.Iframe.prototype.setRadius=function(t){this._radius=t;this.dirty=!0;return this};PIXI.Iframe.prototype.getRadius=function(){return this._radius||0};PIXI.Iframe.prototype.setStroke=function(t){if(t){this._stroke={width:t.stroke||0,color:t.color||"#000000"};this.dirty=!0;return this}};PIXI.Iframe.prototype.getStroke=function(){return this._stroke||{width:0,color:"#000000"}};PIXI.Iframe.prototype.setSrc=function(t){this._src=t;this.dirty=!0;return this};PIXI.Iframe.prototype.getSrc=function(){return this._src};PIXI.Iframe.prototype._renderWebGL=function(){if(this.dirty){this.createDomElement();game.director&&game.director.domElement&&game.director.domElement.appendChild(this.domElement);var t=this.domElement;this.maskTarget_=!0;this.update();t.style.display=this.hidden_?"none":"block";t.setAttribute("src",this.getSrc());t.style["border-radius"]=this.getRadius()+"px";var e=this.getStroke();t.style.border=e.width+"px solid "+e.color;this.dirty=!1}};PIXI.Iframe.prototype._renderCanvas=PIXI.Iframe.prototype._renderWebGL;PIXI.Iframe.prototype.update=PIXI.Input.prototype.update;PIXI.Iframe.prototype.drawSizePosition=PIXI.Input.prototype.drawSizePosition;inherits(t,QyObject);t.prototype.setSrc=function(t){this.currentSprite&&this.currentSprite.setSrc(t)};window.QyIframe=t}();