diff --git a/application/modules/default/models/Section.php b/application/modules/default/models/Section.php index 2971fd9e2..00c14c6f5 100644 --- a/application/modules/default/models/Section.php +++ b/application/modules/default/models/Section.php @@ -1,749 +1,750 @@ . * * Created: 13.09.2017 */ class Default_Model_Section { /** * @inheritDoc */ public function __construct() { } public function fetchSponsorHierarchy() { $sql = " SELECT section.name AS section_name, sponsor.sponsor_id,sponsor.name AS sponsor_name FROM section_sponsor JOIN sponsor ON sponsor.sponsor_id = section_sponsor.sponsor_id JOIN section ON section.section_id = section_sponsor.section_id "; $resultSet = $this->getAdapter()->fetchAll($sql); $optgroup = array(); foreach ($resultSet as $item) { $optgroup[$item['section_name']][$item['sponsor_id']] = $item['sponsor_name']; } return $optgroup; } public function fetchAllSections() { $sql = " SELECT section_id,name,description FROM section WHERE is_active = 1 and hide = 0 ORDER BY section.order "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchAllSectionsAndCategories() { $sql = " SELECT s.section_id ,s.name ,s.description ,c.project_category_id ,pc.title FROM section s JOIN section_category c on s.section_id = c.section_id join project_category pc on c.project_category_id = pc.project_category_id and pc.is_deleted = 0 and pc.is_active = 1 and pc.rgt=pc.lft+1 WHERE s.is_active = 1 order by s.name , pc.title "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchCategoriesWithPayout() { $sql = " select m.section_id,m.project_category_id,SUM(m.credits_section)/100 amount, pc.title from micro_payout m join project_category pc on m.project_category_id = pc.project_category_id where m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 group by project_category_id "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchCategoriesWithPlinged() { $sql = " select p.project_category_id, m.section_id,pc.title from project_plings pl inner join stat_projects p on pl.project_id = p.project_id and p.status = 100 inner join section_category m on p.project_category_id = m.project_category_id inner join project_category pc on m.project_category_id = pc.project_category_id where pl.is_deleted = 0 and pl.is_active = 1 group by p.project_category_id + order by pc.title asc "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } /** removed inner join supporters public function fetchCategoriesWithPlinged() { $sql = " select p.project_category_id, m.section_id,pc.title from project_plings pl inner join stat_projects p on pl.project_id = p.project_id and p.status = 100 inner join section_category m on p.project_category_id = m.project_category_id inner join project_category pc on m.project_category_id = pc.project_category_id inner join ( select distinct su2.member_id from section_support_paypements ss JOIN support su2 ON su2.id = ss.support_id where yearmonth = DATE_FORMAT(NOW()- INTERVAL 1 MONTH,'%Y%m') ) ss on pl.member_id = ss.member_id where pl.is_deleted = 0 and pl.is_active = 1 group by p.project_category_id "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } */ public function getNewActivePlingProduct($section_id=null) { if($section_id) { $sqlSection = " and m.section_id = ".$section_id; }else { $sqlSection = " "; } $sql = " select pl.member_id as pling_member_id ,pl.project_id ,p.title ,p.image_small ,p.laplace_score ,p.count_likes ,p.count_dislikes ,p.member_id ,p.profile_image_url ,p.username ,p.cat_title as catTitle ,( select max(created_at) from project_plings pt where pt.member_id = pl.member_id and pt.project_id=pl.project_id ) as created_at ,(select count(1) from project_plings pl2 where pl2.project_id = p.project_id and pl2.is_active = 1 and pl2.is_deleted = 0 ) as sum_plings from project_plings pl inner join stat_projects p on pl.project_id = p.project_id and p.status=100 inner join section_category m on p.project_category_id = m.project_category_id where pl.is_deleted = 0 and pl.is_active = 1 " .$sqlSection." order by created_at desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchTopProductsPerSection($section_id=null) { if($section_id) { $sqlSection = " and m.section_id = ".$section_id; }else { $sqlSection = " "; } $sql = " select p.project_id, p.member_id, p.project_category_id, p.title, p.description, p.created_at, p.changed_at, p.image_small, p.username, p.profile_image_url, p.cat_title, p.laplace_score, sum(m.credits_plings)/100 AS probably_payout_amount from stat_projects p,micro_payout m where p.project_id = m.project_id and m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') ".$sqlSection." and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 GROUP BY m.project_id order by sum(m.credits_plings) desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchTopPlingedProductsPerSection($section_id=null) { if($section_id) { $sqlSection = " and m.section_id = ".$section_id; }else { $sqlSection = " "; } // ignore if supporter still active // inner join ( // select distinct su2.member_id // from section_support_paypements ss // JOIN support su2 ON su2.id = ss.support_id // where yearmonth = DATE_FORMAT(NOW()- INTERVAL 1 MONTH,'%Y%m') // ) ss on pl.member_id = ss.member_id $sql = " select pl.project_id ,count(1) as sum_plings ,(select count(1) from project_plings pls where pls.project_id=pl.project_id and pls.is_deleted=0) as sum_plings_all ,p.title ,p.image_small ,p.laplace_score ,p.count_likes ,p.count_dislikes ,p.member_id ,p.profile_image_url ,p.username ,p.cat_title as catTitle ,p.project_changed_at ,p.version ,p.description ,p.package_names ,p.count_comments ,p.changed_at ,p.created_at from project_plings pl inner join stat_projects p on pl.project_id = p.project_id and p.status = 100 inner join section_category m on p.project_category_id = m.project_category_id where pl.is_deleted = 0 and pl.is_active = 1" .$sqlSection." group by pl.project_id order by sum_plings desc ,sum_plings_all desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } /** * ignore if supporter still active * inner join ( select distinct su2.member_id from section_support_paypements ss JOIN support su2 ON su2.id = ss.support_id where yearmonth = DATE_FORMAT(NOW()- INTERVAL 1 MONTH,'%Y%m') ) ss on pl.member_id = ss.member_id */ public function fetchTopPlingedProductsPerCategory($cat_id) { $sql = "select pl.project_id ,count(1) as sum_plings ,(select count(1) from project_plings pls where pls.project_id=pl.project_id and pls.is_deleted=0) as sum_plings_all ,p.title ,p.image_small ,p.laplace_score ,p.count_likes ,p.count_dislikes ,p.member_id ,p.profile_image_url ,p.username ,p.cat_title as catTitle ,p.project_changed_at ,p.version ,p.description ,p.package_names ,p.count_comments ,p.changed_at ,p.created_at from project_plings pl inner join stat_projects p on pl.project_id = p.project_id and p.status = 100 where pl.is_deleted = 0 and pl.is_active = 1 and p.project_category_id=:cat_id group by pl.project_id order by sum_plings desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql, array("cat_id"=>$cat_id)); return $resultSet; } public function fetchTopProductsPerCategory($cat_id) { $sql = "select p.project_id, p.member_id, p.project_category_id, p.title, p.description, p.created_at, p.changed_at, p.image_small, p.username, p.profile_image_url, p.cat_title, p.laplace_score, sum(m.credits_plings)/100 AS probably_payout_amount from stat_projects p,micro_payout m where p.project_id = m.project_id and m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 and p.project_category_id = :cat_id GROUP BY m.project_id order by sum(m.credits_plings) desc limit 20"; $resultSet = $this->getAdapter()->fetchAll($sql, array("cat_id"=>$cat_id)); return $resultSet; } public function fetchProbablyPayoutLastMonth($section_id) { if($section_id) { $sqlSection = " and s.section_id = ".$section_id; }else { $sqlSection = " "; } /* $sql = "select sum(probably_payout_amount) probably_payout_amount from member_dl_plings m, section s, section_category c where s.section_id = c.section_id and c.project_category_id = m.project_category_id ".$sqlSection." and m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 "; */ $sql = "SELECT s.sum_amount_payout AS probably_payout_amount FROM section_funding_stats s WHERE s.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') ".$sqlSection." "; $resultSet = $this->getAdapter()->fetchRow($sql); return $resultSet['probably_payout_amount']; } public function fetchTopPlingedCreatorPerSection($section_id=null) { if($section_id) { $sqlSection = " and mm.section_id = ".$section_id; }else { $sqlSection = " "; } /** * inner join ( select distinct su2.member_id from section_support_paypements ss JOIN support su2 ON su2.id = ss.support_id where yearmonth = DATE_FORMAT(NOW() - INTERVAL 1 MONTH,'%Y%m') ) ss on pl.member_id = ss.member_id */ $sql = "select p.member_id, count(1) as cnt, (select count(1) from project_plings pls , stat_projects ppp where pls.project_id=ppp.project_id and pls.is_deleted=0 and ppp.member_id=p.member_id) as sum_plings_all, m.username, m.profile_image_url, m.created_at from stat_projects p join project_plings pl on p.project_id = pl.project_id join member m on p.member_id = m.member_id inner join section_category mm on p.project_category_id = mm.project_category_id where p.status = 100 and pl.is_deleted = 0 and pl.is_active = 1 ".$sqlSection." group by p.member_id order by cnt desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } public function fetchTopCreatorPerSection($section_id=null) { if($section_id) { $sqlSection = " and s.section_id = ".$section_id; }else { $sqlSection = " "; } $sql = " select me.username, me.profile_image_url, m.member_id, sum(m.credits_plings)/100 probably_payout_amount from micro_payout m, section s, section_category c, member me where s.section_id = c.section_id and c.project_category_id = m.project_category_id AND me.member_id = m.member_id and m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') ".$sqlSection." and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 group by me.username,me.profile_image_url,m.member_id order by sum(m.credits_plings) desc limit 20 "; $resultSet = $this->getAdapter()->fetchAll($sql); return $resultSet; } /** removed inner join suppoerts public function fetchTopPlingedCreatorPerCategory($cat_id) { $sql = "select p.member_id, count(1) as cnt, (select count(1) from project_plings pls , stat_projects ppp where pls.project_id=ppp.project_id and pls.is_deleted=0 and ppp.member_id=p.member_id) as sum_plings_all, m.username, m.profile_image_url, m.created_at from stat_projects p join project_plings pl on p.project_id = pl.project_id join member m on p.member_id = m.member_id inner join ( select distinct su2.member_id from section_support_paypements ss JOIN support su2 ON su2.id = ss.support_id where yearmonth = DATE_FORMAT(NOW() - INTERVAL 1 MONTH,'%Y%m') ) ss on pl.member_id = ss.member_id where p.status = 100 and p.project_category_id=:cat_id and pl.is_deleted = 0 and pl.is_active = 1 group by p.member_id order by cnt desc limit 20"; $resultSet = $this->getAdapter()->fetchAll($sql,array("cat_id"=>$cat_id)); return $resultSet; } */ public function fetchTopPlingedCreatorPerCategory($cat_id) { $sql = "select p.member_id, count(1) as cnt, (select count(1) from project_plings pls , stat_projects ppp where pls.project_id=ppp.project_id and pls.is_deleted=0 and ppp.member_id=p.member_id) as sum_plings_all, m.username, m.profile_image_url, m.created_at from stat_projects p join project_plings pl on p.project_id = pl.project_id join member m on p.member_id = m.member_id where p.status = 100 and p.project_category_id=:cat_id and pl.is_deleted = 0 and pl.is_active = 1 group by p.member_id order by cnt desc limit 20"; $resultSet = $this->getAdapter()->fetchAll($sql,array("cat_id"=>$cat_id)); return $resultSet; } public function fetchTopCreatorPerCategory($cat_id) { $sql = "select p.username, p.profile_image_url, p.member_id, SUM(m.credits_plings)/100 probably_payout_amount from stat_projects p, micro_payout m where p.member_id = m.member_id and p.project_id = m.project_id and m.paypal_mail is not null and m.paypal_mail <> '' and (m.paypal_mail regexp '^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$') and m.yearmonth = DATE_FORMAT(CURRENT_DATE() - INTERVAL 1 MONTH, '%Y%m') and m.is_license_missing = 0 and m.is_source_missing=0 and m.is_pling_excluded = 0 and m.is_member_pling_excluded=0 and p.project_category_id = :cat_id group by p.username,p.profile_image_url,p.member_id order by sum(m.credits_plings) desc limit 20"; $resultSet = $this->getAdapter()->fetchAll($sql,array("cat_id"=>$cat_id)); return $resultSet; } public function fetchFirstSectionForStoreCategories($category_array) { $sql = " SELECT * FROM section JOIN section_category on section_category.section_id = section.section_id WHERE is_active = 1 AND section_category.project_category_id in (:category_id) LIMIT 1 "; $resultSet = $this->getAdapter()->fetchRow($sql, array('category_id' => $category_array)); return $resultSet; } public function fetchSectionForCategory($category_id) { $sql = " SELECT * FROM section JOIN section_category on section_category.section_id = section.section_id WHERE is_active = 1 AND section_category.project_category_id = :category_id LIMIT 1 "; $resultSet = $this->getAdapter()->fetchRow($sql, array('category_id' => $category_id)); return $resultSet; } public function isMemberSectionSupporter($section_id, $member_id) { $sql = " SELECT * FROM section_support JOIN section ON section.section_id = section_support.section_id JOIN support ON support.id = section_support.support_id AND support.status_id = 2 WHERE section_support.is_active = 1 AND section.section_id = :section_id AND support.member_id = :member_id LIMIT 1 "; $resultSet = $this->getAdapter()->fetchRow($sql, array('section_id' => $section_id, 'member_id' => $member_id)); if($resultSet) { return true; } return false; } public function wasMemberSectionSupporter($section_id, $member_id) { $sql = " SELECT * FROM section_support JOIN section ON section.section_id = section_support.section_id JOIN support ON support.id = section_support.support_id AND support.status_id >= 2 WHERE section_support.is_active = 1 AND section.section_id = :section_id AND support.member_id = :member_id LIMIT 1 "; $resultSet = $this->getAdapter()->fetchRow($sql, array('section_id' => $section_id, 'member_id' => $member_id)); if($resultSet) { return true; } return false; } /** * @return Zend_Db_Adapter_Abstract */ private function getAdapter() { return Zend_Db_Table::getDefaultAdapter(); } /** * @param int $yearmonth * * @return array */ public function fetchAllSectionStats($yearmonth = null, $isForAdmin = false) { $sql = "SELECT * FROM section_funding_stats p WHERE p.yearmonth = :yearmonth"; if(!$isForAdmin) { $sql .= " AND p.yearmonth >= DATE_FORMAT((NOW() - INTERVAL 1 MONTH),'%Y%m')"; } if(empty($yearmonth)) { $yearmonth = "DATE_FORMAT(NOW(),'%Y%m')"; } $resultSet = $this->getAdapter()->fetchAll($sql, array('yearmonth' => $yearmonth)); return $resultSet; } /** * @param int $yearmonth * * @return array */ public function fetchSectionStats($yearmonth = null, $section_id, $isForAdmin = false) { $sql = "SELECT * FROM section_funding_stats p WHERE p.yearmonth = :yearmonth AND p.section_id = :section_id"; if(!$isForAdmin) { $sql .= " AND p.yearmonth >= DATE_FORMAT((NOW()),'%Y%m')"; } if(empty($yearmonth)) { $yearmonth = "DATE_FORMAT(NOW(),'%Y%m')"; } $resultSet = $this->getAdapter()->fetchRow($sql, array('yearmonth' => $yearmonth, 'section_id' => $section_id)); return $resultSet; } /** * @param int $yearmonth * * @return array */ public function fetchSectionStatsLastMonth($section_id) { $sql = "SELECT * FROM section_funding_stats p WHERE p.yearmonth = DATE_FORMAT(NOW() - INTERVAL 1 MONTH,'%Y%m') AND p.section_id = :section_id"; $resultSet = $this->getAdapter()->fetchRow($sql, array('section_id' => $section_id)); return $resultSet; } /** * @param int $yearmonth * * @return array */ public function fetchSectionSupportStats($yearmonth = null, $section_id, $isForAdmin = false) { $sql = "SELECT p.yearmonth, p.section_id, SUM(p.tier) AS sum_support, null AS sum_sponsor, null AS sum_dls, null AS sum_dls_payout, null AS sum_amount_payout, null AS sum_amount ,(SELECT COUNT(1) AS num_supporter FROM ( SELECT COUNT(1) AS num_supporter,ss.section_id, su2.member_id FROM section_support_paypements ss JOIN support su2 ON su2.id = ss.support_id WHERE ss.yearmonth = :yearmonth GROUP BY ss.section_id, su2.member_id ) A WHERE A.section_id = p.section_id ) AS num_supporter FROM section_support_paypements p WHERE p.yearmonth = :yearmonth AND p.section_id = :section_id "; if(!$isForAdmin) { $sql .= " AND p.yearmonth >= DATE_FORMAT((NOW() - INTERVAL 1 MONTH),'%Y%m')"; } $sql .= " GROUP BY p.yearmonth, p.section_id"; if(empty($yearmonth)) { $yearmonth = "DATE_FORMAT(NOW(),'%Y%m')"; } $resultSet = $this->getAdapter()->fetchRow($sql, array('yearmonth' => $yearmonth, 'section_id' => $section_id)); return $resultSet; } public function fetchSection($section_id) { $sql = " SELECT * FROM section WHERE is_active = 1 and section_id = :section_id "; $resultSet = $this->getAdapter()->fetchRow($sql, array('section_id' => $section_id)); return $resultSet; } public function getAllDownloadYears($isForAdmin = false) { $sql = " SELECT SUBSTR(`member_dl_plings`.`yearmonth`,1,4) as year, MAX(`member_dl_plings`.`yearmonth`) as max_yearmonth FROM `member_dl_plings`"; if(!$isForAdmin) { $sql .= " WHERE SUBSTR(`member_dl_plings`.`yearmonth`,1,4) = DATE_FORMAT(NOW(),'%Y')"; } $sql .= " GROUP BY SUBSTR(`member_dl_plings`.`yearmonth`,1,4) ORDER BY SUBSTR(`member_dl_plings`.`yearmonth`,1,4) DESC "; $result = Zend_Db_Table::getDefaultAdapter()->query($sql); if ($result->rowCount() > 0) { return $result->fetchAll(); } else { return array(); } } public function getAllDownloadMonths($year, $isForAdmin = false) { $sql = " SELECT DISTINCT `member_dl_plings`.`yearmonth` FROM `member_dl_plings` WHERE SUBSTR(`member_dl_plings`.`yearmonth`,1,4) = :year "; if(!$isForAdmin) { $sql .= " AND `member_dl_plings`.`yearmonth` >= DATE_FORMAT((NOW() - INTERVAL 1 MONTH),'%Y%m')"; } $sql .= " ORDER BY `member_dl_plings`.`yearmonth` DESC"; $result = Zend_Db_Table::getDefaultAdapter()->query($sql, array('year' => $year)); if ($result->rowCount() > 0) { return $result->fetchAll(); } else { return array(); } } } \ No newline at end of file diff --git a/httpdocs/theme/react/assets/css/pling-section.css b/httpdocs/theme/react/assets/css/pling-section.css index 6dabfa544..3bed584fb 100644 --- a/httpdocs/theme/react/assets/css/pling-section.css +++ b/httpdocs/theme/react/assets/css/pling-section.css @@ -1 +1 @@ -#pling-section-content{width:100%;height:100%;display:flex;flex-flow:column nowrap}#pling-section-content a{cursor:pointer}#pling-section-content h1{text-align:center}#pling-section-content h2.focused{text-decoration:underline}#pling-section-content .pling-section-header{width:100%;height:300px;background-color:#f1f1f1;display:flex;justify-content:center;flex-flow:column nowrap;font-size:32px}#pling-section-content .pling-section-header>div{text-align:center}#pling-section-content .pling-section-header .score-container>span{font-size:small;font-weight:bold;padding:5px}#pling-section-content .pling-section-header .score-container .score-bar-container{width:300px;height:20px;background:#ccc;margin-bottom:5px;display:inline-block;font-size:small}#pling-section-content .pling-section-header .score-container .score-bar-container .score-bar{height:20px;background-color:#286090;border-bottom:0 solid #22537c;color:#fff}#pling-section-content .supporters-container>ul{list-style:none;padding:0}#pling-section-content .supporters-container>ul>li{margin:3px;display:inline-block;float:left}#pling-section-content .supporters-container>ul>li img{width:100px;height:100px}#pling-section-content .supporters-container>ul>li .username{background-color:#282C34;color:#fff;text-align:center;font-size:small;padding:3px;max-width:100px}#pling-section-content .pling-section-tabs{display:block;margin:0 auto}#pling-section-content .pling-section-detail{display:flex;width:1200px;margin:0 auto;flex-flow:row wrap}#pling-section-content .pling-section-detail .pling-section-detail-left{width:200px;text-align:right}#pling-section-content .pling-section-detail .pling-section-detail-left ul.pling-section-detail-ul{list-style-type:none;padding:0px}#pling-section-content .pling-section-detail .pling-section-detail-left ul.pling-section-detail-ul li{margin:5px}#pling-section-content .pling-section-detail .pling-section-detail-right{width:200px;margin:5px}#pling-section-content .pling-section-detail .pling-section-detail-right .btnSupporter{-moz-box-align:center;align-items:center;backface-visibility:hidden;background-color:#286090;border-radius:9999px;border:medium none;box-sizing:border-box;color:#fff !important;display:inline-flex;font-size:1.4rem !important;font-weight:800;height:unset;-moz-box-pack:center;justify-content:center;padding:.875rem 1.5rem;position:relative;pointer-events:unset;text-align:center;text-decoration:none;text-transform:none;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;-moz-user-select:none;white-space:unset;width:100%}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container{border-color:#e5e3dd;border-style:solid;border-width:1px;border-radius:4px;box-shadow:none;background-color:#fff;overflow:hidden;font-size:small;margin-top:10px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tiers{display:block;padding:1rem;margin:0rem;border-bottom:1px solid #e5e3dd;-moz-box-align:center;align-items:center;place-content:flex-start space-between;box-sizing:border-box;display:flex;flex-flow:row nowrap;-moz-box-pack:justify;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tiers h5{color:#241e12;font-family:aktiv-grotesk,sans-serif;font-weight:700 !important;margin:0px;position:relative;text-transform:uppercase;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;font-size:.875rem !important;line-height:1.5 !important}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container{box-sizing:border-box;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;padding:1rem;margin:0rem;border-bottom:1px solid #e5e3dd;text-align:center}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container span{display:inline-block}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul{list-style-type:none;padding:0px;display:inline-block}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul li{float:left;margin:2px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul li img{width:25px;height:25px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container .join{display:flex;justify-content:center;flex-flow:column}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container .join input.free-amount{opacity:.95;margin-top:-8px;color:#000;font-size:18px;width:40px;margin:0;margin-top:0px;margin-top:0;border:0;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:0px;border-bottom:1px solid #d0d0d0;padding:0;box-shadow:none;background:none}#pling-section-content .pling-section-detail .pling-section-detail-middle{flex:2 0px;padding:10px 20px;display:flex;justify-content:center}#pling-section-content .pling-section-detail .pling-section-detail-middle span.colorGrey{color:#ccc}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer{border:1px solid #ccc;border-radius:5px;background-image:url(../img/home/back3.jpg);padding:8px;margin:0px 5px 5px 0;width:320px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer div.title{font-size:11pt;font-weight:bold;border-bottom:1px solid #ccc;height:20px;padding-left:5px;margin-bottom:10px;color:#888888;font-size:9pt}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol{list-style:none;padding-left:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li{padding:5px 0px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow{padding-bottom:5px;padding-top:5px;font-size:small}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow figure img,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow figure img{width:50px;height:50px;border:1px solid #dbdbdb;-webkit-border-radius:999px;-moz-border-radius:999px;border-radius:999px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow .userinfo .userinfo-title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow .userinfo .userinfo-title{font-weight:bold}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow .userinfo ul.userinfo-detail li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow .userinfo ul.userinfo-detail li{padding:1px 2px;border:0px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow{padding-bottom:5px;padding-top:5px;font-size:small}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .rating,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .rating{width:60px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .time,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .time{font-size:smaller}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .cntComments,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .cntComments{font-size:smaller;display:block;padding-top:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .defaultProjectAvatar,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .defaultProjectAvatar{width:50px;height:50px;color:#3B658A;line-height:50px;text-align:center;background-color:#e8eaf6}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .productimg,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .productimg{width:50px;height:50px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-user,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-user{width:42px;height:42px;border-radius:100%}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .commenttext,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .commenttext{padding-left:20px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span{display:block;float:left;width:100%;line-height:14px;height:auto}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-title{color:#444444;font-size:10pt;font-weight:bold;display:block}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-date,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-date{padding-top:10px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-user,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-user{color:#666}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info{text-align:center;width:80%}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-number,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-number{width:100%;text-align:center;margin-bottom:0px;font-size:8pt}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-bar-container,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-bar-container{width:100%;height:10px;background:#ccc;margin-bottom:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-bar-container .score-bar,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-bar-container .score-bar{height:9px;background-color:#30c830;border-bottom:1px solid #2bb32b}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .info-row,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .info-row{display:block;width:100%;color:#777777}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .title{color:#444444;font-size:10pt;font-weight:bold}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .content,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .content{font-size:13px;line-height:1}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .info-row span.comment-counter,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .info-row span.comment-counter{float:right}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li+li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li+li{border-top:1px solid #ccc}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap{float:left;width:100%;padding:.3em;border:.35em solid #dee0e0;border-radius:5px;height:14em;margin-bottom:1em;background:white;width:115px;height:200px;margin-right:10px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;text-align:center;position:relative;padding-top:80px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap figure{padding:.25em;border:1px solid #dbdbdb;background:#f6f6f6;border-radius:999px;width:50px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap figure img{width:40px;height:40px;border:1px solid #dbdbdb;-webkit-border-radius:999px;-moz-border-radius:999px;border-radius:999px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap h3{font-size:13px;font-weight:normal;word-wrap:break-word;line-height:15px;padding:0;margin:0}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap span.small{font-size:13px;color:#444;position:absolute;bottom:5px;right:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap div.projecttitle{font-size:11px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap span.rank{font-size:14px;position:absolute;bottom:5px;left:5px;color:#444;font-weight:bold} \ No newline at end of file +#pling-section-content{width:100%;height:100%;display:flex;flex-flow:column nowrap}#pling-section-content a{cursor:pointer}#pling-section-content h1{text-align:center}#pling-section-content h2.focused{text-decoration:underline}#pling-section-content .pling-section-header{width:100%;height:300px;background-color:#f1f1f1;display:flex;justify-content:center;flex-flow:column nowrap;font-size:32px}#pling-section-content .pling-section-header>div{text-align:center}#pling-section-content .pling-section-header .score-container>span{font-size:small;font-weight:bold;padding:5px}#pling-section-content .pling-section-header .score-container .score-bar-container{width:300px;height:20px;background:#ccc;margin-bottom:5px;display:inline-block;font-size:small}#pling-section-content .pling-section-header .score-container .score-bar-container .score-bar{height:20px;background-color:#286090;border-bottom:0 solid #22537c;color:#fff}#pling-section-content .supporters-container>ul{list-style:none;padding:0}#pling-section-content .supporters-container>ul>li{margin:3px;display:inline-block;float:left}#pling-section-content .supporters-container>ul>li img{width:100px;height:100px}#pling-section-content .supporters-container>ul>li .username{background-color:#282C34;color:#fff;text-align:center;font-size:small;padding:3px;max-width:100px;white-space:nowrap}#pling-section-content .pling-section-tabs{display:block;margin:0 auto}#pling-section-content .pling-section-detail{display:flex;width:1200px;margin:0 auto;flex-flow:row wrap}#pling-section-content .pling-section-detail .pling-section-detail-left{width:200px;text-align:right}#pling-section-content .pling-section-detail .pling-section-detail-left ul.pling-section-detail-ul{list-style-type:none;padding:0px}#pling-section-content .pling-section-detail .pling-section-detail-left ul.pling-section-detail-ul li{margin:5px}#pling-section-content .pling-section-detail .pling-section-detail-right{width:200px;margin:5px}#pling-section-content .pling-section-detail .pling-section-detail-right .btnSupporter{-moz-box-align:center;align-items:center;backface-visibility:hidden;background-color:#286090;border-radius:9999px;border:medium none;box-sizing:border-box;color:#fff !important;display:inline-flex;font-size:1.4rem !important;font-weight:800;height:unset;-moz-box-pack:center;justify-content:center;padding:.875rem 1.5rem;position:relative;pointer-events:unset;text-align:center;text-decoration:none;text-transform:none;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;-moz-user-select:none;white-space:unset;width:100%}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container{border-color:#e5e3dd;border-style:solid;border-width:1px;border-radius:4px;box-shadow:none;background-color:#fff;overflow:hidden;font-size:small;margin-top:10px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tiers{display:block;padding:1rem;margin:0rem;border-bottom:1px solid #e5e3dd;-moz-box-align:center;align-items:center;place-content:flex-start space-between;box-sizing:border-box;display:flex;flex-flow:row nowrap;-moz-box-pack:justify;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tiers h5{color:#241e12;font-family:aktiv-grotesk,sans-serif;font-weight:700 !important;margin:0px;position:relative;text-transform:uppercase;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;font-size:.875rem !important;line-height:1.5 !important}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container{box-sizing:border-box;transition:all 300ms cubic-bezier(.19, 1, .22, 1) 0s;padding:1rem;margin:0rem;border-bottom:1px solid #e5e3dd;text-align:center}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container span{display:inline-block}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul{list-style-type:none;padding:0px;display:inline-block}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul li{float:left;margin:2px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container ul li img{width:25px;height:25px}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container .join{display:flex;justify-content:center;flex-flow:column}#pling-section-content .pling-section-detail .pling-section-detail-right .support-container .tier-container .join input.free-amount{opacity:.95;margin-top:-8px;color:#000;font-size:18px;width:40px;margin:0;margin-top:0px;margin-top:0;border:0;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:0px;border-bottom:1px solid #d0d0d0;padding:0;box-shadow:none;background:none}#pling-section-content .pling-section-detail .pling-section-detail-middle{flex:2 0px;padding:10px 20px;display:flex;justify-content:center}#pling-section-content .pling-section-detail .pling-section-detail-middle span.colorGrey{color:#ccc}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer{border:1px solid #ccc;border-radius:5px;background-image:url(../img/home/back3.jpg);padding:8px;margin:0px 5px 5px 0;width:320px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer div.title{font-size:11pt;font-weight:bold;border-bottom:1px solid #ccc;height:20px;padding-left:5px;margin-bottom:10px;color:#888888;font-size:9pt}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol{list-style:none;padding-left:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li{padding:5px 0px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow{padding-bottom:5px;padding-top:5px;font-size:small}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow figure img,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow figure img{width:50px;height:50px;border:1px solid #dbdbdb;-webkit-border-radius:999px;-moz-border-radius:999px;border-radius:999px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow .userinfo .userinfo-title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow .userinfo .userinfo-title{font-weight:bold}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .creatorrow .userinfo ul.userinfo-detail li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .creatorrow .userinfo ul.userinfo-detail li{padding:1px 2px;border:0px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow{padding-bottom:5px;padding-top:5px;font-size:small}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .rating,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .rating{width:60px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .time,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .time{font-size:smaller}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .cntComments,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .cntComments{font-size:smaller;display:block;padding-top:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .defaultProjectAvatar,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .defaultProjectAvatar{width:50px;height:50px;color:#3B658A;line-height:50px;text-align:center;background-color:#e8eaf6}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .productimg,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .productimg{width:50px;height:50px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-user,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-user{width:42px;height:42px;border-radius:100%}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .commenttext,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .commenttext{padding-left:20px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span{display:block;float:left;width:100%;line-height:14px;height:auto}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-title{color:#444444;font-size:10pt;font-weight:bold;display:block}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-date,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-date{padding-top:10px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .product-info span.product-info-user,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .product-info span.product-info-user{color:#666}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info{text-align:center;width:80%}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-number,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-number{width:100%;text-align:center;margin-bottom:0px;font-size:8pt}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-bar-container,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-bar-container{width:100%;height:10px;background:#ccc;margin-bottom:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .productrow .score-info .score-bar-container .score-bar,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .productrow .score-info .score-bar-container .score-bar{height:9px;background-color:#30c830;border-bottom:1px solid #2bb32b}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .info-row,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .info-row{display:block;width:100%;color:#777777}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .title,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .title{color:#444444;font-size:10pt;font-weight:bold}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .content,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .content{font-size:13px;line-height:1}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li .info-row span.comment-counter,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li .info-row span.comment-counter{float:right}#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ul li+li,#pling-section-content .pling-section-detail .pling-section-detail-middle .panelContainer ol li+li{border-top:1px solid #ccc}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap{float:left;width:100%;padding:.3em;border:.35em solid #dee0e0;border-radius:5px;height:14em;margin-bottom:1em;background:white;width:115px;height:200px;margin-right:10px;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;text-align:center;position:relative;padding-top:80px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap figure{padding:.25em;border:1px solid #dbdbdb;background:#f6f6f6;border-radius:999px;width:50px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap figure img{width:40px;height:40px;border:1px solid #dbdbdb;-webkit-border-radius:999px;-moz-border-radius:999px;border-radius:999px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap h3{font-size:13px;font-weight:normal;word-wrap:break-word;line-height:15px;padding:0;margin:0}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap span.small{font-size:13px;color:#444;position:absolute;bottom:5px;right:5px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap div.projecttitle{font-size:11px}#pling-section-content .pling-section-detail .pling-section-detail-middle #recentplinged-list .product-wrap span.rank{font-size:14px;position:absolute;bottom:5px;left:5px;color:#444;font-weight:bold} \ No newline at end of file diff --git a/httpdocs/theme/react/assets/less/pling-section.less b/httpdocs/theme/react/assets/less/pling-section.less index 8434ad655..dc6898b97 100644 --- a/httpdocs/theme/react/assets/less/pling-section.less +++ b/httpdocs/theme/react/assets/less/pling-section.less @@ -1,513 +1,514 @@ // out: ../css/pling-section.css, sourcemap: true, compress: true #pling-section-content { width: 100%; height: 100%; display: flex; flex-flow: column nowrap; a{ cursor: pointer; } h1{ text-align: center; } h2{ &.focused { text-decoration: underline; } } .pling-section-header{ width: 100%; height: 300px; background-color: #f1f1f1; display: flex; justify-content: center; flex-flow: column nowrap; font-size: 32px; & > div{ text-align: center; } .score-container { &>span{ font-size: small; font-weight: bold; padding:5px; } .score-bar-container { width: 300px; height: 20px; background: #ccc; margin-bottom: 5px; display: inline-block; font-size: small; .score-bar { height: 20px; background-color: #286090; border-bottom: 0px solid darken( #286090,5%); color:#fff; } } } } .supporters-container{ & > ul{ list-style: none; padding: 0; &>li{ margin: 3px; display: inline-block; float: left; img{ width: 100px; height: 100px; } .username{ background-color: #282C34; color: #fff; text-align: center; font-size: small; padding:3px; max-width: 100px; + white-space: nowrap; } } } } .pling-section-tabs{ display: block; margin: 0 auto; } .pling-section-detail { display: flex; width: 1200px; margin: 0 auto; flex-flow: row wrap; .pling-section-detail-left { width: 200px; text-align: right; ul.pling-section-detail-ul{ list-style-type: none; padding: 0px; li{ margin: 5px; } } } .pling-section-detail-right { width: 200px; margin: 5px; .btnSupporter{ -moz-box-align: center; align-items: center; backface-visibility: hidden; background-color: #286090; border-radius: 9999px; border: medium none; box-sizing: border-box; color: rgb(255, 255, 255) !important; display: inline-flex; font-size: 1.4rem !important; font-weight: 800; height: unset; -moz-box-pack: center; justify-content: center; padding: 0.875rem 1.5rem; position: relative; pointer-events: unset; text-align: center; text-decoration: none; text-transform: none; transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s; -moz-user-select: none; white-space: unset; width: 100%; } .support-container{ border-color: rgb(229, 227, 221); border-style: solid; border-width: 1px; border-radius: 4px; box-shadow: none; background-color: rgb(255, 255, 255); overflow: hidden; font-size: small; margin-top: 10px; .tiers{ box-sizing: border-box; display: block; transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s; padding: 1rem; margin: 0rem; border-bottom: 1px solid rgb(229, 227, 221); -moz-box-align: center; align-items: center; place-content: flex-start space-between; box-sizing: border-box; display: flex; flex-flow: row nowrap; -moz-box-pack: justify; transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s; h5{ color: rgb(36, 30, 18); font-family: aktiv-grotesk, sans-serif; font-weight: 700 !important; margin: 0px; position: relative; text-transform: uppercase; transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s; font-size: 0.875rem !important; line-height: 1.5 !important; } } .tier-container{ box-sizing: border-box; transition: all 300ms cubic-bezier(0.19, 1, 0.22, 1) 0s; padding: 1rem; margin: 0rem; border-bottom: 1px solid rgb(229, 227, 221); text-align: center; span{ display: inline-block; } ul{ list-style-type: none; padding:0px; display: inline-block; li{ float: left; margin:2px; img{ width: 25px; height:25px; } } } .join{ display: flex; justify-content: center; flex-flow: column; input.free-amount{ opacity: .95; margin-top: -8px; color: #000; font-size: 18px; width: 40px; margin: 0; margin-top: 0px; margin-top: 0px; margin-top: 0; border: 0; border-bottom-color: currentcolor; border-bottom-style: none; border-bottom-width: 0px; border-bottom-color: currentcolor; border-bottom-style: none; border-bottom-width: 0px; border-bottom: 1px solid #d0d0d0; padding: 0; box-shadow: none; background: none; } } } } } .pling-section-detail-middle { flex: 2 0px; padding: 10px 20px; display: flex; justify-content: center; span.colorGrey{ color: #ccc; } .panelContainer{ border: 1px solid #ccc; border-radius: 5px; background-image: url(../img/home/back3.jpg); padding: 8px; margin: 0px 5px 5px 0; width:320px; div.title{ color: #888888; font-size:11pt; font-weight: bold; border-bottom: 1px solid #ccc; height: 20px; padding-left: 5px; margin-bottom: 10px; color: #888888; font-size: 9pt; } ul, ol { list-style: none; padding-left: 5px; li { padding: 5px 0px; .creatorrow{ padding-bottom: 5px; padding-top: 5px; font-size: small; figure img { width: 50px; height: 50px; border: 1px solid #dbdbdb; -webkit-border-radius: 999px; -moz-border-radius: 999px; border-radius: 999px; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } .userinfo{ .userinfo-title{ font-weight: bold; } ul.userinfo-detail{ li{ padding:1px 2px; border: 0px; } } } } .productrow { padding-bottom: 5px; padding-top: 5px; font-size: small; .rating { width: 60px; } .time { font-size: smaller; } .cntComments { font-size: smaller; display: block; padding-top: 5px; } .defaultProjectAvatar{ width: 50px; height: 50px; color: #3B658A; line-height: 50px; text-align: center; background-color: #e8eaf6; } .productimg { width:50px; height:50px; } .product-user{ width: 42px; height: 42px; border-radius: 100%; } .commenttext{ padding-left: 20px; } .product-info { span { display: block; float: left; width: 100%; line-height: 14px; height: auto; &.product-info-title { color: #444444; font-size: 10pt; font-weight: bold; display: block; } &.product-info-date{ padding-top: 10px; } &.product-info-user { color: #666; } } } .score-info { text-align: center; width: 80%; .score-number { width: 100%; text-align: center; margin-bottom: 0px; font-size: 8pt; } .score-bar-container { width: 100%; height: 10px; background: #ccc; margin-bottom: 5px; .score-bar { height: 9px; background-color: #30c830; border-bottom: 1px solid darken( #30c830,5%); } } } } .title, .info-row { display: block; width: 100%; color: #777777; } .title { color: #444444; font-size: 10pt; font-weight: bold; } .content { font-size: 13px; line-height: 1; } .info-row { /*overflow: auto; */ span { /* float: left; display: inline-block; font-size: 12px; */ &.comment-counter { float: right; } } } } li + li { border-top:1px solid #ccc; } } } #recentplinged-list{ .product-wrap{ float: left; width: 100%; padding: 0.3em; border: 0.35em solid #dee0e0; border-radius: 5px; height: 14em; margin-bottom: 1em; background: white; width: 115px; height: 200px; margin-right: 10px; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; position: relative; text-align: center; position: relative; padding-top:80px; figure { padding: .25em; border: 1px solid #dbdbdb; background: #f6f6f6; border-radius:999px; width:50px; img{ width:40px; height: 40px; border: 1px solid #dbdbdb; -webkit-border-radius: 999px; -moz-border-radius: 999px; border-radius: 999px; -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; } } h3{ font-size: 13px; font-weight: normal; word-wrap: break-word; line-height: 15px; padding: 0; margin: 0; } span.small { font-size: 13px; color: #444; position: absolute; bottom: 5px; right: 5px; } div.projecttitle{ font-size: 11px; } span.rank { font-size: 14px; position: absolute; bottom: 5px; left: 5px; color: #444; font-weight: bold; } } } } } } diff --git a/httpdocs/theme/react/bundle/app-supporters-bundle.js b/httpdocs/theme/react/bundle/app-supporters-bundle.js index 82a8a4b0d..beba878d2 100644 --- a/httpdocs/theme/react/bundle/app-supporters-bundle.js +++ b/httpdocs/theme/react/bundle/app-supporters-bundle.js @@ -1,365 +1,30 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app-supporters/entry-app-supporters.js"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./app-supporters/components/AppSupporters.js": -/*!****************************************************!*\ - !*** ./app-supporters/components/AppSupporters.js ***! - \****************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _TopProducts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TopProducts */ \"./app-supporters/components/TopProducts.js\");\n/* harmony import */ var _TopCreators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TopCreators */ \"./app-supporters/components/TopCreators.js\");\n/* harmony import */ var _Support__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Support */ \"./app-supporters/components/Support.js\");\n/* harmony import */ var _Supporters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Supporters */ \"./app-supporters/components/Supporters.js\");\n/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Header */ \"./app-supporters/components/Header.js\");\n/* harmony import */ var _RecentPlinged__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RecentPlinged */ \"./app-supporters/components/RecentPlinged.js\");\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\n\n\n\n\nvar AppSupportersContext = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"createContext\"])();\n\nvar AppSupporters = function AppSupporters() {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data),\n _useState2 = _slicedToArray(_useState, 2),\n state = _useState2[0],\n setState = _useState2[1];\n\n var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.section),\n _useState4 = _slicedToArray(_useState3, 2),\n section = _useState4[0],\n setSection = _useState4[1];\n\n var _useState5 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.products),\n _useState6 = _slicedToArray(_useState5, 2),\n products = _useState6[0],\n setProducts = _useState6[1];\n\n var _useState7 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.creators),\n _useState8 = _slicedToArray(_useState7, 2),\n creators = _useState8[0],\n setCreators = _useState8[1];\n\n var _useState9 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])([]),\n _useState10 = _slicedToArray(_useState9, 2),\n productsCategory = _useState10[0],\n setProductsCategory = _useState10[1];\n\n var _useState11 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])([]),\n _useState12 = _slicedToArray(_useState11, 2),\n creatorsCategory = _useState12[0],\n setCreatorsCategory = _useState12[1];\n\n var _useState13 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.sections),\n _useState14 = _slicedToArray(_useState13, 2),\n sections = _useState14[0],\n setSections = _useState14[1];\n\n var _useState15 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.supporters),\n _useState16 = _slicedToArray(_useState15, 2),\n supporters = _useState16[0],\n setSupporters = _useState16[1];\n\n var _useState17 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(window.data.details),\n _useState18 = _slicedToArray(_useState17, 2),\n details = _useState18[0],\n setDetails = _useState18[1];\n\n var _useState19 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])([]),\n _useState20 = _slicedToArray(_useState19, 2),\n recentplings = _useState20[0],\n setRecentplings = _useState20[1];\n\n var _useState21 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(false),\n _useState22 = _slicedToArray(_useState21, 2),\n recentplingsLoaded = _useState22[0],\n setRecentplingsLoaded = _useState22[1];\n\n var _useState23 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(),\n _useState24 = _slicedToArray(_useState23, 2),\n category = _useState24[0],\n setCategory = _useState24[1];\n\n var _useState25 = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])('supporters'),\n _useState26 = _slicedToArray(_useState25, 2),\n showContent = _useState26[0],\n setShowContent = _useState26[1];\n\n var loadData =\n /*#__PURE__*/\n function () {\n var _ref = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee(section) {\n var data, items;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(\"/supporters/top?id=\".concat(section.section_id));\n\n case 2:\n data = _context.sent;\n _context.next = 5;\n return data.json();\n\n case 5:\n items = _context.sent;\n setProducts(items.products);\n setCreators(items.creators);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function loadData(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n\n var loadrecentplings =\n /*#__PURE__*/\n function () {\n var _ref2 = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee2(section) {\n var data, items;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return fetch(\"/supporters/recentplings?id=\".concat(section.section_id));\n\n case 2:\n data = _context2.sent;\n _context2.next = 5;\n return data.json();\n\n case 5:\n items = _context2.sent;\n setRecentplings(items.products);\n setRecentplingsLoaded(true);\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function loadrecentplings(_x2) {\n return _ref2.apply(this, arguments);\n };\n }();\n\n var showDetail = function showDetail(sc) {\n setShowContent(sc);\n\n if (sc == 'recentplings' && recentplingsLoaded === false) {\n loadrecentplings(section);\n }\n };\n\n var onClickCategory =\n /*#__PURE__*/\n function () {\n var _ref3 = _asyncToGenerator(\n /*#__PURE__*/\n regeneratorRuntime.mark(function _callee3(category) {\n var data, items;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return fetch(\"/supporters/topcat?cat_id=\".concat(category.project_category_id));\n\n case 2:\n data = _context3.sent;\n _context3.next = 5;\n return data.json();\n\n case 5:\n items = _context3.sent;\n setShowContent('overview-category-subcat');\n setProductsCategory(items.products);\n setCreatorsCategory(items.creators);\n setCategory(category);\n\n case 10:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function onClickCategory(_x3) {\n return _ref3.apply(this, arguments);\n };\n }(); // render\n\n\n var sectioncontainer, sectiondetail; //onClick={()=>handleClick(section)}\n\n if (sections) {\n var t = sections.map(function (s, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: s.section_id,\n className: section && section.section_id == s.section_id ? 'active' : ''\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: \"/supporters?id=\" + s.section_id\n }, s.name));\n });\n sectioncontainer = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-nav-tabs\",\n style: {\n 'display': 'flex'\n }\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", {\n className: \"nav nav-tabs pling-section-tabs\"\n }, t));\n }\n\n var categories;\n\n if (details && section) {\n categories = details.map(function (detail, index) {\n if (detail.section_id == section.section_id) return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n onClick: function onClick() {\n return onClickCategory(detail);\n }\n }, detail.title));\n });\n }\n\n var detailContent;\n\n if (showContent == 'supporters') {\n detailContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Supporters__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n baseUrlStore: state.baseurlStore,\n supporters: supporters\n });\n } else if (showContent == 'recentplings') {\n detailContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_RecentPlinged__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n products: recentplings,\n baseUrlStore: state.baseurlStore\n });\n } else if (showContent == 'overview-category-subcat') {\n detailContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TopCreators__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n creators: creatorsCategory,\n baseUrlStore: state.baseurlStore\n }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TopProducts__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n products: productsCategory,\n baseUrlStore: state.baseurlStore\n }));\n } else {\n // overview or category all on click\n detailContent = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TopCreators__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n creators: creators,\n baseUrlStore: state.baseurlStore\n }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_TopProducts__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n products: products,\n baseUrlStore: state.baseurlStore\n }));\n }\n\n sectiondetail = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-section-detail\"\n }, section && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-section-detail-left\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h2\", {\n className: showContent == 'supporters' ? 'focused' : ''\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n onClick: function onClick() {\n return showDetail('supporters');\n }\n }, \"Supporters\")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h2\", {\n className: showContent == 'overview-category' || showContent == 'overview-category-subcat' ? 'focused' : ''\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n onClick: function onClick() {\n return showDetail('overview-category');\n }\n }, \"Plings\")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", {\n className: \"pling-section-detail-ul\"\n }, categories), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h2\", {\n className: showContent == 'recentplings' ? 'focused' : ''\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n onClick: function onClick() {\n return showDetail('recentplings');\n }\n }, \"Recent Plings\"))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-section-detail-middle\"\n }, detailContent), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-section-detail-right\"\n }, section && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"btnSupporter\"\n }, \"Become a Supporter\"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Support__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n baseUrlStore: state.baseurlStore,\n section: section,\n supporters: supporters\n }))));\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Header__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n supporters: supporters,\n section: section\n }), sectioncontainer, sectiondetail);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (AppSupporters);\n\n//# sourceURL=webpack:///./app-supporters/components/AppSupporters.js?"); - -/***/ }), - -/***/ "./app-supporters/components/Creator.js": -/*!**********************************************!*\ - !*** ./app-supporters/components/Creator.js ***! - \**********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction Creator(props) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"creatorrow row\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-2\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: props.baseUrlStore + '/u/' + props.creator.username\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"figure\", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n className: \"productimg\",\n src: props.creator.profile_image_url\n })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-6 userinfo\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"userinfo-title\"\n }, props.creator.username)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-4\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n style: {\n width: '15px',\n height: '15px',\n \"float\": 'left',\n marginRight: '2px'\n },\n src: props.baseUrlStore + '/images/system/pling-btn-active.png'\n }), props.creator.cnt, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"colorGrey\"\n }, ' (' + props.creator.sum_plings_all + ')'))));\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Creator);\n\n//# sourceURL=webpack:///./app-supporters/components/Creator.js?"); - -/***/ }), - -/***/ "./app-supporters/components/Header.js": -/*!*********************************************!*\ - !*** ./app-supporters/components/Header.js ***! - \*********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ \"./app-supporters/components/util.js\");\n\n\n\nvar Header = function Header(props) {\n var s = props.supporters.filter(_util__WEBPACK_IMPORTED_MODULE_1__[\"filterDuplicated\"]).length;\n var goal = Math.ceil(s / 50) * 50;\n\n if (goal == 0) {\n goal = 50;\n }\n\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"pling-section-header\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"header-title\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, props.section ? props.section.name : '')), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"score-container\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, \"Goal:\"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"score-bar-container\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"score-bar\",\n style: {\n \"width\": s / goal * 100 + \"%\"\n }\n }, s)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, goal)));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Header);\n\n//# sourceURL=webpack:///./app-supporters/components/Header.js?"); - -/***/ }), - -/***/ "./app-supporters/components/Product.js": -/*!**********************************************!*\ - !*** ./app-supporters/components/Product.js ***! - \**********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\n\nvar Product = function Product(props) {\n var projectUrl = props.baseUrlStore + \"/p/\" + props.product.project_id;\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"productrow row\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-2\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: projectUrl\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"figure\", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n className: \"productimg\",\n src: props.product.image_small\n })))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-6\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"product-info\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"product-info-title\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: projectUrl\n }, props.product.title)), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"product-info-category\",\n style: {\n color: '#ccc'\n }\n }, props.product.catTitle))), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"col-lg-4\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n style: {\n width: '15px',\n height: '15px',\n \"float\": 'left',\n marginRight: '2px'\n },\n src: props.baseUrlStore + '/images/system/pling-btn-active.png'\n }), props.product.sum_plings, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"colorGrey\"\n }, props.product.sum_plings_all ? ' (' + props.product.sum_plings_all + ') ' : '')));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Product);\n\n//# sourceURL=webpack:///./app-supporters/components/Product.js?"); - -/***/ }), - -/***/ "./app-supporters/components/RecentPlinged.js": -/*!****************************************************!*\ - !*** ./app-supporters/components/RecentPlinged.js ***! - \****************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _RecentPlingedProduct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./RecentPlingedProduct */ \"./app-supporters/components/RecentPlingedProduct.js\");\n\n\n\nvar RecentPlinged = function RecentPlinged(props) {\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n TooltipUserPlings.setup(\"tooltipuserplings\", \"right\");\n TooltipUser.setup('tooltipuser', 'right');\n }, [props.products]);\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n id: \"recentplinged-list\"\n }, props.products.map(function (product, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_RecentPlingedProduct__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n key: index,\n product: product,\n baseUrlStore: props.baseUrlStore\n });\n }));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (RecentPlinged);\n\n//# sourceURL=webpack:///./app-supporters/components/RecentPlinged.js?"); - -/***/ }), - -/***/ "./app-supporters/components/RecentPlingedProduct.js": -/*!***********************************************************!*\ - !*** ./app-supporters/components/RecentPlingedProduct.js ***! - \***********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\n\nvar RecentPlingedProduct = function RecentPlingedProduct(props) {\n var projectUrl = props.baseUrlStore + \"/p/\" + props.product.project_id;\n var memberUrl = props.baseUrlStore + \"/u/\" + props.product.username;\n var cStyle = {\n backgroundImage: 'url(' + props.product.image_small + ')',\n backgroundRepeat: 'no-repeat',\n backgroundSize: '115px'\n };\n var stylePlaceholder = {\n position: 'absolute',\n top: '0px',\n cursor: 'pointer',\n width: '100%',\n height: '50px'\n };\n\n var handleOnClick = function handleOnClick() {\n window.location.href = projectUrl;\n };\n\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"product-wrap\",\n style: cStyle\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n style: stylePlaceholder,\n onClick: handleOnClick\n }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h3\", null, props.product.title), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h3\", {\n style: {\n color: '#ccc',\n fontSize: 'small'\n }\n }, props.product.catTitle), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n className: \"small\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n className: \"tooltipuserplings\",\n \"data-tooltip-content\": \"#tooltip_content\",\n \"data-user\": props.product.project_id\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n style: {\n width: '15px',\n height: '15px',\n \"float\": 'left'\n },\n src: props.baseUrlStore + '/images/system/pling-btn-active.png'\n })), props.product.sum_plings, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", {\n style: {\n color: 'ccc'\n }\n }, props.product.sum_plings_all ? '[' + props.product.sum_plings_all + ']' : '')));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (RecentPlingedProduct);\n\n//# sourceURL=webpack:///./app-supporters/components/RecentPlingedProduct.js?"); - -/***/ }), - -/***/ "./app-supporters/components/Support.js": -/*!**********************************************!*\ - !*** ./app-supporters/components/Support.js ***! - \**********************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\nvar Support = function Support(props) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(),\n _useState2 = _slicedToArray(_useState, 2),\n typed = _useState2[0],\n setTyped = _useState2[1];\n\n var tiers = [0.99, 2, 5, 10, 20, 50];\n var limits = [2, 5, 10, 20, 50, 100];\n\n var onChangeFreeamount = function onChangeFreeamount(event) {\n setTyped(event.target.value);\n };\n\n var container = tiers.map(function (t, index) {\n var c;\n var tmp = t;\n var left, right;\n\n if (index == 0) {\n left = 0;\n } else {\n left = limits[index - 1];\n }\n\n right = limits[index];\n var result = props.supporters.filter(function (s) {\n return s.section_support_tier >= left && s.section_support_tier < right;\n });\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"tier-container\",\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, result.length + ' Supporters'), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"join\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: url\n }, \"Join $\", t, \" Tier\")));\n });\n var result = props.supporters.filter(function (s) {\n return s.section_support_tier >= 100;\n });\n var othertiers;\n var o;\n var x = result.map(function (s, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: props.baseUrlStore + '/u/' + s.username\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n src: s.profile_image_url\n })));\n });\n o = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", null, x);\n var url = props.baseUrlStore + '/support-predefined?section_id=' + props.section.section_id;\n url = url + '&amount_predefined=' + typed;\n othertiers = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"tier-container\"\n }, o && react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, x.length, \" Supporters \"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"join\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", null, \"$\", react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"input\", {\n className: \"free-amount\",\n onChange: onChangeFreeamount\n }), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"span\", null, \"100 or more\")), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", null, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: url,\n id: \"free-amount-link\"\n }, \"Join \"))));\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"support-container\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"tiers\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"h5\", null, \"Tiers\")), container, othertiers);\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Support);\n\n//# sourceURL=webpack:///./app-supporters/components/Support.js?"); - -/***/ }), - -/***/ "./app-supporters/components/Supporters.js": -/*!*************************************************!*\ - !*** ./app-supporters/components/Supporters.js ***! - \*************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util */ \"./app-supporters/components/util.js\");\n\n\n\nvar Supporters = function Supporters(props) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"supporters-container\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", null, props.supporters.filter(_util__WEBPACK_IMPORTED_MODULE_1__[\"filterDuplicated\"]).map(function (s, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"a\", {\n href: props.baseUrlStore + '/u/' + s.username\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"img\", {\n src: s.profile_image_url\n })), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"username\"\n }, s.username));\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Supporters);\n\n//# sourceURL=webpack:///./app-supporters/components/Supporters.js?"); - -/***/ }), - -/***/ "./app-supporters/components/TopCreators.js": -/*!**************************************************!*\ - !*** ./app-supporters/components/TopCreators.js ***! - \**************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Creator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Creator */ \"./app-supporters/components/Creator.js\");\n\n\n\nvar TopCreators = function TopCreators(props) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"panelContainer\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"title\"\n }, \"Most Plinged Creators\"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", null, props.creators.map(function (creator, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Creator__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n creator: creator,\n baseUrlStore: props.baseUrlStore,\n isAdmin: props.isAdmin\n }));\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TopCreators);\n\n//# sourceURL=webpack:///./app-supporters/components/TopCreators.js?"); - -/***/ }), - -/***/ "./app-supporters/components/TopProducts.js": -/*!**************************************************!*\ - !*** ./app-supporters/components/TopProducts.js ***! - \**************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Product */ \"./app-supporters/components/Product.js\");\n\n\n\nvar TopProducts = function TopProducts(props) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"panelContainer\"\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"div\", {\n className: \"title\"\n }, \"Most Plinged Products\"), react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"ul\", null, props.products.map(function (product, index) {\n return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(\"li\", {\n key: index\n }, react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_Product__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n product: product,\n baseUrlStore: props.baseUrlStore\n }));\n })));\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (TopProducts);\n\n//# sourceURL=webpack:///./app-supporters/components/TopProducts.js?"); - -/***/ }), - -/***/ "./app-supporters/components/util.js": -/*!*******************************************!*\ - !*** ./app-supporters/components/util.js ***! - \*******************************************/ -/*! exports provided: filterDuplicated */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"filterDuplicated\", function() { return filterDuplicated; });\nfunction filterDuplicated(el, idx, array) {\n for (var i = 0; i < array.length; i++) {\n if (array[i].member_id == el.member_id) {\n if (idx == i) {\n return el;\n } else {\n break;\n }\n }\n }\n}\n\n//# sourceURL=webpack:///./app-supporters/components/util.js?"); - -/***/ }), - -/***/ "./app-supporters/entry-app-supporters.js": -/*!************************************************!*\ - !*** ./app-supporters/entry-app-supporters.js ***! - \************************************************/ -/*! no exports provided */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ \"./node_modules/react-dom/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_AppSupporters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/AppSupporters */ \"./app-supporters/components/AppSupporters.js\");\n\n\n\nreact_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_AppSupporters__WEBPACK_IMPORTED_MODULE_2__[\"default\"], null), document.getElementById('pling-section-content'));\n\n//# sourceURL=webpack:///./app-supporters/entry-app-supporters.js?"); - -/***/ }), - -/***/ "./node_modules/object-assign/index.js": -/*!*********************************************!*\ - !*** ./node_modules/object-assign/index.js ***! - \*********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//# sourceURL=webpack:///./node_modules/object-assign/index.js?"); - -/***/ }), - -/***/ "./node_modules/prop-types/checkPropTypes.js": -/*!***************************************************!*\ - !*** ./node_modules/prop-types/checkPropTypes.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar printWarning = function() {};\n\nif (true) {\n var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (true) {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (true) {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/checkPropTypes.js?"); - -/***/ }), - -/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": -/*!*************************************************************!*\ - !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js?"); - -/***/ }), - -/***/ "./node_modules/react-dom/cjs/react-dom.development.js": -/*!*************************************************************!*\ - !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! - \*************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("/** @license React v16.10.2\n * react-dom.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\n\n\n\nif (true) {\n (function() {\n'use strict';\n\nvar React = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\nvar _assign = __webpack_require__(/*! object-assign */ \"./node_modules/object-assign/index.js\");\nvar Scheduler = __webpack_require__(/*! scheduler */ \"./node_modules/scheduler/index.js\");\nvar checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ \"./node_modules/prop-types/checkPropTypes.js\");\nvar tracing = __webpack_require__(/*! scheduler/tracing */ \"./node_modules/scheduler/tracing.js\");\n\n// Do not require this module directly! Use normal `invariant` calls with\n// template literal strings. The messages will be converted to ReactError during\n// build, and in production they will be minified.\n\n// Do not require this module directly! Use normal `invariant` calls with\n// template literal strings. The messages will be converted to ReactError during\n// build, and in production they will be minified.\nfunction ReactError(error) {\n error.name = 'Invariant Violation';\n return error;\n}\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\n(function () {\n if (!React) {\n {\n throw ReactError(Error(\"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.\"));\n }\n }\n})();\n\n/**\n * Injectable ordering of event plugins.\n */\nvar eventPluginOrder = null;\n/**\n * Injectable mapping from names to event plugin modules.\n */\n\nvar namesToPlugins = {};\n/**\n * Recomputes the plugin list using the injected plugins and plugin ordering.\n *\n * @private\n */\n\nfunction recomputePluginOrdering() {\n if (!eventPluginOrder) {\n // Wait until an `eventPluginOrder` is injected.\n return;\n }\n\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName];\n var pluginIndex = eventPluginOrder.indexOf(pluginName);\n\n (function () {\n if (!(pluginIndex > -1)) {\n {\n throw ReactError(Error(\"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `\" + pluginName + \"`.\"));\n }\n }\n })();\n\n if (plugins[pluginIndex]) {\n continue;\n }\n\n (function () {\n if (!pluginModule.extractEvents) {\n {\n throw ReactError(Error(\"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `\" + pluginName + \"` does not.\"));\n }\n }\n })();\n\n plugins[pluginIndex] = pluginModule;\n var publishedEvents = pluginModule.eventTypes;\n\n for (var eventName in publishedEvents) {\n (function () {\n if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {\n {\n throw ReactError(Error(\"EventPluginRegistry: Failed to publish event `\" + eventName + \"` for plugin `\" + pluginName + \"`.\"));\n }\n }\n })();\n }\n }\n}\n/**\n * Publishes an event so that it can be dispatched by the supplied plugin.\n *\n * @param {object} dispatchConfig Dispatch configuration for the event.\n * @param {object} PluginModule Plugin publishing the event.\n * @return {boolean} True if the event was successfully published.\n * @private\n */\n\n\nfunction publishEventForPlugin(dispatchConfig, pluginModule, eventName) {\n (function () {\n if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {\n {\n throw ReactError(Error(\"EventPluginHub: More than one plugin attempted to publish the same event name, `\" + eventName + \"`.\"));\n }\n }\n })();\n\n eventNameDispatchConfigs[eventName] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n\n if (phasedRegistrationNames) {\n for (var phaseName in phasedRegistrationNames) {\n if (phasedRegistrationNames.hasOwnProperty(phaseName)) {\n var phasedRegistrationName = phasedRegistrationNames[phaseName];\n publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n }\n }\n\n return true;\n } else if (dispatchConfig.registrationName) {\n publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n return true;\n }\n\n return false;\n}\n/**\n * Publishes a registration name that is used to identify dispatched events.\n *\n * @param {string} registrationName Registration name to add.\n * @param {object} PluginModule Plugin publishing the event.\n * @private\n */\n\n\nfunction publishRegistrationName(registrationName, pluginModule, eventName) {\n (function () {\n if (!!registrationNameModules[registrationName]) {\n {\n throw ReactError(Error(\"EventPluginHub: More than one plugin attempted to publish the same registration name, `\" + registrationName + \"`.\"));\n }\n }\n })();\n\n registrationNameModules[registrationName] = pluginModule;\n registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;\n\n {\n var lowerCasedName = registrationName.toLowerCase();\n possibleRegistrationNames[lowerCasedName] = registrationName;\n\n if (registrationName === 'onDoubleClick') {\n possibleRegistrationNames.ondblclick = registrationName;\n }\n }\n}\n/**\n * Registers plugins so that they can extract and dispatch events.\n *\n * @see {EventPluginHub}\n */\n\n/**\n * Ordered list of injected plugins.\n */\n\n\nvar plugins = [];\n/**\n * Mapping from event name to dispatch config\n */\n\nvar eventNameDispatchConfigs = {};\n/**\n * Mapping from registration name to plugin module\n */\n\nvar registrationNameModules = {};\n/**\n * Mapping from registration name to event name\n */\n\nvar registrationNameDependencies = {};\n/**\n * Mapping from lowercase registration names to the properly cased version,\n * used to warn in the case of missing event handlers. Available\n * only in true.\n * @type {Object}\n */\n\nvar possibleRegistrationNames = {}; // Trust the developer to only use possibleRegistrationNames in true\n\n/**\n * Injects an ordering of plugins (by plugin name). This allows the ordering\n * to be decoupled from injection of the actual plugins so that ordering is\n * always deterministic regardless of packaging, on-the-fly injection, etc.\n *\n * @param {array} InjectedEventPluginOrder\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginOrder}\n */\n\nfunction injectEventPluginOrder(injectedEventPluginOrder) {\n (function () {\n if (!!eventPluginOrder) {\n {\n throw ReactError(Error(\"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\"));\n }\n }\n })(); // Clone the ordering so it cannot be dynamically mutated.\n\n\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n}\n/**\n * Injects plugins to be used by `EventPluginHub`. The plugin names must be\n * in the ordering injected by `injectEventPluginOrder`.\n *\n * Plugins can be injected as part of page initialization or on-the-fly.\n *\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n * @internal\n * @see {EventPluginHub.injection.injectEventPluginsByName}\n */\n\nfunction injectEventPluginsByName(injectedNamesToPlugins) {\n var isOrderingDirty = false;\n\n for (var pluginName in injectedNamesToPlugins) {\n if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n continue;\n }\n\n var pluginModule = injectedNamesToPlugins[pluginName];\n\n if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {\n (function () {\n if (!!namesToPlugins[pluginName]) {\n {\n throw ReactError(Error(\"EventPluginRegistry: Cannot inject two different event plugins using the same name, `\" + pluginName + \"`.\"));\n }\n }\n })();\n\n namesToPlugins[pluginName] = pluginModule;\n isOrderingDirty = true;\n }\n }\n\n if (isOrderingDirty) {\n recomputePluginOrdering();\n }\n}\n\nvar invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n};\n\n{\n // In DEV mode, we swap out invokeGuardedCallback for a special version\n // that plays more nicely with the browser's DevTools. The idea is to preserve\n // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n // functions in invokeGuardedCallback, and the production version of\n // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n // like caught exceptions, and the DevTools won't pause unless the developer\n // takes the extra step of enabling pause on caught exceptions. This is\n // unintuitive, though, because even though React has caught the error, from\n // the developer's perspective, the error is uncaught.\n //\n // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n // DOM node, and call the user-provided callback from inside an event handler\n // for that fake event. If the callback throws, the error is \"captured\" using\n // a global event handler. But because the error happens in a different\n // event loop context, it does not interrupt the normal program flow.\n // Effectively, this gives us try-catch behavior without actually using\n // try-catch. Neat!\n // Check that the browser supports the APIs we need to implement our special\n // DEV version of invokeGuardedCallback\n if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {\n var fakeNode = document.createElement('react');\n\n var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {\n // If document doesn't exist we know for sure we will crash in this method\n // when we call document.createEvent(). However this can cause confusing\n // errors: https://github.com/facebookincubator/create-react-app/issues/3482\n // So we preemptively throw with a better message instead.\n (function () {\n if (!(typeof document !== 'undefined')) {\n {\n throw ReactError(Error(\"The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.\"));\n }\n }\n })();\n\n var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We\n // set this to true at the beginning, then set it to false right after\n // calling the function. If the function errors, `didError` will never be\n // set to false. This strategy works even if the browser is flaky and\n // fails to call our global error handler, because it doesn't rely on\n // the error event at all.\n\n var didError = true; // Keeps track of the value of window.event so that we can reset it\n // during the callback to let user code access window.event in the\n // browsers that support it.\n\n var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event\n // dispatching: https://github.com/facebook/react/issues/13688\n\n var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously\n // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n // call the user-provided callback.\n\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n\n function callCallback() {\n // We immediately remove the callback from event listeners so that\n // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n // nested call would trigger the fake event handlers of any call higher\n // in the stack.\n fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the\n // window.event assignment in both IE <= 10 as they throw an error\n // \"Member not found\" in strict mode, and in Firefox which does not\n // support window.event.\n\n if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {\n window.event = windowEvent;\n }\n\n func.apply(context, funcArgs);\n didError = false;\n } // Create a global error event handler. We use this to capture the value\n // that was thrown. It's possible that this error handler will fire more\n // than once; for example, if non-React code also calls `dispatchEvent`\n // and a handler for that event throws. We should be resilient to most of\n // those cases. Even if our error event handler fires more than once, the\n // last error event is always used. If the callback actually does error,\n // we know that the last error event is the correct one, because it's not\n // possible for anything else to have happened in between our callback\n // erroring and the code that follows the `dispatchEvent` call below. If\n // the callback doesn't error, but the error event was fired, we know to\n // ignore it because `didError` will be false, as described above.\n\n\n var error; // Use this to track whether the error event is ever called.\n\n var didSetError = false;\n var isCrossOriginError = false;\n\n function handleWindowError(event) {\n error = event.error;\n didSetError = true;\n\n if (error === null && event.colno === 0 && event.lineno === 0) {\n isCrossOriginError = true;\n }\n\n if (event.defaultPrevented) {\n // Some other error handler has prevented default.\n // Browsers silence the error report if this happens.\n // We'll remember this to later decide whether to log it or not.\n if (error != null && typeof error === 'object') {\n try {\n error._suppressLogging = true;\n } catch (inner) {// Ignore.\n }\n }\n }\n } // Create a fake event type.\n\n\n var evtType = \"react-\" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers\n\n window.addEventListener('error', handleWindowError);\n fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function\n // errors, it will trigger our global error handler.\n\n evt.initEvent(evtType, false, false);\n fakeNode.dispatchEvent(evt);\n\n if (windowEventDescriptor) {\n Object.defineProperty(window, 'event', windowEventDescriptor);\n }\n\n if (didError) {\n if (!didSetError) {\n // The callback errored, but the error event never fired.\n error = new Error('An error was thrown inside one of your components, but React ' + \"doesn't know what it was. This is likely due to browser \" + 'flakiness. React does its best to preserve the \"Pause on ' + 'exceptions\" behavior of the DevTools, which requires some ' + \"DEV-mode only tricks. It's possible that these don't work in \" + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');\n } else if (isCrossOriginError) {\n error = new Error(\"A cross-origin error was thrown. React doesn't have access to \" + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');\n }\n\n this.onError(error);\n } // Remove our event listeners\n\n\n window.removeEventListener('error', handleWindowError);\n };\n\n invokeGuardedCallbackImpl = invokeGuardedCallbackDev;\n }\n}\n\nvar invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;\n\nvar hasError = false;\nvar caughtError = null; // Used by event system to capture/rethrow the first error.\n\nvar hasRethrowError = false;\nvar rethrowError = null;\nvar reporter = {\n onError: function (error) {\n hasError = true;\n caughtError = error;\n }\n};\n/**\n * Call a function while guarding against errors that happens within it.\n * Returns an error if it throws, otherwise null.\n *\n * In production, this is implemented using a try-catch. The reason we don't\n * use a try-catch directly is so that we can swap out a different\n * implementation in DEV mode.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = false;\n caughtError = null;\n invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n}\n/**\n * Same as invokeGuardedCallback, but instead of returning an error, it stores\n * it in a global so it can be rethrown by `rethrowCaughtError` later.\n * TODO: See if caughtError and rethrowError can be unified.\n *\n * @param {String} name of the guard to use for logging or debugging\n * @param {Function} func The function to invoke\n * @param {*} context The context to use when calling the function\n * @param {...*} args Arguments for function\n */\n\nfunction invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {\n invokeGuardedCallback.apply(this, arguments);\n\n if (hasError) {\n var error = clearCaughtError();\n\n if (!hasRethrowError) {\n hasRethrowError = true;\n rethrowError = error;\n }\n }\n}\n/**\n * During execution of guarded functions we will capture the first error which\n * we will rethrow to be handled by the top level error handler.\n */\n\nfunction rethrowCaughtError() {\n if (hasRethrowError) {\n var error = rethrowError;\n hasRethrowError = false;\n rethrowError = null;\n throw error;\n }\n}\nfunction hasCaughtError() {\n return hasError;\n}\nfunction clearCaughtError() {\n if (hasError) {\n var error = caughtError;\n hasError = false;\n caughtError = null;\n return error;\n } else {\n (function () {\n {\n {\n throw ReactError(Error(\"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\"));\n }\n }\n })();\n }\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\nvar warningWithoutStack = function () {};\n\n{\n warningWithoutStack = function (condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n if (format === undefined) {\n throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (args.length > 8) {\n // Check before the condition to catch violations early.\n throw new Error('warningWithoutStack() currently supports at most 8 arguments.');\n }\n\n if (condition) {\n return;\n }\n\n if (typeof console !== 'undefined') {\n var argsWithFormat = args.map(function (item) {\n return '' + item;\n });\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n\n Function.prototype.apply.call(console.error, console, argsWithFormat);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nvar warningWithoutStack$1 = warningWithoutStack;\n\nvar getFiberCurrentPropsFromNode = null;\nvar getInstanceFromNode = null;\nvar getNodeFromInstance = null;\nfunction setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {\n getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;\n getInstanceFromNode = getInstanceFromNodeImpl;\n getNodeFromInstance = getNodeFromInstanceImpl;\n\n {\n !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;\n }\n}\nvar validateEventDispatches;\n\n{\n validateEventDispatches = function (event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n var listenersIsArr = Array.isArray(dispatchListeners);\n var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;\n var instancesIsArr = Array.isArray(dispatchInstances);\n var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;\n !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;\n };\n}\n/**\n * Dispatch the event to the listener.\n * @param {SyntheticEvent} event SyntheticEvent to handle\n * @param {function} listener Application-level callback\n * @param {*} inst Internal component instance\n */\n\n\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || 'unknown-event';\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n event.currentTarget = null;\n}\n/**\n * Standard/simple iteration through an event's collected dispatches.\n */\n\nfunction executeDispatchesInOrder(event) {\n var dispatchListeners = event._dispatchListeners;\n var dispatchInstances = event._dispatchInstances;\n\n {\n validateEventDispatches(event);\n }\n\n if (Array.isArray(dispatchListeners)) {\n for (var i = 0; i < dispatchListeners.length; i++) {\n if (event.isPropagationStopped()) {\n break;\n } // Listeners and Instances are two parallel arrays that are always in sync.\n\n\n executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);\n }\n } else if (dispatchListeners) {\n executeDispatch(event, dispatchListeners, dispatchInstances);\n }\n\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n}\n/**\n * @see executeDispatchesInOrderStopAtTrueImpl\n */\n\n\n\n/**\n * Execution of a \"direct\" dispatch - there must be at most one dispatch\n * accumulated on the event or it is considered an error. It doesn't really make\n * sense for an event with multiple dispatches (bubbled) to keep track of the\n * return values at each dispatch execution, but it does tend to make sense when\n * dealing with \"direct\" dispatches.\n *\n * @return {*} The return value of executing the single dispatch.\n */\n\n\n/**\n * @param {SyntheticEvent} event\n * @return {boolean} True iff number of dispatches accumulated is greater than 0.\n */\n\n/**\n * Accumulates items that must not be null or undefined into the first one. This\n * is used to conserve memory by avoiding array allocations, and thus sacrifices\n * API cleanness. Since `current` can be null before being passed in and not\n * null after this function, make sure to assign it back to `current`:\n *\n * `a = accumulateInto(a, b);`\n *\n * This API should be sparingly used. Try `accumulate` for something cleaner.\n *\n * @return {*|array<*>} An accumulation of items.\n */\n\nfunction accumulateInto(current, next) {\n (function () {\n if (!(next != null)) {\n {\n throw ReactError(Error(\"accumulateInto(...): Accumulated items must not be null or undefined.\"));\n }\n }\n })();\n\n if (current == null) {\n return next;\n } // Both are not empty. Warning: Never call x.concat(y) when you are not\n // certain that x is an Array (x could be a string with concat method).\n\n\n if (Array.isArray(current)) {\n if (Array.isArray(next)) {\n current.push.apply(current, next);\n return current;\n }\n\n current.push(next);\n return current;\n }\n\n if (Array.isArray(next)) {\n // A bit too dangerous to mutate `next`.\n return [current].concat(next);\n }\n\n return [current, next];\n}\n\n/**\n * @param {array} arr an \"accumulation\" of items which is either an Array or\n * a single item. Useful when paired with the `accumulate` module. This is a\n * simple utility that allows us to reason about a collection of items, but\n * handling the case when there is exactly one item (and we do not need to\n * allocate an array).\n * @param {function} cb Callback invoked with each element or a collection.\n * @param {?} [scope] Scope used as `this` in a callback.\n */\nfunction forEachAccumulated(arr, cb, scope) {\n if (Array.isArray(arr)) {\n arr.forEach(cb, scope);\n } else if (arr) {\n cb.call(scope, arr);\n }\n}\n\n/**\n * Internal queue of events that have accumulated their dispatches and are\n * waiting to have their dispatches executed.\n */\n\nvar eventQueue = null;\n/**\n * Dispatches an event and releases it back into the pool, unless persistent.\n *\n * @param {?object} event Synthetic event to be dispatched.\n * @private\n */\n\nvar executeDispatchesAndRelease = function (event) {\n if (event) {\n executeDispatchesInOrder(event);\n\n if (!event.isPersistent()) {\n event.constructor.release(event);\n }\n }\n};\n\nvar executeDispatchesAndReleaseTopLevel = function (e) {\n return executeDispatchesAndRelease(e);\n};\n\nfunction runEventsInBatch(events) {\n if (events !== null) {\n eventQueue = accumulateInto(eventQueue, events);\n } // Set `eventQueue` to null before processing it so that we can tell if more\n // events get enqueued while processing.\n\n\n var processingEventQueue = eventQueue;\n eventQueue = null;\n\n if (!processingEventQueue) {\n return;\n }\n\n forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n\n (function () {\n if (!!eventQueue) {\n {\n throw ReactError(Error(\"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\"));\n }\n }\n })(); // This would be a good time to rethrow if any of the event handlers threw.\n\n\n rethrowCaughtError();\n}\n\nfunction isInteractive(tag) {\n return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props) {\n switch (name) {\n case 'onClick':\n case 'onClickCapture':\n case 'onDoubleClick':\n case 'onDoubleClickCapture':\n case 'onMouseDown':\n case 'onMouseDownCapture':\n case 'onMouseMove':\n case 'onMouseMoveCapture':\n case 'onMouseUp':\n case 'onMouseUpCapture':\n return !!(props.disabled && isInteractive(type));\n\n default:\n return false;\n }\n}\n/**\n * This is a unified interface for event plugins to be installed and configured.\n *\n * Event plugins can implement the following properties:\n *\n * `extractEvents` {function(string, DOMEventTarget, string, object): *}\n * Required. When a top-level event is fired, this method is expected to\n * extract synthetic events that will in turn be queued and dispatched.\n *\n * `eventTypes` {object}\n * Optional, plugins that fire events must publish a mapping of registration\n * names that are used to register listeners. Values of this mapping must\n * be objects that contain `registrationName` or `phasedRegistrationNames`.\n *\n * `executeDispatch` {function(object, function, string)}\n * Optional, allows plugins to override how an event gets dispatched. By\n * default, the listener is simply invoked.\n *\n * Each plugin that is injected into `EventsPluginHub` is immediately operable.\n *\n * @public\n */\n\n/**\n * Methods for injecting dependencies.\n */\n\n\nvar injection = {\n /**\n * @param {array} InjectedEventPluginOrder\n * @public\n */\n injectEventPluginOrder: injectEventPluginOrder,\n\n /**\n * @param {object} injectedNamesToPlugins Map from names to plugin modules.\n */\n injectEventPluginsByName: injectEventPluginsByName\n};\n/**\n * @param {object} inst The instance, which is the source of events.\n * @param {string} registrationName Name of listener (e.g. `onClick`).\n * @return {?function} The stored callback.\n */\n\nfunction getListener(inst, registrationName) {\n var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n // live here; needs to be moved to a better place soon\n\n var stateNode = inst.stateNode;\n\n if (!stateNode) {\n // Work in progress (ex: onload events in incremental mode).\n return null;\n }\n\n var props = getFiberCurrentPropsFromNode(stateNode);\n\n if (!props) {\n // Work in progress.\n return null;\n }\n\n listener = props[registrationName];\n\n if (shouldPreventMouseEvent(registrationName, inst.type, props)) {\n return null;\n }\n\n (function () {\n if (!(!listener || typeof listener === 'function')) {\n {\n throw ReactError(Error(\"Expected `\" + registrationName + \"` listener to be a function, instead got a value of `\" + typeof listener + \"` type.\"));\n }\n }\n })();\n\n return listener;\n}\n/**\n * Allows registered plugins an opportunity to extract events from top-level\n * native browser events.\n *\n * @return {*} An accumulation of synthetic events.\n * @internal\n */\n\nfunction extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {\n var events = null;\n\n for (var i = 0; i < plugins.length; i++) {\n // Not every plugin in the ordering may be loaded at runtime.\n var possiblePlugin = plugins[i];\n\n if (possiblePlugin) {\n var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n\n if (extractedEvents) {\n events = accumulateInto(events, extractedEvents);\n }\n }\n }\n\n return events;\n}\n\nfunction runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) {\n var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n runEventsInBatch(events);\n}\n\nvar FunctionComponent = 0;\nvar ClassComponent = 1;\nvar IndeterminateComponent = 2; // Before we know whether it is function or class\n\nvar HostRoot = 3; // Root of a host tree. Could be nested inside another node.\n\nvar HostPortal = 4; // A subtree. Could be an entry point to a different renderer.\n\nvar HostComponent = 5;\nvar HostText = 6;\nvar Fragment = 7;\nvar Mode = 8;\nvar ContextConsumer = 9;\nvar ContextProvider = 10;\nvar ForwardRef = 11;\nvar Profiler = 12;\nvar SuspenseComponent = 13;\nvar MemoComponent = 14;\nvar SimpleMemoComponent = 15;\nvar LazyComponent = 16;\nvar IncompleteClassComponent = 17;\nvar DehydratedFragment = 18;\nvar SuspenseListComponent = 19;\nvar FundamentalComponent = 20;\nvar ScopeComponent = 21;\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.\n// Current owner and dispatcher used to share the same ref,\n// but PR #14548 split them out to better support the react-debug-tools package.\n\nif (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {\n ReactSharedInternals.ReactCurrentDispatcher = {\n current: null\n };\n}\n\nif (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {\n ReactSharedInternals.ReactCurrentBatchConfig = {\n suspense: null\n };\n}\n\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nvar describeComponentFrame = function (name, source, ownerName) {\n var sourceInfo = '';\n\n if (source) {\n var path = source.fileName;\n var fileName = path.replace(BEFORE_SLASH_RE, '');\n\n {\n // In DEV, include code for a common special case:\n // prefer \"folder/index.js\" instead of just \"index.js\".\n if (/^index\\./.test(fileName)) {\n var match = path.match(BEFORE_SLASH_RE);\n\n if (match) {\n var pathBeforeSlash = match[1];\n\n if (pathBeforeSlash) {\n var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n fileName = folderName + '/' + fileName;\n }\n }\n }\n }\n\n sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';\n } else if (ownerName) {\n sourceInfo = ' (created by ' + ownerName + ')';\n }\n\n return '\\n in ' + (name || 'Unknown') + sourceInfo;\n};\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\n\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\nvar MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar warning = warningWithoutStack$1;\n\n{\n warning = function (condition, format) {\n if (condition) {\n return;\n }\n\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args\n\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack]));\n };\n}\n\nvar warning$1 = warning;\n\nvar Uninitialized = -1;\nvar Pending = 0;\nvar Resolved = 1;\nvar Rejected = 2;\nfunction refineResolvedLazyComponent(lazyComponent) {\n return lazyComponent._status === Resolved ? lazyComponent._result : null;\n}\nfunction initializeLazyComponentType(lazyComponent) {\n if (lazyComponent._status === Uninitialized) {\n lazyComponent._status = Pending;\n var ctor = lazyComponent._ctor;\n var thenable = ctor();\n lazyComponent._result = thenable;\n thenable.then(function (moduleObject) {\n if (lazyComponent._status === Pending) {\n var defaultExport = moduleObject.default;\n\n {\n if (defaultExport === undefined) {\n warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n ' + \"const MyComponent = lazy(() => import('./MyComponent'))\", moduleObject);\n }\n }\n\n lazyComponent._status = Resolved;\n lazyComponent._result = defaultExport;\n }\n }, function (error) {\n if (lazyComponent._status === Pending) {\n lazyComponent._status = Rejected;\n lazyComponent._result = error;\n }\n });\n }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var functionName = innerType.displayName || innerType.name || '';\n return outerType.displayName || (functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName);\n}\n\nfunction getComponentName(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return 'Context.Consumer';\n\n case REACT_PROVIDER_TYPE:\n return 'Context.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n\n case REACT_LAZY_TYPE:\n {\n var thenable = type;\n var resolvedThenable = refineResolvedLazyComponent(thenable);\n\n if (resolvedThenable) {\n return getComponentName(resolvedThenable);\n }\n\n break;\n }\n }\n }\n\n return null;\n}\n\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction describeFiber(fiber) {\n switch (fiber.tag) {\n case HostRoot:\n case HostPortal:\n case HostText:\n case Fragment:\n case ContextProvider:\n case ContextConsumer:\n return '';\n\n default:\n var owner = fiber._debugOwner;\n var source = fiber._debugSource;\n var name = getComponentName(fiber.type);\n var ownerName = null;\n\n if (owner) {\n ownerName = getComponentName(owner.type);\n }\n\n return describeComponentFrame(name, source, ownerName);\n }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = '';\n var node = workInProgress;\n\n do {\n info += describeFiber(node);\n node = node.return;\n } while (node);\n\n return info;\n}\nvar current = null;\nvar phase = null;\nfunction getCurrentFiberOwnerNameInDevOrNull() {\n {\n if (current === null) {\n return null;\n }\n\n var owner = current._debugOwner;\n\n if (owner !== null && typeof owner !== 'undefined') {\n return getComponentName(owner.type);\n }\n }\n\n return null;\n}\nfunction getCurrentFiberStackInDev() {\n {\n if (current === null) {\n return '';\n } // Safe because if current fiber exists, we are reconciling,\n // and it is guaranteed to be the work-in-progress version.\n\n\n return getStackByFiberInDevAndProd(current);\n }\n\n return '';\n}\nfunction resetCurrentFiber() {\n {\n ReactDebugCurrentFrame.getCurrentStack = null;\n current = null;\n phase = null;\n }\n}\nfunction setCurrentFiber(fiber) {\n {\n ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;\n current = fiber;\n phase = null;\n }\n}\nfunction setCurrentPhase(lifeCyclePhase) {\n {\n phase = lifeCyclePhase;\n }\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');\n\nfunction endsWith(subject, search) {\n var length = subject.length;\n return subject.substring(length - search.length, length) === search;\n}\n\nvar PLUGIN_EVENT_SYSTEM = 1;\nvar RESPONDER_EVENT_SYSTEM = 1 << 1;\nvar IS_PASSIVE = 1 << 2;\nvar IS_ACTIVE = 1 << 3;\nvar PASSIVE_NOT_SUPPORTED = 1 << 4;\nvar IS_REPLAYED = 1 << 5;\n\nvar restoreImpl = null;\nvar restoreTarget = null;\nvar restoreQueue = null;\n\nfunction restoreStateOfTarget(target) {\n // We perform this translation at the end of the event loop so that we\n // always receive the correct fiber here\n var internalInstance = getInstanceFromNode(target);\n\n if (!internalInstance) {\n // Unmounted\n return;\n }\n\n (function () {\n if (!(typeof restoreImpl === 'function')) {\n {\n throw ReactError(Error(\"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\"));\n }\n }\n })();\n\n var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);\n restoreImpl(internalInstance.stateNode, internalInstance.type, props);\n}\n\nfunction setRestoreImplementation(impl) {\n restoreImpl = impl;\n}\nfunction enqueueStateRestore(target) {\n if (restoreTarget) {\n if (restoreQueue) {\n restoreQueue.push(target);\n } else {\n restoreQueue = [target];\n }\n } else {\n restoreTarget = target;\n }\n}\nfunction needsStateRestore() {\n return restoreTarget !== null || restoreQueue !== null;\n}\nfunction restoreStateIfNeeded() {\n if (!restoreTarget) {\n return;\n }\n\n var target = restoreTarget;\n var queuedTargets = restoreQueue;\n restoreTarget = null;\n restoreQueue = null;\n restoreStateOfTarget(target);\n\n if (queuedTargets) {\n for (var i = 0; i < queuedTargets.length; i++) {\n restoreStateOfTarget(queuedTargets[i]);\n }\n }\n}\n\nvar enableUserTimingAPI = true; // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:\n\nvar debugRenderPhaseSideEffects = false; // In some cases, StrictMode should also double-render lifecycles.\n// This can be confusing for tests though,\n// And it can be bad for performance in production.\n// This feature flag can be used to control the behavior:\n\nvar debugRenderPhaseSideEffectsForStrictMode = true; // To preserve the \"Pause on caught exceptions\" behavior of the debugger, we\n// replay the begin phase of a failed component inside invokeGuardedCallback.\n\nvar replayFailedUnitOfWorkWithInvokeGuardedCallback = true; // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:\n\nvar warnAboutDeprecatedLifecycles = true; // Gather advanced timing metrics for Profiler subtrees.\n\nvar enableProfilerTimer = true; // Trace which interactions trigger each commit.\n\nvar enableSchedulerTracing = true; // Only used in www builds.\n\nvar enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.\n\nvar enableSelectiveHydration = false; // Only used in www builds.\n\n // Only used in www builds.\n\n // Disable javascript: URL strings in href for XSS protection.\n\nvar disableJavaScriptURLs = false; // React Fire: prevent the value and checked attributes from syncing\n// with their related DOM properties\n\nvar disableInputAttributeSyncing = false; // These APIs will no longer be \"unstable\" in the upcoming 16.7 release,\n// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.\n\nvar enableStableConcurrentModeAPIs = false;\nvar warnAboutShorthandPropertyCollision = false; // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information\n// This is a flag so we can fix warnings in RN core before turning it on\n\n // Experimental React Flare event system and event components support.\n\nvar enableFlareAPI = false; // Experimental Host Component support.\n\nvar enableFundamentalAPI = false; // Experimental Scope support.\n\nvar enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107\n\n // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)\n// Till then, we warn about the missing mock, but still fallback to a sync mode compatible version\n\nvar warnAboutUnmockedScheduler = false; // For tests, we flush suspense fallbacks in an act scope;\n// *except* in some of our own tests, where we test incremental loading states.\n\nvar flushSuspenseFallbacksInTests = true; // Changes priority of some events like mousemove to user-blocking priority,\n// but without making them discrete. The flag exists in case it causes\n// starvation problems.\n\nvar enableUserBlockingEvents = false; // Add a callback property to suspense to notify which promises are currently\n// in the update queue. This allows reporting and tracing of what is causing\n// the user to see a loading state.\n// Also allows hydration callbacks to fire when a dehydrated boundary gets\n// hydrated or deleted.\n\nvar enableSuspenseCallback = false; // Part of the simplification of React.createElement so we can eventually move\n// from React.createElement to React.jsx\n// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md\n\nvar warnAboutDefaultPropsOnFunctionComponents = false;\nvar warnAboutStringRefs = false;\nvar disableLegacyContext = false;\nvar disableSchedulerTimeoutBasedOnReactExpirationTime = false;\nvar enableTrustedTypesIntegration = false;\n\n// the renderer. Such as when we're dispatching events or if third party\n// libraries need to call batchedUpdates. Eventually, this API will go away when\n// everything is batched by default. We'll then have a similar API to opt-out of\n// scheduled work and instead do synchronous work.\n// Defaults\n\nvar batchedUpdatesImpl = function (fn, bookkeeping) {\n return fn(bookkeeping);\n};\n\nvar discreteUpdatesImpl = function (fn, a, b, c) {\n return fn(a, b, c);\n};\n\nvar flushDiscreteUpdatesImpl = function () {};\n\nvar batchedEventUpdatesImpl = batchedUpdatesImpl;\nvar isInsideEventHandler = false;\nvar isBatchingEventUpdates = false;\n\nfunction finishEventHandler() {\n // Here we wait until all updates have propagated, which is important\n // when using controlled components within layers:\n // https://github.com/facebook/react/issues/1698\n // Then we restore state of any controlled component.\n var controlledComponentsHavePendingUpdates = needsStateRestore();\n\n if (controlledComponentsHavePendingUpdates) {\n // If a controlled event was fired, we may need to restore the state of\n // the DOM node back to the controlled value. This is necessary when React\n // bails out of the update without touching the DOM.\n flushDiscreteUpdatesImpl();\n restoreStateIfNeeded();\n }\n}\n\nfunction batchedUpdates(fn, bookkeeping) {\n if (isInsideEventHandler) {\n // If we are currently inside another batch, we need to wait until it\n // fully completes before restoring state.\n return fn(bookkeeping);\n }\n\n isInsideEventHandler = true;\n\n try {\n return batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n isInsideEventHandler = false;\n finishEventHandler();\n }\n}\nfunction batchedEventUpdates(fn, a, b) {\n if (isBatchingEventUpdates) {\n // If we are currently inside another batch, we need to wait until it\n // fully completes before restoring state.\n return fn(a, b);\n }\n\n isBatchingEventUpdates = true;\n\n try {\n return batchedEventUpdatesImpl(fn, a, b);\n } finally {\n isBatchingEventUpdates = false;\n finishEventHandler();\n }\n} // This is for the React Flare event system\n\nfunction executeUserEventHandler(fn, value) {\n var previouslyInEventHandler = isInsideEventHandler;\n\n try {\n isInsideEventHandler = true;\n var type = typeof value === 'object' && value !== null ? value.type : '';\n invokeGuardedCallbackAndCatchFirstError(type, fn, undefined, value);\n } finally {\n isInsideEventHandler = previouslyInEventHandler;\n }\n}\nfunction discreteUpdates(fn, a, b, c) {\n var prevIsInsideEventHandler = isInsideEventHandler;\n isInsideEventHandler = true;\n\n try {\n return discreteUpdatesImpl(fn, a, b, c);\n } finally {\n isInsideEventHandler = prevIsInsideEventHandler;\n\n if (!isInsideEventHandler) {\n finishEventHandler();\n }\n }\n}\nvar lastFlushedEventTimeStamp = 0;\nfunction flushDiscreteUpdatesIfNeeded(timeStamp) {\n // event.timeStamp isn't overly reliable due to inconsistencies in\n // how different browsers have historically provided the time stamp.\n // Some browsers provide high-resolution time stamps for all events,\n // some provide low-resolution time stamps for all events. FF < 52\n // even mixes both time stamps together. Some browsers even report\n // negative time stamps or time stamps that are 0 (iOS9) in some cases.\n // Given we are only comparing two time stamps with equality (!==),\n // we are safe from the resolution differences. If the time stamp is 0\n // we bail-out of preventing the flush, which can affect semantics,\n // such as if an earlier flush removes or adds event listeners that\n // are fired in the subsequent flush. However, this is the same\n // behaviour as we had before this change, so the risks are low.\n if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {\n lastFlushedEventTimeStamp = timeStamp;\n flushDiscreteUpdatesImpl();\n }\n}\nfunction setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {\n batchedUpdatesImpl = _batchedUpdatesImpl;\n discreteUpdatesImpl = _discreteUpdatesImpl;\n flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;\n batchedEventUpdatesImpl = _batchedEventUpdatesImpl;\n}\n\nvar DiscreteEvent = 0;\nvar UserBlockingEvent = 1;\nvar ContinuousEvent = 2;\n\n// CommonJS interop named imports.\n\nvar UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;\nvar runWithPriority = Scheduler.unstable_runWithPriority;\nvar listenToResponderEventTypesImpl;\nfunction setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {\n listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;\n}\nvar activeTimeouts = new Map();\nvar rootEventTypesToEventResponderInstances = new Map();\nvar DoNotPropagateToNextResponder = 0;\nvar PropagateToNextResponder = 1;\nvar currentTimeStamp = 0;\nvar currentTimers = new Map();\nvar currentInstance = null;\nvar currentTimerIDCounter = 0;\nvar currentDocument = null;\nvar currentPropagationBehavior = DoNotPropagateToNextResponder;\nvar eventResponderContext = {\n dispatchEvent: function (eventValue, eventListener, eventPriority) {\n validateResponderContext();\n validateEventValue(eventValue);\n\n switch (eventPriority) {\n case DiscreteEvent:\n {\n flushDiscreteUpdatesIfNeeded(currentTimeStamp);\n discreteUpdates(function () {\n return executeUserEventHandler(eventListener, eventValue);\n });\n break;\n }\n\n case UserBlockingEvent:\n {\n if (enableUserBlockingEvents) {\n runWithPriority(UserBlockingPriority, function () {\n return executeUserEventHandler(eventListener, eventValue);\n });\n } else {\n executeUserEventHandler(eventListener, eventValue);\n }\n\n break;\n }\n\n case ContinuousEvent:\n {\n executeUserEventHandler(eventListener, eventValue);\n break;\n }\n }\n },\n isTargetWithinResponder: function (target) {\n validateResponderContext();\n\n if (target != null) {\n var fiber = getClosestInstanceFromNode(target);\n var responderFiber = currentInstance.fiber;\n\n while (fiber !== null) {\n if (fiber === responderFiber || fiber.alternate === responderFiber) {\n return true;\n }\n\n fiber = fiber.return;\n }\n }\n\n return false;\n },\n isTargetWithinResponderScope: function (target) {\n validateResponderContext();\n var componentInstance = currentInstance;\n var responder = componentInstance.responder;\n\n if (target != null) {\n var fiber = getClosestInstanceFromNode(target);\n var responderFiber = currentInstance.fiber;\n\n while (fiber !== null) {\n if (fiber === responderFiber || fiber.alternate === responderFiber) {\n return true;\n }\n\n if (doesFiberHaveResponder(fiber, responder)) {\n return false;\n }\n\n fiber = fiber.return;\n }\n }\n\n return false;\n },\n isTargetWithinNode: function (childTarget, parentTarget) {\n validateResponderContext();\n var childFiber = getClosestInstanceFromNode(childTarget);\n var parentFiber = getClosestInstanceFromNode(parentTarget);\n\n if (childFiber != null && parentFiber != null) {\n var parentAlternateFiber = parentFiber.alternate;\n var node = childFiber;\n\n while (node !== null) {\n if (node === parentFiber || node === parentAlternateFiber) {\n return true;\n }\n\n node = node.return;\n }\n\n return false;\n } // Fallback to DOM APIs\n\n\n return parentTarget.contains(childTarget);\n },\n addRootEventTypes: function (rootEventTypes) {\n validateResponderContext();\n listenToResponderEventTypesImpl(rootEventTypes, currentDocument);\n\n for (var i = 0; i < rootEventTypes.length; i++) {\n var rootEventType = rootEventTypes[i];\n var eventResponderInstance = currentInstance;\n registerRootEventType(rootEventType, eventResponderInstance);\n }\n },\n removeRootEventTypes: function (rootEventTypes) {\n validateResponderContext();\n\n for (var i = 0; i < rootEventTypes.length; i++) {\n var rootEventType = rootEventTypes[i];\n var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);\n var rootEventTypesSet = currentInstance.rootEventTypes;\n\n if (rootEventTypesSet !== null) {\n rootEventTypesSet.delete(rootEventType);\n }\n\n if (rootEventResponders !== undefined) {\n rootEventResponders.delete(currentInstance);\n }\n }\n },\n setTimeout: function (func, delay) {\n validateResponderContext();\n\n if (currentTimers === null) {\n currentTimers = new Map();\n }\n\n var timeout = currentTimers.get(delay);\n var timerId = currentTimerIDCounter++;\n\n if (timeout === undefined) {\n var timers = new Map();\n var id = setTimeout(function () {\n processTimers(timers, delay);\n }, delay);\n timeout = {\n id: id,\n timers: timers\n };\n currentTimers.set(delay, timeout);\n }\n\n timeout.timers.set(timerId, {\n instance: currentInstance,\n func: func,\n id: timerId,\n timeStamp: currentTimeStamp\n });\n activeTimeouts.set(timerId, timeout);\n return timerId;\n },\n clearTimeout: function (timerId) {\n validateResponderContext();\n var timeout = activeTimeouts.get(timerId);\n\n if (timeout !== undefined) {\n var timers = timeout.timers;\n timers.delete(timerId);\n\n if (timers.size === 0) {\n clearTimeout(timeout.id);\n }\n }\n },\n getActiveDocument: getActiveDocument,\n objectAssign: _assign,\n getTimeStamp: function () {\n validateResponderContext();\n return currentTimeStamp;\n },\n isTargetWithinHostComponent: function (target, elementType) {\n validateResponderContext();\n var fiber = getClosestInstanceFromNode(target);\n\n while (fiber !== null) {\n if (fiber.tag === HostComponent && fiber.type === elementType) {\n return true;\n }\n\n fiber = fiber.return;\n }\n\n return false;\n },\n continuePropagation: function () {\n currentPropagationBehavior = PropagateToNextResponder;\n },\n enqueueStateRestore: enqueueStateRestore,\n getResponderNode: function () {\n validateResponderContext();\n var responderFiber = currentInstance.fiber;\n\n if (responderFiber.tag === ScopeComponent) {\n return null;\n }\n\n return responderFiber.stateNode;\n }\n};\n\nfunction validateEventValue(eventValue) {\n if (typeof eventValue === 'object' && eventValue !== null) {\n var target = eventValue.target,\n type = eventValue.type,\n timeStamp = eventValue.timeStamp;\n\n if (target == null || type == null || timeStamp == null) {\n throw new Error('context.dispatchEvent: \"target\", \"timeStamp\", and \"type\" fields on event object are required.');\n }\n\n var showWarning = function (name) {\n {\n warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== \"press\") { event.%s }`', name, name);\n }\n };\n\n eventValue.isDefaultPrevented = function () {\n {\n showWarning('isDefaultPrevented()');\n }\n };\n\n eventValue.isPropagationStopped = function () {\n {\n showWarning('isPropagationStopped()');\n }\n }; // $FlowFixMe: we don't need value, Flow thinks we do\n\n\n Object.defineProperty(eventValue, 'nativeEvent', {\n get: function () {\n {\n showWarning('nativeEvent');\n }\n }\n });\n }\n}\n\nfunction doesFiberHaveResponder(fiber, responder) {\n var tag = fiber.tag;\n\n if (tag === HostComponent || tag === ScopeComponent) {\n var dependencies = fiber.dependencies;\n\n if (dependencies !== null) {\n var respondersMap = dependencies.responders;\n\n if (respondersMap !== null && respondersMap.has(responder)) {\n return true;\n }\n }\n }\n\n return false;\n}\n\nfunction getActiveDocument() {\n return currentDocument;\n}\n\nfunction processTimers(timers, delay) {\n var timersArr = Array.from(timers.values());\n var previousInstance = currentInstance;\n var previousTimers = currentTimers;\n\n try {\n batchedEventUpdates(function () {\n for (var i = 0; i < timersArr.length; i++) {\n var _timersArr$i = timersArr[i],\n instance = _timersArr$i.instance,\n func = _timersArr$i.func,\n id = _timersArr$i.id,\n timeStamp = _timersArr$i.timeStamp;\n currentInstance = instance;\n currentTimeStamp = timeStamp + delay;\n\n try {\n func();\n } finally {\n activeTimeouts.delete(id);\n }\n }\n });\n } finally {\n currentTimers = previousTimers;\n currentInstance = previousInstance;\n currentTimeStamp = 0;\n }\n}\n\nfunction createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {\n var _ref = nativeEvent,\n buttons = _ref.buttons,\n pointerType = _ref.pointerType;\n var eventPointerType = '';\n\n if (pointerType !== undefined) {\n eventPointerType = pointerType;\n } else if (nativeEvent.key !== undefined) {\n eventPointerType = 'keyboard';\n } else if (buttons !== undefined) {\n eventPointerType = 'mouse';\n } else if (nativeEvent.changedTouches !== undefined) {\n eventPointerType = 'touch';\n }\n\n return {\n nativeEvent: nativeEvent,\n passive: passive,\n passiveSupported: passiveSupported,\n pointerType: eventPointerType,\n target: nativeEventTarget,\n type: topLevelType\n };\n}\n\nfunction responderEventTypesContainType(eventTypes, type) {\n for (var i = 0, len = eventTypes.length; i < len; i++) {\n if (eventTypes[i] === type) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction validateResponderTargetEventTypes(eventType, responder) {\n var targetEventTypes = responder.targetEventTypes; // Validate the target event type exists on the responder\n\n if (targetEventTypes !== null) {\n return responderEventTypesContainType(targetEventTypes, eventType);\n }\n\n return false;\n}\n\nfunction traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {\n var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;\n var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;\n var isPassive = isPassiveEvent || !isPassiveSupported;\n var eventType = isPassive ? topLevelType : topLevelType + '_active'; // Trigger event responders in this order:\n // - Bubble target responder phase\n // - Root responder phase\n\n var visitedResponders = new Set();\n var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);\n var node = targetFiber;\n var insidePortal = false;\n\n while (node !== null) {\n var _node = node,\n dependencies = _node.dependencies,\n tag = _node.tag;\n\n if (tag === HostPortal) {\n insidePortal = true;\n } else if ((tag === HostComponent || tag === ScopeComponent) && dependencies !== null) {\n var respondersMap = dependencies.responders;\n\n if (respondersMap !== null) {\n var responderInstances = Array.from(respondersMap.values());\n\n for (var i = 0, length = responderInstances.length; i < length; i++) {\n var responderInstance = responderInstances[i];\n var props = responderInstance.props,\n responder = responderInstance.responder,\n state = responderInstance.state;\n\n if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder) && (!insidePortal || responder.targetPortalPropagation)) {\n visitedResponders.add(responder);\n var onEvent = responder.onEvent;\n\n if (onEvent !== null) {\n currentInstance = responderInstance;\n onEvent(responderEvent, eventResponderContext, props, state);\n\n if (currentPropagationBehavior === PropagateToNextResponder) {\n visitedResponders.delete(responder);\n currentPropagationBehavior = DoNotPropagateToNextResponder;\n }\n }\n }\n }\n }\n }\n\n node = node.return;\n } // Root phase\n\n\n var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);\n\n if (rootEventResponderInstances !== undefined) {\n var _responderInstances = Array.from(rootEventResponderInstances);\n\n for (var _i = 0; _i < _responderInstances.length; _i++) {\n var _responderInstance = _responderInstances[_i];\n var props = _responderInstance.props,\n responder = _responderInstance.responder,\n state = _responderInstance.state;\n var onRootEvent = responder.onRootEvent;\n\n if (onRootEvent !== null) {\n currentInstance = _responderInstance;\n onRootEvent(responderEvent, eventResponderContext, props, state);\n }\n }\n }\n}\n\nfunction mountEventResponder(responder, responderInstance, props, state) {\n var onMount = responder.onMount;\n\n if (onMount !== null) {\n var previousInstance = currentInstance;\n var previousTimers = currentTimers;\n currentInstance = responderInstance;\n\n try {\n batchedEventUpdates(function () {\n onMount(eventResponderContext, props, state);\n });\n } finally {\n currentInstance = previousInstance;\n currentTimers = previousTimers;\n }\n }\n}\nfunction unmountEventResponder(responderInstance) {\n var responder = responderInstance.responder;\n var onUnmount = responder.onUnmount;\n\n if (onUnmount !== null) {\n var props = responderInstance.props,\n state = responderInstance.state;\n var previousInstance = currentInstance;\n var previousTimers = currentTimers;\n currentInstance = responderInstance;\n\n try {\n batchedEventUpdates(function () {\n onUnmount(eventResponderContext, props, state);\n });\n } finally {\n currentInstance = previousInstance;\n currentTimers = previousTimers;\n }\n }\n\n var rootEventTypesSet = responderInstance.rootEventTypes;\n\n if (rootEventTypesSet !== null) {\n var rootEventTypes = Array.from(rootEventTypesSet);\n\n for (var i = 0; i < rootEventTypes.length; i++) {\n var topLevelEventType = rootEventTypes[i];\n var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);\n\n if (rootEventResponderInstances !== undefined) {\n rootEventResponderInstances.delete(responderInstance);\n }\n }\n }\n}\n\nfunction validateResponderContext() {\n (function () {\n if (!(currentInstance !== null)) {\n {\n throw ReactError(Error(\"An event responder context was used outside of an event cycle. Use context.setTimeout() to use asynchronous responder context outside of event cycle .\"));\n }\n }\n })();\n}\n\nfunction dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {\n if (enableFlareAPI) {\n var previousInstance = currentInstance;\n var previousTimers = currentTimers;\n var previousTimeStamp = currentTimeStamp;\n var previousDocument = currentDocument;\n var previousPropagationBehavior = currentPropagationBehavior;\n currentPropagationBehavior = DoNotPropagateToNextResponder;\n currentTimers = null; // nodeType 9 is DOCUMENT_NODE\n\n currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument; // We might want to control timeStamp another way here\n\n currentTimeStamp = nativeEvent.timeStamp;\n\n try {\n batchedEventUpdates(function () {\n traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);\n });\n } finally {\n currentTimers = previousTimers;\n currentInstance = previousInstance;\n currentTimeStamp = previousTimeStamp;\n currentDocument = previousDocument;\n currentPropagationBehavior = previousPropagationBehavior;\n }\n }\n}\nfunction addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {\n for (var i = 0; i < rootEventTypes.length; i++) {\n var rootEventType = rootEventTypes[i];\n registerRootEventType(rootEventType, responderInstance);\n }\n}\n\nfunction registerRootEventType(rootEventType, eventResponderInstance) {\n var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);\n\n if (rootEventResponderInstances === undefined) {\n rootEventResponderInstances = new Set();\n rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);\n }\n\n var rootEventTypesSet = eventResponderInstance.rootEventTypes;\n\n if (rootEventTypesSet === null) {\n rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();\n }\n\n (function () {\n if (!!rootEventTypesSet.has(rootEventType)) {\n {\n throw ReactError(Error(\"addRootEventTypes() found a duplicate root event type of \\\"\" + rootEventType + \"\\\". This might be because the event type exists in the event responder \\\"rootEventTypes\\\" array or because of a previous addRootEventTypes() using this root event type.\"));\n }\n }\n })();\n\n rootEventTypesSet.add(rootEventType);\n rootEventResponderInstances.add(eventResponderInstance);\n}\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED = 0; // A simple string attribute.\n// Attributes that aren't in the whitelist are presumed to have this type.\n\nvar STRING = 1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING = 2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN = 3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN = 4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC = 5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC = 6;\n\n/* eslint-disable max-len */\nvar ATTRIBUTE_NAME_START_CHAR = \":A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\n/* eslint-enable max-len */\n\nvar ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\n\nvar ROOT_ATTRIBUTE_NAME = 'data-reactroot';\nvar VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar illegalAttributeNameCache = {};\nvar validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {\n return true;\n }\n\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {\n return false;\n }\n\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {\n validatedAttributeNameCache[attributeName] = true;\n return true;\n }\n\n illegalAttributeNameCache[attributeName] = true;\n\n {\n warning$1(false, 'Invalid attribute name: `%s`', attributeName);\n }\n\n return false;\n}\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null) {\n return propertyInfo.type === RESERVED;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {\n return true;\n }\n\n return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {\n if (propertyInfo !== null && propertyInfo.type === RESERVED) {\n return false;\n }\n\n switch (typeof value) {\n case 'function': // $FlowIssue symbol is perfectly valid here\n\n case 'symbol':\n // eslint-disable-line\n return true;\n\n case 'boolean':\n {\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n return !propertyInfo.acceptsBooleans;\n } else {\n var prefix = name.toLowerCase().slice(0, 5);\n return prefix !== 'data-' && prefix !== 'aria-';\n }\n }\n\n default:\n return false;\n }\n}\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {\n if (value === null || typeof value === 'undefined') {\n return true;\n }\n\n if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {\n return true;\n }\n\n if (isCustomComponentTag) {\n return false;\n }\n\n if (propertyInfo !== null) {\n switch (propertyInfo.type) {\n case BOOLEAN:\n return !value;\n\n case OVERLOADED_BOOLEAN:\n return value === false;\n\n case NUMERIC:\n return isNaN(value);\n\n case POSITIVE_NUMERIC:\n return isNaN(value) || value < 1;\n }\n }\n\n return false;\n}\nfunction getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {\n this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n this.sanitizeURL = sanitizeURL;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties = {}; // These props are reserved by React. They shouldn't be written to the DOM.\n\n['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false);\n}); // A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {\n var name = _ref[0],\n attributeName = _ref[1];\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, // attributeName\n null, // attributeNamespace\n false);\n}); // These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false);\n}); // These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false);\n}); // These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false);\n}); // These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false);\n}); // These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false);\n}); // These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false);\n}); // These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name) {\n properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false);\n});\nvar CAMELIZE = /[\\-\\:]([a-z])/g;\n\nvar capitalize = function (token) {\n return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML whitelist.\n// Some of these attributes can be hard to find. This list was created by\n// scrapping the MDN documentation.\n\n\n['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, null, // attributeNamespace\n false);\n}); // String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/1999/xlink', false);\n}); // String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {\n var name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n attributeName, 'http://www.w3.org/XML/1998/namespace', false);\n}); // These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n false);\n}); // These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {\n properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n true);\n});\n\nvar ReactDebugCurrentFrame$1 = null;\n\n{\n ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n} // A javascript: URL can contain leading C0 control or \\u0020 SPACE,\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n/* eslint-disable max-len */\n\n\nvar isJavaScriptProtocol = /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i;\nvar didWarn = false;\n\nfunction sanitizeURL(url) {\n if (disableJavaScriptURLs) {\n (function () {\n if (!!isJavaScriptProtocol.test(url)) {\n {\n throw ReactError(Error(\"React has blocked a javascript: URL as a security precaution.\" + (ReactDebugCurrentFrame$1.getStackAddendum())));\n }\n }\n })();\n } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {\n didWarn = true;\n warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));\n }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value) {\n return '' + value;\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n case 'object':\n case 'string':\n case 'undefined':\n return value;\n\n default:\n // function, symbol are assigned as empty strings\n return '';\n }\n}\n/** Trusted value is a wrapper for \"safe\" values which can be assigned to DOM execution sinks. */\n\n/**\n * We allow passing objects with toString method as element attributes or in dangerouslySetInnerHTML\n * and we do validations that the value is safe. Once we do validation we want to use the validated\n * value instead of the object (because object.toString may return something else on next call).\n *\n * If application uses Trusted Types we don't stringify trusted values, but preserve them as objects.\n */\nvar toStringOrTrustedType = toString;\n\nif (enableTrustedTypesIntegration && typeof trustedTypes !== 'undefined') {\n var isHTML = trustedTypes.isHTML;\n var isScript = trustedTypes.isScript;\n var isScriptURL = trustedTypes.isScriptURL; // TrustedURLs are deprecated and will be removed soon: https://github.com/WICG/trusted-types/pull/204\n\n var isURL = trustedTypes.isURL ? trustedTypes.isURL : function (value) {\n return false;\n };\n\n toStringOrTrustedType = function (value) {\n if (typeof value === 'object' && (isHTML(value) || isScript(value) || isScriptURL(value) || isURL(value))) {\n // Pass Trusted Types through.\n return value;\n }\n\n return toString(value);\n };\n}\n\n/**\n * Set attribute for a node. The attribute value can be either string or\n * Trusted value (if application uses Trusted Types).\n */\nfunction setAttribute(node, attributeName, attributeValue) {\n node.setAttribute(attributeName, attributeValue);\n}\n/**\n * Set attribute with namespace for a node. The attribute value can be either string or\n * Trusted value (if application uses Trusted Types).\n */\n\nfunction setAttributeNS(node, attributeNamespace, attributeName, attributeValue) {\n node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n}\n\n/**\n * Get the value for a property on a node. Only used in DEV for SSR validation.\n * The \"expected\" argument is used as a hint of what the expected value is.\n * Some properties have multiple equivalent values.\n */\nfunction getValueForProperty(node, name, expected, propertyInfo) {\n {\n if (propertyInfo.mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n return node[propertyName];\n } else {\n if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {\n // If we haven't fully disabled javascript: URLs, and if\n // the hydration is successful of a javascript: URL, we\n // still want to warn on the client.\n sanitizeURL('' + expected);\n }\n\n var attributeName = propertyInfo.attributeName;\n var stringValue = null;\n\n if (propertyInfo.type === OVERLOADED_BOOLEAN) {\n if (node.hasAttribute(attributeName)) {\n var value = node.getAttribute(attributeName);\n\n if (value === '') {\n return true;\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return value;\n }\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n } else if (node.hasAttribute(attributeName)) {\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n // We had an attribute but shouldn't have had one, so read it\n // for the error message.\n return node.getAttribute(attributeName);\n }\n\n if (propertyInfo.type === BOOLEAN) {\n // If this was a boolean, it doesn't matter what the value is\n // the fact that we have it is the same as the expected.\n return expected;\n } // Even if this property uses a namespace we use getAttribute\n // because we assume its namespaced name is the same as our config.\n // To use getAttributeNS we need the local name which we don't have\n // in our config atm.\n\n\n stringValue = node.getAttribute(attributeName);\n }\n\n if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {\n return stringValue === null ? expected : stringValue;\n } else if (stringValue === '' + expected) {\n return expected;\n } else {\n return stringValue;\n }\n }\n }\n}\n/**\n * Get the value for a attribute on a node. Only used in DEV for SSR validation.\n * The third argument is used as a hint of what the expected value is. Some\n * attributes have multiple equivalent values.\n */\n\nfunction getValueForAttribute(node, name, expected) {\n {\n if (!isAttributeNameSafe(name)) {\n return;\n }\n\n if (!node.hasAttribute(name)) {\n return expected === undefined ? undefined : null;\n }\n\n var value = node.getAttribute(name);\n\n if (value === '' + expected) {\n return expected;\n }\n\n return value;\n }\n}\n/**\n * Sets the value for a property on a node.\n *\n * @param {DOMElement} node\n * @param {string} name\n * @param {*} value\n */\n\nfunction setValueForProperty(node, name, value, isCustomComponentTag) {\n var propertyInfo = getPropertyInfo(name);\n\n if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {\n return;\n }\n\n if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {\n value = null;\n } // If the prop isn't in the special list, treat it as a simple attribute.\n\n\n if (isCustomComponentTag || propertyInfo === null) {\n if (isAttributeNameSafe(name)) {\n var _attributeName = name;\n\n if (value === null) {\n node.removeAttribute(_attributeName);\n } else {\n setAttribute(node, _attributeName, toStringOrTrustedType(value));\n }\n }\n\n return;\n }\n\n var mustUseProperty = propertyInfo.mustUseProperty;\n\n if (mustUseProperty) {\n var propertyName = propertyInfo.propertyName;\n\n if (value === null) {\n var type = propertyInfo.type;\n node[propertyName] = type === BOOLEAN ? false : '';\n } else {\n // Contrary to `setAttribute`, object properties are properly\n // `toString`ed by IE8/9.\n node[propertyName] = value;\n }\n\n return;\n } // The rest are treated as attributes with special cases.\n\n\n var attributeName = propertyInfo.attributeName,\n attributeNamespace = propertyInfo.attributeNamespace;\n\n if (value === null) {\n node.removeAttribute(attributeName);\n } else {\n var _type = propertyInfo.type;\n var attributeValue;\n\n if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {\n // If attribute type is boolean, we know for sure it won't be an execution sink\n // and we won't require Trusted Type here.\n attributeValue = '';\n } else {\n // `setAttribute` with objects becomes only `[object]` in IE8/9,\n // ('' + value) makes it output the correct toString()-value.\n attributeValue = toStringOrTrustedType(value);\n\n if (propertyInfo.sanitizeURL) {\n sanitizeURL(attributeValue.toString());\n }\n }\n\n if (attributeNamespace) {\n setAttributeNS(node, attributeNamespace, attributeName, attributeValue);\n } else {\n setAttribute(node, attributeName, attributeValue);\n }\n }\n}\n\nvar ReactDebugCurrentFrame$2 = null;\nvar ReactControlledValuePropTypes = {\n checkPropTypes: null\n};\n\n{\n ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;\n var hasReadOnlyValue = {\n button: true,\n checkbox: true,\n image: true,\n hidden: true,\n radio: true,\n reset: true,\n submit: true\n };\n var propTypes = {\n value: function (props, propName, componentName) {\n if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {\n return null;\n }\n\n return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n },\n checked: function (props, propName, componentName) {\n if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {\n return null;\n }\n\n return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n }\n };\n /**\n * Provide a linked `value` attribute for controlled forms. You should not use\n * this outside of the ReactDOM controlled form components.\n */\n\n ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {\n checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);\n };\n}\n\nfunction isCheckable(elem) {\n var type = elem.type;\n var nodeName = elem.nodeName;\n return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');\n}\n\nfunction getTracker(node) {\n return node._valueTracker;\n}\n\nfunction detachTracker(node) {\n node._valueTracker = null;\n}\n\nfunction getValueFromNode(node) {\n var value = '';\n\n if (!node) {\n return value;\n }\n\n if (isCheckable(node)) {\n value = node.checked ? 'true' : 'false';\n } else {\n value = node.value;\n }\n\n return value;\n}\n\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? 'checked' : 'value';\n var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail\n // and don't track value will cause over reporting of changes,\n // but it's better then a hard failure\n // (needed for certain tests that spyOn input values and Safari)\n\n if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {\n return;\n }\n\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: true,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = '' + value;\n set.call(this, value);\n }\n }); // We could've passed this the first time\n // but it triggers a bug in IE11 and Edge 14/15.\n // Calling defineProperty() again should be equivalent.\n // https://github.com/facebook/react/issues/11768\n\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n var tracker = {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = '' + value;\n },\n stopTracking: function () {\n detachTracker(node);\n delete node[valueField];\n }\n };\n return tracker;\n}\n\nfunction track(node) {\n if (getTracker(node)) {\n return;\n } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n node._valueTracker = trackValueOnNode(node);\n}\nfunction updateValueIfChanged(node) {\n if (!node) {\n return false;\n }\n\n var tracker = getTracker(node); // if there is no tracker at this point it's unlikely\n // that trying again will succeed\n\n if (!tracker) {\n return true;\n }\n\n var lastValue = tracker.getValue();\n var nextValue = getValueFromNode(node);\n\n if (nextValue !== lastValue) {\n tracker.setValue(nextValue);\n return true;\n }\n\n return false;\n}\n\n// TODO: direct imports like some-package/src/* are bad. Fix me.\nvar didWarnValueDefaultValue = false;\nvar didWarnCheckedDefaultChecked = false;\nvar didWarnControlledToUncontrolled = false;\nvar didWarnUncontrolledToControlled = false;\n\nfunction isControlled(props) {\n var usesChecked = props.type === 'checkbox' || props.type === 'radio';\n return usesChecked ? props.checked != null : props.value != null;\n}\n/**\n * Implements an host component that allows setting these optional\n * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.\n *\n * If `checked` or `value` are not supplied (or null/undefined), user actions\n * that affect the checked state or value will trigger updates to the element.\n *\n * If they are supplied (and not null/undefined), the rendered element will not\n * trigger updates to the element. Instead, the props must change in order for\n * the rendered element to be updated.\n *\n * The rendered element will be initialized as unchecked (or `defaultChecked`)\n * with an empty value (or `defaultValue`).\n *\n * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html\n */\n\n\nfunction getHostProps(element, props) {\n var node = element;\n var checked = props.checked;\n\n var hostProps = _assign({}, props, {\n defaultChecked: undefined,\n defaultValue: undefined,\n value: undefined,\n checked: checked != null ? checked : node._wrapperState.initialChecked\n });\n\n return hostProps;\n}\nfunction initWrapperState(element, props) {\n {\n ReactControlledValuePropTypes.checkPropTypes('input', props);\n\n if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {\n warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnCheckedDefaultChecked = true;\n }\n\n if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {\n warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);\n didWarnValueDefaultValue = true;\n }\n }\n\n var node = element;\n var defaultValue = props.defaultValue == null ? '' : props.defaultValue;\n node._wrapperState = {\n initialChecked: props.checked != null ? props.checked : props.defaultChecked,\n initialValue: getToStringValue(props.value != null ? props.value : defaultValue),\n controlled: isControlled(props)\n };\n}\nfunction updateChecked(element, props) {\n var node = element;\n var checked = props.checked;\n\n if (checked != null) {\n setValueForProperty(node, 'checked', checked, false);\n }\n}\nfunction updateWrapper(element, props) {\n var node = element;\n\n {\n var controlled = isControlled(props);\n\n if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) {\n warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnUncontrolledToControlled = true;\n }\n\n if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) {\n warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n didWarnControlledToUncontrolled = true;\n }\n }\n\n updateChecked(element, props);\n var value = getToStringValue(props.value);\n var type = props.type;\n\n if (value != null) {\n if (type === 'number') {\n if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible.\n // eslint-disable-next-line\n node.value != value) {\n node.value = toString(value);\n }\n } else if (node.value !== toString(value)) {\n node.value = toString(value);\n }\n } else if (type === 'submit' || type === 'reset') {\n // Submit/reset inputs need the attribute removed completely to avoid\n // blank-text buttons.\n node.removeAttribute('value');\n return;\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, React only assigns a new value\n // whenever the defaultValue React prop has changed. When not present,\n // React does nothing\n if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n } else {\n // When syncing the value attribute, the value comes from a cascade of\n // properties:\n // 1. The value React property\n // 2. The defaultValue React property\n // 3. Otherwise there should be no change\n if (props.hasOwnProperty('value')) {\n setDefaultValue(node, props.type, value);\n } else if (props.hasOwnProperty('defaultValue')) {\n setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the attribute is directly\n // controllable from the defaultValue React property. It needs to be\n // updated as new props come in.\n if (props.defaultChecked == null) {\n node.removeAttribute('checked');\n } else {\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, it only changes when it needs\n // to be removed, such as transitioning from a checkbox into a text input\n if (props.checked == null && props.defaultChecked != null) {\n node.defaultChecked = !!props.defaultChecked;\n }\n }\n}\nfunction postMountWrapper(element, props, isHydrating) {\n var node = element; // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {\n var type = props.type;\n var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n // default value provided by the browser. See: #12872\n\n if (isButton && (props.value === undefined || props.value === null)) {\n return;\n }\n\n var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n // from being lost during SSR hydration.\n\n if (!isHydrating) {\n if (disableInputAttributeSyncing) {\n var value = getToStringValue(props.value); // When not syncing the value attribute, the value property points\n // directly to the React prop. Only assign it if it exists.\n\n if (value != null) {\n // Always assign on buttons so that it is possible to assign an\n // empty string to clear button text.\n //\n // Otherwise, do not re-assign the value property if is empty. This\n // potentially avoids a DOM write and prevents Firefox (~60.0.1) from\n // prematurely marking required inputs as invalid. Equality is compared\n // to the current value in case the browser provided value is not an\n // empty string.\n if (isButton || value !== node.value) {\n node.value = toString(value);\n }\n }\n } else {\n // When syncing the value attribute, the value property should use\n // the wrapperState._initialValue property. This uses:\n //\n // 1. The value React property when present\n // 2. The defaultValue React property when present\n // 3. An empty string\n if (initialValue !== node.value) {\n node.value = initialValue;\n }\n }\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the value attribute, assign the value attribute\n // directly from the defaultValue React property (when present)\n var defaultValue = getToStringValue(props.defaultValue);\n\n if (defaultValue != null) {\n node.defaultValue = toString(defaultValue);\n }\n } else {\n // Otherwise, the value attribute is synchronized to the property,\n // so we assign defaultValue to the same thing as the value property\n // assignment step above.\n node.defaultValue = initialValue;\n }\n } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug\n // this is needed to work around a chrome bug where setting defaultChecked\n // will sometimes influence the value of checked (even after detachment).\n // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n var name = node.name;\n\n if (name !== '') {\n node.name = '';\n }\n\n if (disableInputAttributeSyncing) {\n // When not syncing the checked attribute, the checked property\n // never gets assigned. It must be manually set. We don't want\n // to do this when hydrating so that existing user input isn't\n // modified\n if (!isHydrating) {\n updateChecked(element, props);\n } // Only assign the checked attribute if it is defined. This saves\n // a DOM write when controlling the checked attribute isn't needed\n // (text inputs, submit/reset)\n\n\n if (props.hasOwnProperty('defaultChecked')) {\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!props.defaultChecked;\n }\n } else {\n // When syncing the checked attribute, both the checked property and\n // attribute are assigned at the same time using defaultChecked. This uses:\n //\n // 1. The checked React property when present\n // 2. The defaultChecked React property when present\n // 3. Otherwise, false\n node.defaultChecked = !node.defaultChecked;\n node.defaultChecked = !!node._wrapperState.initialChecked;\n }\n\n if (name !== '') {\n node.name = name;\n }\n}\nfunction restoreControlledState$1(element, props) {\n var node = element;\n updateWrapper(node, props);\n updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props) {\n var name = props.name;\n\n if (props.type === 'radio' && name != null) {\n var queryRoot = rootNode;\n\n while (queryRoot.parentNode) {\n queryRoot = queryRoot.parentNode;\n } // If `rootNode.form` was non-null, then we could try `form.elements`,\n // but that sometimes behaves strangely in IE8. We could also try using\n // `form.getElementsByName`, but that will only return direct children\n // and won't include inputs that use the HTML5 `form=` attribute. Since\n // the input might not even be in a form. It might not even be in the\n // document. Let's just use the local `querySelectorAll` to ensure we don't\n // miss anything.\n\n\n var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n for (var i = 0; i < group.length; i++) {\n var otherNode = group[i];\n\n if (otherNode === rootNode || otherNode.form !== rootNode.form) {\n continue;\n } // This will throw if radio buttons rendered by different copies of React\n // and the same name are rendered into the same form (same as #1939).\n // That's probably okay; we don't support it just as we don't support\n // mixing React radio buttons with non-React ones.\n\n\n var otherProps = getFiberCurrentPropsFromNode$1(otherNode);\n\n (function () {\n if (!otherProps) {\n {\n throw ReactError(Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\"));\n }\n }\n })(); // We need update the tracked value on the named cousin since the value\n // was changed but the input saw no event or value set\n\n\n updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n // was previously checked to update will cause it to be come re-checked\n // as appropriate.\n\n updateWrapper(otherNode, otherProps);\n }\n }\n} // In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\n\n\nfunction setDefaultValue(node, type, value) {\n if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n type !== 'number' || node.ownerDocument.activeElement !== node) {\n if (value == null) {\n node.defaultValue = toString(node._wrapperState.initialValue);\n } else if (node.defaultValue !== toString(value)) {\n node.defaultValue = toString(value);\n }\n }\n}\n\nvar didWarnSelectedSetOnOption = false;\nvar didWarnInvalidChild = false;\n\nfunction flattenChildren(children) {\n var content = ''; // Flatten children. We'll warn if they are invalid\n // during validateProps() which runs for hydration too.\n // Note that this would throw on non-element objects.\n // Elements are stringified (which is normally irrelevant\n // but matters for ).\n\n React.Children.forEach(children, function (child) {\n if (child == null) {\n return;\n }\n\n content += child; // Note: we don't warn about invalid children here.\n // Instead, this is done separately below so that\n // it happens during the hydration codepath too.\n });\n return content;\n}\n/**\n * Implements an