Skip to content

Commit

Permalink
MediaEmbed: updated Instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed May 15, 2024
1 parent eafb249 commit 7b7c14b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Bundles/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static function getJS(): string
{
return '(function(){const r=[""],aa=[0,257],ba=["","t"],t=["","id"],ca={flags:2},u=[128,256],da=["","type"],v=[65431,257],ea=[65413,257],fa={flags:514},ha=[27395,257],ia=[65288,257],x={flags:3089},ja=["","album_id"],ka=["","track_id"],la=["","type","id"],ma=["","playlist_id"],na=["","user","type","id"],oa=["","channel","clip_id"],z={c:[],p:!1},A={B:1,COLOR:1,EMAIL:1,FONT:1,I:1,S:1,SIZE:1,U:1,URL:1},F=[function(a,b){let c={},d;for(d in b.b){let n=b.b[d];var h=!1;if(d in a.b){h=n.c;var g=d,m=a.b[d];C.j=g;for(let f=0;f<
h.length&&(m=h[f](m,g),!1!==m);++f);delete C.j;h=m}!1!==h?c[d]=h:n.p&&D(a)}E(a,c)}],qa=[function(a){return pa(a,/^[-0-9A-Za-z_]+$/)}],ra={c:[function(a){let b=/^(?=\\d)(?:(\\d+)h)?(?:(\\d+)m)?(?:(\\d+)s)?$/.exec(a);return b?3600*(b[1]||0)+60*(b[2]||0)+(+b[3]||0):/^(?:0|[1-9]\\d*)$/.test(a)?a:!1}],p:!1},sa={c:[function(a){return/^(?:0|[1-9]\\d*)$/.test(a)?a:!1}],p:!1},ta={r:A,flags:260,s:A},ua={r:A,flags:3460,s:A},va={c:qa,p:!1},wa={c:qa,p:!0},Aa={c:[function(a){{var b=H.urlConfig,c=C;let d=xa(a.replace(/^\\s+/,
"").replace(/\\s+$/,""));(b=ya(b,d))?(c&&(d.attrValue=a,c.add("err",b,d)),a=!1):a=za(d)}return a}],p:!0},Ba={e:ea,b:{},k:0,c:F,f:10,d:ca,g:5E3},J={e:u,b:{id:z},k:2,c:F,f:10,d:x,g:5E3},Ca={e:ia,b:{},k:1,c:F,f:10,d:ua,g:5E3},Da={e:v,b:{align:{c:[function(a){return a.toLowerCase()},function(a){return pa(a,/^(?:center|justify|left|right)$/)}],p:!1},colspan:sa,rowspan:sa},k:5,c:F,f:10,d:{r:{B:1,COLOR:1,EMAIL:1,FONT:1,I:1,S:1,SIZE:1,TD:1,TH:1,U:1,URL:1},flags:256,s:A},g:5E3},Ea=\'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="utf-8" indent="no"/><xsl:decimal-format decimal-separator="."/><xsl:param$qL_HIDE">Hide</xsl:param><xsl:param$qL_SHOW">Show</xsl:param><xsl:param$qL_SPOILER">Spoiler</xsl:param><xsl:param$qL_WROTE">wrote:</xsl:param><xsl:param$qMEDIAEMBED_THEME"/>$cB|I|LI|OL|S|TABLE|TR|U|UL|p"><xsl:element$q{translate(name(),\\\'ABEILORSTU\\\',\\\'abeilorstu\\\')}">$g</xsl:element>$f$cBANDCAMP"><$x$ibandcamp"$j$e400px"><$x$j$b100%"><$v$k"$o$y$mno"$j$d><$l$qsrc">//bandcamp.com/EmbeddedPlayer/size=large/minimal=true/<$t><$u$n@album_id">album=$a@album_id"/><$w$n@track_num">/t=$a@track_num"/></$w></$u><$r>track=$a@track_id"/></$r></$t><$w$n$MEDIAEMBED_THEME=\\\'dark\\\'">/bgcol=333333/linkcol=0f91ff</$w></$l></$v></$x></$x>$f$cCENTER"><div$jtext-align:center">$g</div>$f$cCODE"><pre data-s9e-livepreview-hash="" data-s9e-livepreview-onupdate="if(window[\\\'hljsLoader\\\'])window[\\\'hljsLoader\\\'][\\\'highlightBlocks\\\'](this)"><code><$w$n@lang"><$l$qclass">language-$a@lang"/></$l></$w>$g</code><script async="" crossorigin="anonymous" data-hljs-style="github" data-s9e-livepreview-onrender="if(window[\\\'hljsLoader\\\'])this.parentNode.removeChild(this)" integrity="sha384-E9ssooeJ4kPel3JD7st0BgS50OLWFEdg4ZOp8lYPy52ctQazOIV37TCvzV8l4cYG"$zhttps://cdn.jsdelivr.net/gh/s9e/hljs-loader@1.0.34/loader.min.js"/></pre>$f$cCOLOR"><$x$jcolor:{@color}">$g</$x>$f$cDAILYMOTION"><$x$idailymotion"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y$mno"$j$d><$l$qsrc">//www.dailymotion.com/embed/video/$a@id"/><$w$n@t">?start=$a@t"/></$w></$l></$v></$x></$x>$f$cEMAIL"><a href="mailto:{@email}">$g</a>$f$cEMOJI"><img alt="{.}" class="emoji" draggable="false"$zhttps://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/{@tseq}.svg"/>$f$cFACEBOOK"><$v$ifacebook"$k"$pstyle"$o$y onload="$h$mno"$jborder:0;height:360px;max-width:640px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/facebook.min.html#<$t><$u$n@user">$a@user"/>/<$t><$u$n@type=\\\'r\\\'or@type=\\\'v\\\'">video</$u><$r>post</$r></$t>s/<$t><$u$n@id">$a@id"/></$u><$r>pfbid$a@pfbid"/></$r></$t></$u><$u$n@id">$a@type"/>$a@id"/></$u><$r>pfbid$a@pfbid"/></$r></$t></$l></$v>$f$cFONT"><$x$jfont-family:{@font}">$g</$x>$f$cIMG"><img$z{@src}" title="{@title}" alt="{@alt}">$sheight|@width"/></img>$f$cINDIEGOGO"><$x$iindiegogo"$j$e222px"><$x$j$b200.45045%"><$v$k"$o$y$mno"$z//www.indiegogo.com/project/{@id}/embedded"$j$d/></$x></$x>$f$cINSTAGRAM"><$v$iinstagram"$k"$pstyle"$o$y onload="$h$mno"$jborder:0;height:542px;max-width:542px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/instagram.min.html#$a@id"/><$w$n$MEDIAEMBED_THEME=\\\'dark\\\'">#theme=dark</$w></$l></$v>$f$cKICKSTARTER"><$x$ikickstarter"><$t><$u$n@video"><$l$qstyle">$e640px</$l><$x$j$b56.25%"><$v$k"$o$y$mno"$z//www.kickstarter.com/projects/{@id}/widget/video.html"$j$d/></$x></$u><$r><$l$qstyle">$e220px</$l><$x$j$b190.909091%"><$v$k"$o$y$mno"$z//www.kickstarter.com/projects/{@id}/widget/card.html"$j$d/></$x></$r></$t></$x>$f$cLIST"><$t><$u$nnot(@type)"><ul>$g</ul></$u><$u$nstarts-with(@type,\\\'decimal\\\')or starts-with(@type,\\\'lower\\\')or starts-with(@type,\\\'upper\\\')"><ol$jlist-style-type:{@type}">$sstart"/>$g</ol></$u><$r><ul$jlist-style-type:{@type}">$g</ul></$r></$t>$f$cLIVELEAK"><$x$iliveleak"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y$mno"$z//www.liveleak.com/e/{@id}"$j$d/></$x></$x>$f$cQUOTE"><blockquote><$w$nnot(@author)"><$l$qclass">uncited</$l></$w><div><$w$n@author"><cite>$a@author"/><xsl:text> </xsl:text>$a$L_WROTE"/></cite></$w>$g</div></blockquote>$f$cSIZE"><$x$jfont-size:{@size}px">$g</$x>$f$cSOUNDCLOUD"><$v$isoundcloud"$k"$o$y$mno"><$l$qsrc">https://w.soundcloud.com/player/?url=<$t><$u$n@playlist_id">https%3A//api.soundcloud.com/playlists/$a@playlist_id"/>%3Fsecret_token%3D$a@secret_token"/></$u><$u$n@track_id">https%3A//api.soundcloud.com/tracks/$a@track_id"/>%3Fsecret_token%3D$a@secret_token"/></$u><$r><$w$nnot(contains(@id,\\\'://\\\'))">https%3A//soundcloud.com/</$w>$a@id"/></$r></$t></$l><$l$qstyle">border:0;height:<$t><$u$n@playlist_id or contains(@id,\\\'/sets/\\\')">450</$u><$r>166</$r></$t>px;max-width:900px;width:100%</$l></$v>$f$cSPOILER"><details class="spoiler"$popen"><summary class="spoiler-header" data-hide="{$L_HIDE}" data-show="{$L_SHOW}">$a$L_SPOILER"/><xsl:text> </xsl:text>$a@title"/></summary><div class="spoiler-content">$g</div></details>$f$cTD"><td>$scol$x|@row$x"/><$w$n@align"><$l$qstyle">text-align:$a@align"/></$l></$w>$g</td>$f$cTH"><th>$scol$x|@row$x"/><$w$n@align"><$l$qstyle">text-align:$a@align"/></$l></$w>$g</th>$f$cTWITCH"><$x$itwitch"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y onload="this.contentWindow.postMessage(\\\'\\\',\\\'*\\\')"$mno"$zhttps://s9e.github.io/$v/2/twitch.min.html#channel={@channel};clip_id={@clip_id};t={@t};video_id={@video_id}"$j$d/></$x></$x>$f$cTWITTER"><$v$itwitter" allow="autoplay *"$k"$pstyle"$o$y onload="$h$mno"$jborder:0;height:350px;max-width:550px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/twitter.min.html#$a@id"/><$w$n$MEDIAEMBED_THEME">#theme=$a$MEDIAEMBED_THEME"/></$w></$l></$v>$f$cURL"><a href="{@url}">$stitle"/>$g</a>$f$cVIMEO"><$x$ivimeo"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y$mno"$j$d><$l$qsrc">//player.vimeo.com/video/$a@id"/><$w$n@h">?h=$a@h"/></$w><$w$n@t">#t=$a@t"/></$w></$l></$v></$x></$x>$f$cVINE"><$x$ivine"$j$e480px"><$x$j$b100%"><$v$k"$o$y$mno"$zhttps://vine.co/v/{@id}/embed/simple?audio=1"$j$d/></$x></$x>$f$cWSHH"><$x$iwshh"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y$mno"$z//worldstarhiphop.com/embed/{@id}"$j$d/></$x></$x>$f$cYOUTUBE"><$x$iyoutube"$j$e640px"><$x$j$b56.25%"><$v$k"$o$y$mno"$jbackground:url(https://i.ytimg.com/vi/{@id}/hqdefault.jpg) 50% 50% / cover;$d><$l$qsrc">https://www.youtube.com/embed/$a@id"/><$t><$u$n@clip">?clip=$a@clip"/>&amp;clipt=$a@clipt"/></$u><$r><$w$n@list">?list=$a@list"/></$w><$w$n@t"><$t><$u$n@list">&amp;</$u><$r>?</$r></$t>start=$a@t"/></$w></$r></$t></$l></$v></$x></$x>$f$cbr"><br/>$f$ce|i|s"/></xsl:stylesheet>\'.replace(/\\$[a-z]/g,
"").replace(/\\s+$/,""));(b=ya(b,d))?(c&&(d.attrValue=a,c.add("err",b,d)),a=!1):a=za(d)}return a}],p:!0},Ba={e:ea,b:{},k:0,c:F,f:10,d:ca,g:5E3},J={e:u,b:{id:z},k:2,c:F,f:10,d:x,g:5E3},Ca={e:ia,b:{},k:1,c:F,f:10,d:ua,g:5E3},Da={e:v,b:{align:{c:[function(a){return a.toLowerCase()},function(a){return pa(a,/^(?:center|justify|left|right)$/)}],p:!1},colspan:sa,rowspan:sa},k:5,c:F,f:10,d:{r:{B:1,COLOR:1,EMAIL:1,FONT:1,I:1,S:1,SIZE:1,TD:1,TH:1,U:1,URL:1},flags:256,s:A},g:5E3},Ea=\'<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="utf-8" indent="no"/><xsl:decimal-format decimal-separator="."/><xsl:param$qL_HIDE">Hide</xsl:param><xsl:param$qL_SHOW">Show</xsl:param><xsl:param$qL_SPOILER">Spoiler</xsl:param><xsl:param$qL_WROTE">wrote:</xsl:param><xsl:param$qMEDIAEMBED_THEME"/>$cB|I|LI|OL|S|TABLE|TR|U|UL|p"><xsl:element$q{translate(name(),\\\'ABEILORSTU\\\',\\\'abeilorstu\\\')}">$g</xsl:element>$f$cBANDCAMP"><$y$ibandcamp"$j$e400px"><$y$j$b100%"><$v$k"$o$z$mno"$j$d><$l$qsrc">//bandcamp.com/EmbeddedPlayer/size=large/minimal=true/<$t><$u$n@album_id">album=$a@album_id"/><$w$n@track_num">/t=$a@track_num"/></$w></$u><$r>track=$a@track_id"/></$r></$t><$w$n$MEDIAEMBED_THEME=\\\'dark\\\'">/bgcol=333333/linkcol=0f91ff</$w></$l></$v></$y></$y>$f$cCENTER"><div$jtext-align:center">$g</div>$f$cCODE"><pre data-s9e-livepreview-hash="" data-s9e-livepreview-onupdate="if(window[\\\'hljsLoader\\\'])window[\\\'hljsLoader\\\'][\\\'highlightBlocks\\\'](this)"><code><$w$n@lang"><$l$qclass">language-$a@lang"/></$l></$w>$g</code><script async="" crossorigin="anonymous" data-hljs-style="github" data-s9e-livepreview-onrender="if(window[\\\'hljsLoader\\\'])this.parentNode.removeChild(this)" integrity="sha384-E9ssooeJ4kPel3JD7st0BgS50OLWFEdg4ZOp8lYPy52ctQazOIV37TCvzV8l4cYG" src="https://cdn.jsdelivr.net/gh/s9e/hljs-loader@1.0.34/loader.min.js"/></pre>$f$cCOLOR"><$y$jcolor:{@color}">$g</$y>$f$cDAILYMOTION"><$y$idailymotion"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z$mno"$j$d><$l$qsrc">//www.dailymotion.com/embed/video/$a@id"/><$w$n@t">?start=$a@t"/></$w></$l></$v></$y></$y>$f$cEMAIL"><a href="mailto:{@email}">$g</a>$f$cEMOJI"><img alt="{.}" class="emoji" draggable="false" src="https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/{@tseq}.svg"/>$f$cFACEBOOK"><$v$ifacebook"$k"$pstyle"$o$z onload="$h$mno"$jborder:0;height:360px;max-width:640px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/facebook.min.html#<$t><$u$n@user">$a@user"/>/<$t><$u$n@type=\\\'r\\\'or@type=\\\'v\\\'">video</$u><$r>post</$r></$t>s/<$t><$u$n@id">$a@id"/></$u><$r>pfbid$a@pfbid"/></$r></$t></$u><$u$n@id">$a@type"/>$a@id"/></$u><$r>pfbid$a@pfbid"/></$r></$t></$l></$v>$f$cFONT"><$y$jfont-family:{@font}">$g</$y>$f$cIMG"><img src="{@src}" title="{@title}" alt="{@alt}">$sheight|@width"/></img>$f$cINDIEGOGO"><$y$iindiegogo"$j$e222px"><$y$j$b200.45045%"><$v$k"$o$z$mno" src="//www.indiegogo.com/project/{@id}/embedded"$j$d/></$y></$y>$f$cINSTAGRAM"><$v$iinstagram"$k"$pstyle"$o$z onload="$h$mno"$jborder:0;height:542px;max-width:542px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/instagram.min.html#$a@id"/><$w$n$x>#theme=$a$x/></$w></$l></$v>$f$cKICKSTARTER"><$y$ikickstarter"><$t><$u$n@video"><$l$qstyle">$e640px</$l><$y$j$b56.25%"><$v$k"$o$z$mno" src="//www.kickstarter.com/projects/{@id}/widget/video.html"$j$d/></$y></$u><$r><$l$qstyle">$e220px</$l><$y$j$b190.909091%"><$v$k"$o$z$mno" src="//www.kickstarter.com/projects/{@id}/widget/card.html"$j$d/></$y></$r></$t></$y>$f$cLIST"><$t><$u$nnot(@type)"><ul>$g</ul></$u><$u$nstarts-with(@type,\\\'decimal\\\')or starts-with(@type,\\\'lower\\\')or starts-with(@type,\\\'upper\\\')"><ol$jlist-style-type:{@type}">$sstart"/>$g</ol></$u><$r><ul$jlist-style-type:{@type}">$g</ul></$r></$t>$f$cLIVELEAK"><$y$iliveleak"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z$mno" src="//www.liveleak.com/e/{@id}"$j$d/></$y></$y>$f$cQUOTE"><blockquote><$w$nnot(@author)"><$l$qclass">uncited</$l></$w><div><$w$n@author"><cite>$a@author"/><xsl:text> </xsl:text>$a$L_WROTE"/></cite></$w>$g</div></blockquote>$f$cSIZE"><$y$jfont-size:{@size}px">$g</$y>$f$cSOUNDCLOUD"><$v$isoundcloud"$k"$o$z$mno"><$l$qsrc">https://w.soundcloud.com/player/?url=<$t><$u$n@playlist_id">https%3A//api.soundcloud.com/playlists/$a@playlist_id"/>%3Fsecret_token%3D$a@secret_token"/></$u><$u$n@track_id">https%3A//api.soundcloud.com/tracks/$a@track_id"/>%3Fsecret_token%3D$a@secret_token"/></$u><$r><$w$nnot(contains(@id,\\\'://\\\'))">https%3A//soundcloud.com/</$w>$a@id"/></$r></$t></$l><$l$qstyle">border:0;height:<$t><$u$n@playlist_id or contains(@id,\\\'/sets/\\\')">450</$u><$r>166</$r></$t>px;max-width:900px;width:100%</$l></$v>$f$cSPOILER"><details class="spoiler"$popen"><summary class="spoiler-header" data-hide="{$L_HIDE}" data-show="{$L_SHOW}">$a$L_SPOILER"/><xsl:text> </xsl:text>$a@title"/></summary><div class="spoiler-content">$g</div></details>$f$cTD"><td>$scol$y|@row$y"/><$w$n@align"><$l$qstyle">text-align:$a@align"/></$l></$w>$g</td>$f$cTH"><th>$scol$y|@row$y"/><$w$n@align"><$l$qstyle">text-align:$a@align"/></$l></$w>$g</th>$f$cTWITCH"><$y$itwitch"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z onload="this.contentWindow.postMessage(\\\'\\\',\\\'*\\\')"$mno" src="https://s9e.github.io/$v/2/twitch.min.html#channel={@channel};clip_id={@clip_id};t={@t};video_id={@video_id}"$j$d/></$y></$y>$f$cTWITTER"><$v$itwitter" allow="autoplay *"$k"$pstyle"$o$z onload="$h$mno"$jborder:0;height:350px;max-width:550px;width:100%"><$l$qsrc">https://s9e.github.io/$v/2/twitter.min.html#$a@id"/><$w$n$x>#theme=$a$x/></$w></$l></$v>$f$cURL"><a href="{@url}">$stitle"/>$g</a>$f$cVIMEO"><$y$ivimeo"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z$mno"$j$d><$l$qsrc">//player.vimeo.com/video/$a@id"/><$w$n@h">?h=$a@h"/></$w><$w$n@t">#t=$a@t"/></$w></$l></$v></$y></$y>$f$cVINE"><$y$ivine"$j$e480px"><$y$j$b100%"><$v$k"$o$z$mno" src="https://vine.co/v/{@id}/embed/simple?audio=1"$j$d/></$y></$y>$f$cWSHH"><$y$iwshh"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z$mno" src="//worldstarhiphop.com/embed/{@id}"$j$d/></$y></$y>$f$cYOUTUBE"><$y$iyoutube"$j$e640px"><$y$j$b56.25%"><$v$k"$o$z$mno"$jbackground:url(https://i.ytimg.com/vi/{@id}/hqdefault.jpg) 50% 50% / cover;$d><$l$qsrc">https://www.youtube.com/embed/$a@id"/><$t><$u$n@clip">?clip=$a@clip"/>&amp;clipt=$a@clipt"/></$u><$r><$w$n@list">?list=$a@list"/></$w><$w$n@t"><$t><$u$n@list">&amp;</$u><$r>?</$r></$t>start=$a@t"/></$w></$r></$t></$l></$v></$y></$y>$f$cbr"><br/>$f$ce|i|s"/></xsl:stylesheet>\'.replace(/\\$[a-z]/g,
function(a){return{$a:\'<xsl:value-of select="\',$b:"display:block;overflow:hidden;position:relative;padding-bottom:",$c:\'<xsl:template match="\',$d:\'border:0;height:100%;left:0;position:absolute;width:100%"\',$e:"display:inline-block;width:100%;max-width:",$f:"</xsl:template>",$g:"<xsl:apply-templates/>",$h:"let c=new MessageChannel;c.port1.onmessage=e=&gt;this.style.height=e.data+\'px\';this.contentWindow.postMessage(\'s9e:init\',\'*\',[c.port2])\\"",$i:\' data-s9e-mediaembed="\',$j:\' style="\',$k:\' allowfullscreen="\',
$l:"xsl:attribute",$m:\' scrolling="\',$n:\' test="\',$o:\' loading="\',$p:\' data-s9e-livepreview-ignore-attrs="\',$q:\' name="\',$r:"xsl:otherwise",$s:\'<xsl:copy-of select="@\',$t:"xsl:choose",$u:"xsl:when",$v:"iframe",$w:"xsl:if",$x:"span",$y:\'lazy"\',$z:\' src="\'}[a]});let Fa={1788024165:function(){window.hljsLoader&&this.parentNode.removeChild(this)},1983388049:function(){window.hljsLoader&&window.hljsLoader.highlightBlocks(this)}};
$l:"xsl:attribute",$m:\' scrolling="\',$n:\' test="\',$o:\' loading="\',$p:\' data-s9e-livepreview-ignore-attrs="\',$q:\' name="\',$r:"xsl:otherwise",$s:\'<xsl:copy-of select="@\',$t:"xsl:choose",$u:"xsl:when",$v:"iframe",$w:"xsl:if",$x:\'$MEDIAEMBED_THEME"\',$y:"span",$z:\'lazy"\'}[a]});let Fa={1788024165:function(){window.hljsLoader&&this.parentNode.removeChild(this)},1983388049:function(){window.hljsLoader&&window.hljsLoader.highlightBlocks(this)}};
function Ga(a){var b=C;if(!/^(?:0|-?[1-9]\\d*)$/.test(a))return!1;a=parseInt(a,10);return 8>a?(b&&b.add("warn","Value outside of range, adjusted up to min value",{attrValue:a,min:8,max:36}),8):36<a?(b&&b.add("warn","Value outside of range, adjusted down to max value",{attrValue:a,min:8,max:36}),36):a}function pa(a,b){return b.test(a)?a:!1}
function xa(a){let b=/^(?:([a-z][-+.\\w]*):)?(?:\\/\\/(?:([^:\\/?#]*)(?::([^\\/?#]*)?)?@)?(?:(\\[[a-f\\d:]+\\]|[^:\\/?#]+)(?::(\\d*))?)?(?![^\\/?#]))?([^?#]*)(\\?[^#]*)?(#.*)?$/i.exec(a),c={};"scheme user pass host port path query fragment".split(" ").forEach(function(d,h){c[d]=""<b[h+1]?b[h+1]:""});c.scheme=c.scheme.toLowerCase();c.host=c.host.replace(/[\\u3002\\uff0e\\uff61]/g,".").replace(/\\.+$/g,"");/[^\\x00-\\x7F]/.test(c.host)&&"undefined"!==typeof punycode&&(c.host=punycode.toASCII(c.host));return c}
function za(a){let b="";""!==a.scheme&&(b+=a.scheme+":");""!==a.host?(b+="//",""!==a.user&&(b+=Ha(decodeURIComponent(a.user)),""!==a.pass&&(b+=":"+Ha(decodeURIComponent(a.pass))),b+="@"),b+=a.host,""!==a.port&&(b+=":"+a.port)):"file"===a.scheme&&(b+="//");let c=a.path+a.query+a.fragment;c=c.replace(/%.?[a-f]/g,function(d){return d.toUpperCase()},c);b+=Ia(c);a.scheme||(b=b.replace(/^([^\\/]*):/,"$1%3A"));return b}
Expand Down

0 comments on commit 7b7c14b

Please sign in to comment.