"use strict";const e=new Set(["www.youtube.com","www.youtube-nocookie.com","www.youtube.ca","www.youtube.jp","www.youtube.com.br","www.youtube.co.uk","www.youtube.nl","www.youtube.pl","www.youtube.es","www.youtube.ie","www.youtube.fr","player.vimeo.com","play.vidyard.com","players.brightcove.net","bcove.video","player.cloudinary.com","fast.wistia.net","i1.adis.ws","s1.adis.ws","scormanywhere.secure.force.com","appiniummastertrial.secure.force.com","embed.app.guidde.com","cdnapisec.kaltura.com"]);exports.hasOnlyAllowedVideoIframes=function(t){if(t&&t.indexOf("<iframe")>-1){const o=(new DOMParser).parseFromString(t,"text/html"),r=Array.prototype.slice.call(o.querySelectorAll("iframe"));return r.length>0&&!r.some(t=>!function(t){const o=document.createElement("a");if(o.href=t,"https:"!==o.protocol)return!1;if("vimeo.com"===o.hostname){const e=/^\/showcase\/\d+\/embed$/;return null!==o.pathname.match(e)}if("www.my.kingdee-sites.com"===o.hostname)return!1;if(o.hostname.match(/^[\w-]+\.my\.kingdee-sites\.com$/))return!0;if(o.hostname.match(/^[\w-]+\.sandbox\.my\.kingdee-sites\.com$/))return!0;if("www.kingdee.force.com"===o.hostname)return!1;if(o.hostname.match(/^[\w-]+\.kingdee\.force\.com$/))return!0;if(o.hostname.match(/^[\w-]+\.sandbox\.kingdee\.force\.com$/))return!0;if("www.my.site.com"===o.hostname)return!1;if(o.hostname.match(/^[\w-]+\.my\.site\.com$/))return!0;if(o.hostname.match(/^[\w-]+\.sandbox\.my\.site\.com$/))return!0;return e.has(o.hostname)}(t.src))}return!1};
